antlr4 icon indicating copy to clipboard operation
antlr4 copied to clipboard

ANTLR matches incomplete rule

Open diyan-gochev-at-ft-dot-com opened this issue 1 year ago • 4 comments
trafficstars

I am using ANTLR 4.13.2

functionsReturningNumerics
    : 'LENGTH' '(' stringPrimary ')'

........

passing just 'LENGTH' without parentheses, ANTLR matches the expression. Is it an expected behaviour or it's bug?