This commit is contained in:
mStar aka a person 2024-01-26 15:15:50 +01:00
parent 7ad59ab87e
commit ce402276bc
3 changed files with 7 additions and 1 deletions

View file

@ -1,2 +1,2 @@
mod data_types;
mod parser;

1
src/parser/mod.rs Normal file
View file

@ -0,0 +1 @@
pub (crate) mod preparser;

5
src/parser/preparser.rs Normal file
View file

@ -0,0 +1,5 @@
// Prepares the given raw code to be consumed by the tokeniser
// It achieves this by adding missing semicolons and adjusting whitespace (normalising to one space for everything outside of strings)
pub fn preparse(raw: &str) -> String {
String::from("value")
}