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:
Louis Gesbert 2021-08-19 11:19:45 +02:00
parent 9cb3a405d8
commit fdcdefd4d0
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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: