parser work

looking-at-specs
mitchellhansen 4 years ago
parent 152a1670c5
commit 83688b5246

@ -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.** **meta is a keyword specifying that the next token will contain some subset of the data that an elem that needs to render.**

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

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

Loading…
Cancel
Save