congo-cc / congo-parser-generator

The CongoCC Parser Generator, the Next Generation of JavaCC 21, which in turn was the next generation of JavaCC
https://discuss.congocc.org/
Other
33 stars 9 forks source link

Allow null argument to visit and recurse Node methods #146

Closed adMartem closed 5 months ago

adMartem commented 5 months ago

As described. Also fixes some stray tabs in the Node template and changes ZeroOrOne and ZeroOrMore synthetic nodes to be conditioned by at least one node. The latter only affects the behavior when synthetic syntax nodes are enabled (normally they are not) and fixes a problem with the interaction of JTB nodes that are also assigned to a boolean (existential) LHS value, to yield a useful false(null) assignment value instead of a useless true (node with no child nodes) value. Also a warning condition is now indicated when an attempt is made to assign the value of a JTB syntactic node when they would otherwise create a JTB field in the production node.