parser work

This commit is contained in:
2020-10-26 23:16:17 -07:00
parent 152a1670c5
commit 83688b5246
3 changed files with 17 additions and 4 deletions

View File

@@ -20,7 +20,8 @@ elem table : globalTableFormatting {
}
}
meta globalTableFormatting : {
meta globalTableFormatting {
}
**meta is a keyword specifying that the next token will contain some subset of the data that an elem that needs to render.**

View File

@@ -5,3 +5,12 @@ elem table {
}
}
elem table {
elem tr {
}
elem tr {
}
}

View File

@@ -36,6 +36,12 @@ pub enum ElementGraph {
}
pub struct ElemBuilder();
impl ElemBuilder {
}
// ENTRY
pub fn parse_script<'a, E: ParseError<&'a str>>(input: &'a str) -> IResult<&'a str, ScriptMeta, E> {
println!("Full input string : {:?}\n", input);
@@ -60,9 +66,6 @@ pub fn parse_script<'a, E: ParseError<&'a str>>(input: &'a str) -> IResult<&'a s
)(remaining_str);
remaining_str = match_type.unwrap().0;
}