diff --git a/src/syntax/parser.rs b/src/syntax/parser.rs index 1fc6a1a..6e4f9ed 100644 --- a/src/syntax/parser.rs +++ b/src/syntax/parser.rs @@ -102,7 +102,11 @@ pub fn parse_input<'a>( ) -> ParseResult { println!( "{:?}", - definition().parse_with_state(input, &mut State { arena }) + definition() + .separated_by(just(T![";"])) + .allow_trailing() + .pipe(arena_collect) + .parse_with_state(input, &mut State { arena }) ); }