-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
I am trying to generate lexer, parser, listener and all standard files in Golang for the following grammar:
https://github.com/trinodb/trino/blob/master/core/trino-parser/src/main/antlr4/io/trino/sql/parser/SqlBase.g4
Environment
Go version: 1.19
Antlr runtime: I tried all the releases from 4.9 to 4.12, and generated parser is always in some error state like :
Unresolved type 'ParserRuleContext'
Duplicate method 'GetStart'
Cannot use 'localctx' (type IFrameExtentContext) as the type ParserRuleContextType does not implement 'ParserRuleContext' as some methods are missing:SetStart(Token)
Impossible type assertion: '*FrameExtentContext' does not implement 'IFrameExtentContext'
And we cannot modify the auto-generated files it seems to fix the issue.
Can someone take a look into this?
Many thanks in advance