diff options
Diffstat (limited to 'src/taiga.lalrpop')
-rw-r--r-- | src/taiga.lalrpop | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/taiga.lalrpop b/src/taiga.lalrpop index afa6433..0c7fea0 100644 --- a/src/taiga.lalrpop +++ b/src/taiga.lalrpop @@ -29,7 +29,8 @@ Parameters: WithLocation<Vec<WithLocation<ast::RecordField>>> = { Ty: WithLocation<ast::Ty> = { <Name> => <>.map(|v| ast::Ty::Name(v)), - "array" "of" <Name> => <>.map(|v| ast::Ty::Array(Box::new(ast::Ty::Name(v)))), + <l: @L> "array" "of" <n: Name> <r: @R> => + WithLocation::new(ast::Ty::Array(Box::new(n.map(|v| ast::Ty::Name(v)))), l, r), <RecordFields> => <>.map(|v| ast::Ty::Record(v)), }; |