adrian-thurston / colm

The Colm Programming Language
MIT License
164 stars 31 forks source link

ambiguous grammar parsed differently between input and pattern #117

Open adrian-thurston opened 4 years ago

adrian-thurston commented 4 years ago

The following grammar is parsed differently depending of if we are parsing the input or a pattern. Need to investigate why the come out differently. The exact parse should be not well defined, but they should be identical. Perhaps this is the proof they are not guaranteed equal.

It does involve a redefine, so that may be factoring into it.

tmp.txt input.txt