» To Project

Infer cons from non-terminal name

StrategoXT #824 - Improvement (by Tim on Jun 3)

A lot of times my rules look like this:
(Terminal | Nonterminal )* -> NonTerm {cons("NonTerm")}

It seems natural to infer the cons name if it is omitted like:
(Terminal | Nonterminal )* -> NonTerm

Resulting in the same rule.

Log in to post comments