SmaCCRefactoring / SmaCC

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

Use of *, + can link to non-terminal reuse #57

Closed ThierryGoubier closed 6 years ago

ThierryGoubier commented 6 years ago

When writing something like:

Actor: word 'actor' ("," word 'actor') * {{}};
Resource: word 'resource' ("," word 'resource') * {{}};

only one non-terminal ("," word)* is created and Resource ast node has an actors instance variable.

ThierryGoubier commented 6 years ago

Closed by 9728e1a