Strumenta / antlr-kotlin

Support for Kotlin as a target for ANTLR 4
Apache License 2.0
221 stars 47 forks source link

Predicate For Parser Rule Ignores Nullability #157

Closed piacenti closed 7 months ago

piacenti commented 7 months ago

I have a rule with multiple paths guarded by predicates and it generates this: image

The rule predicate is using standard format {$rtype in listOf("...")}?

This is not a problem for scenarios not ending on the when blocks in the sempred methods.

This is happening for both versions 0.1.1 and 0.1.2 which is the latest

lppedd commented 7 months ago

Looking into it.