About Haskell Grammar use #3437
Unanswered
Boroughbuga
asked this question in
Q&A
Replies: 1 comment
-
antlr4-parse uses the interpreter for the grammar. Unfortunately, the interpreter won't work because it cannot execute target-specific code in the haskell grammar. A parser and lexer must be generated and compiled. The haskell grammar has two ports: CSharp and Java.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am new to Antlr and I am trying to make use of the Haskell Language Grammar provided here however I am running into some problems when I am trying to execute the examples provided with the grammar.
For example when I simply run this command
antlr4-parse .\HaskellParser.g4 .\HaskellLexer.g4 module -tree \examples\doAndCase.hs
it gives me this error message;
line 1:10 no viable alternative at input 'doGuessing '
It gives pretty much similar errors for all the examples.
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions