mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
Fix parser conflict
`LAW_TEXT` tokens are now returned one per line, so we need an associativity rule to correctly aggregate them.
This commit is contained in:
parent
9cb3a405d8
commit
fdcdefd4d0
@ -21,7 +21,7 @@
|
||||
(menhir
|
||||
(modules tokens parser)
|
||||
(merge_into parser)
|
||||
(flags --external-tokens Tokens --table))
|
||||
(flags --external-tokens Tokens --table --explain))
|
||||
|
||||
(documentation
|
||||
(package catala)
|
||||
|
@ -29,6 +29,10 @@ end>
|
||||
|
||||
%start source_file
|
||||
|
||||
(* The token is returned for every line of law text, make them right-associative
|
||||
so that we concat them efficiently as much as possible. *)
|
||||
%right LAW_TEXT
|
||||
|
||||
%%
|
||||
|
||||
typ_base:
|
||||
|
Loading…
Reference in New Issue
Block a user