Open AkhilAkkapelli opened 1 year ago
It's caused by action code. Action code is anything between braces, e.g., { .... }
or { .... }?
. Code within the braces is target specific. For the Java target, it should be this
. Ideally, this grammar should be reformatted as a "target agnostic grammar", but if the plan is to add this to the repo, please create directories fortran/
and fortran/fortran90/
and place the new grammar in fortran/fortran90/
.
@cyrillemidingoyi
I am getting error while compiling Antlr4 generated modules files.
akhil@KHUSHI:~/FortranTest$ antlr4 Fortran90Grammer/Fortran90Lexer.g4
akhil@KHUSHI:~/FortranTest$ antlr4 Fortran90Grammer/Fortran90Parser.g4
Fortran90Lexer.java:
FortranParser.g4:
FortranLexer.g4: