This commit is contained in:
Lukas Wirth 2024-03-04 11:10:06 +01:00
parent 4ef6a49b44
commit 4303e741de
42 changed files with 433 additions and 468 deletions

View file

@ -87,6 +87,7 @@ pub enum TopEntryPoint {
impl TopEntryPoint {
pub fn parse(&self, input: &Input) -> Output {
let _p = tracing::span!(tracing::Level::INFO, "TopEntryPoint::parse", ?self).entered();
let entry_point: fn(&'_ mut parser::Parser<'_>) = match self {
TopEntryPoint::SourceFile => grammar::entry::top::source_file,
TopEntryPoint::MacroStmts => grammar::entry::top::macro_stmts,