SmaCCRefactoring / SmaCC

Smalltalk Compiler Compiler : a parser generator
Other
33 stars 15 forks source link

Undeclared token does not raise an error #41

Closed apblack closed 6 years ago

apblack commented 6 years ago

If I spell the name of a token incorrectly in the grammar, I don't get a compilation error. I just get a grammar that doesn't work. For example, if in a production I write <nome> instead of <name>, or <Outer> instead of <outer>, I don't get a compilation error (or even a warning message). I just get a parser that doesn't do what I expect.

It's almost like programming in Python!

ThierryGoubier commented 6 years ago

This may break some grammars.

apblack commented 6 years ago

I think that I would claim that they were already broken!

ThierryGoubier commented 6 years ago

Good. I could not get all the tests green on my laptop... and they take forever to run. I'll check all the grammars I have.

ThierryGoubier commented 6 years ago

Ok, clear.