Closed saw235 closed 2 years ago
This error is thrown by happy
. You could try plain
happy Sv/Par.y
to see whether this works (e.g. change the BNFC-generated Makefile
).
Judging from
shift/reduce conflicts: 11361
reduce/reduce conflicts: 9108
the grammar is very big (and has lots of problems still; conflicts are bad most of the time).
@andreasabel Disabling --ghc didn't work but removing all the other flags seems to be generating the .hs file correctly.
@andreasabel It still doesn't compile because of the huge memory requirements. Is there some options to split it into smaller modules?
@andreasabel It still doesn't compile because of the huge memory requirements. Is there some options to split it into smaller modules?
Unfortunately not, because the LR parser that happy
produces has a single LR-automaton at its base. If this is busting your memory, maybe refactoring the grammar would be the way to go.
Closing, please reopen with more information if needed.
Any idea what the following error message is trying to convey?