small fixes

This commit is contained in:
jusax23 2024-10-27 17:09:39 +01:00
parent 9112736652
commit 664d464895
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41
2 changed files with 4 additions and 8 deletions

View file

@ -434,7 +434,6 @@ impl<
}
}
//
#[derive(Debug, Clone)]

View file

@ -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())
}