Skip to content

Commit

Permalink
added RootSection
Browse files Browse the repository at this point in the history
  • Loading branch information
lmittmann committed Oct 17, 2024
1 parent 56d1765 commit 2ef10bc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/ast/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ use chumsky::span::SimpleSpan;
use evm_glue::opcodes::Opcode;

#[derive(Debug, PartialEq, Eq)]
pub struct Root<'src>(pub Box<[Definition<'src>]>);
pub struct Root<'src>(pub Box<[RootSection<'src>]>);

#[derive(Debug, PartialEq, Eq)]
pub enum RootSection<'src> {
Definition(Definition<'src>),
Include(Spanned<&'src str>),
}

#[derive(Debug, PartialEq, Eq)]
pub enum Definition<'src> {
Expand Down

0 comments on commit 2ef10bc

Please sign in to comment.