Possible extension: Specialized mapping definitions
To let mapping definitions access the current node in the AST, there are several way:
One way would be to be able to define them for a certain nonterminal, and then have access to a typed node via the this
variable. The generated method would then be non-static and defined on the respective nonterminal. This means, that such a mapping definition can only be used for this nonterminal (and its subtypes).