Fixed parser bugs

Added PreGroup unwrapper
Added token location tracking
This commit is contained in:
2023-03-21 19:02:18 -07:00
parent 83961409a7
commit b942e9dcf9
7 changed files with 190 additions and 96 deletions

View File

@ -91,8 +91,8 @@ fn main() -> Result<(), std::io::Error> {
write!(stdout, "\n => ")?;
stdout.reset()?;
write!(stdout, "Got {input}\n\n\n")?;
parser::parse(&mut g).expect("Could not fold");
parser::parse(&mut g).expect("Could not parse");
writeln!(stdout, "Tokenized: {g:#?}")?;
}