compiler: add Parser::debug_lookahead

I tried debugging a parser-related issue but found it annoying to not be
able to easily peek into the Parser's token stream.

Add a convenience fn that offers an opinionated view into the parser,
but one that is useful for answering basic questions about parser state.
This commit is contained in:
Jubilee Young
2024-05-05 15:41:00 -07:00
parent c70290da0a
commit 5e67a3783c
2 changed files with 42 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
#![allow(rustc::untranslatable_diagnostic)]
#![feature(array_windows)]
#![feature(box_patterns)]
#![feature(debug_closure_helpers)]
#![feature(if_let_guard)]
#![feature(iter_intersperse)]
#![feature(let_chains)]