small fixes
This commit is contained in:
parent
9112736652
commit
664d464895
2 changed files with 4 additions and 8 deletions
|
@ -434,7 +434,6 @@ impl<
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
|
@ -102,8 +102,8 @@ scanner!(
|
|||
#[derive(Debug, PartialEq, Eq, Hash, Clone)]
|
||||
enum NoneTerminals {
|
||||
P, // Program, ; separated
|
||||
L,
|
||||
Li,
|
||||
L, // Line of code
|
||||
Li, // line extended for assignments
|
||||
E, // Expression
|
||||
Ei, // Expression extended additive
|
||||
T, // Term, only containing Factors
|
||||
|
@ -169,8 +169,5 @@ fn main() {
|
|||
println!("conflict: {conflict}");
|
||||
println!("prase table: {:?}", grammar.parse_table);
|
||||
println!("parse\n\n");
|
||||
println!(
|
||||
"parsed: {:?}",
|
||||
grammar.parser(&mut m.iter_mut()).parse()
|
||||
)
|
||||
println!("parsed: {:?}", grammar.parser(&mut m.iter_mut()).parse())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue