Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The altNum displayed in the ANTLR4 plugin tool differs from the altNum at runtime. #4547

Open
zeta9044 opened this issue Mar 6, 2024 · 0 comments

Comments

@zeta9044
Copy link

zeta9044 commented Mar 6, 2024

use runtime version: Antlr4 4.13.1

antlr 'org.antlr:antlr4:4.13.1'  
// https://mvnrepository.com/artifact/org.antlr/antlr4-runtime
implementation 'org.antlr:antlr4-runtime:4.13.1'

use intellj tool plugin: ANTLR v4 1.23 ANTLR Project

use c/c++ parser grammar: antlr4 grammar cpp14
I use option for AltNum:
options { superClass=CPP14ParserBase; contextSuperClass=org.antlr.v4.runtime.RuleContextWithAltNum; tokenVocab=CPP14Lexer; }

Analysis source:
void err_handler(OCI_Error *err) { print_ostr(OCI_ErrorGetString(err)); print_text("\n"); }

intellj
runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant