parse.rs
1 pub fn get_streaming_parse_tree() { 2 todo!("Interativly consume token sequence using a dynamic parse tree."); 3 { 4 todo!("If a pattern matching the `delete-macro` pattern is found, the named 5 macro is deleted."); 6 todo!("If a pattern matching the `macro-simple` pattern is found, the simple 7 macro is added to the parse tree (named)"); 8 todo!("If a pattern matching the `macro-token` pattern is found, the macro is 9 added to the tokenizer (this is why we stream from it, so it can 10 change as we read from it) (named)"); 11 { 12 todo!("If a pattern matching the `macro-complex` pattern is found, the body 13 is converted into a seperate lpims file, with the target set to 14 webassembly. When the macro matches, the webassembly is loaded, 15 and requested to parse the remainder of the file. It may exit with 16 these states:"); 17 todo!(" - An error"); 18 todo!(" - The resulting parse tree with the info on where to continue parsing from."); 19 } 20 } 21 { 22 todo!("It is provided with:"); 23 todo!(" - An API to fully interact with the token sequencer"); 24 todo!(" - An API to request that this parser parse a given token sequence"); 25 } 26 }