Closed 06needhamt closed 8 years ago
However it fails with a lexer error when I Input the BNF
Could you please attach the log of the tool including the error message?
This is the only output i get
C:\Users\thoma\Desktop>bnfc --java --jflex test.bnf > bnfc.log
bnfc: user error (syntax error at line 1 due to lexer error)
@06needhamt please attach the bnfc.log
and test.bnf
files.
@ForNeVeR ah i forgot about gists i will make one now
@06needhamt and your bnfc.log
looks suspicious — as if you taken your command line input and not the log file itself.
(I'm still downloading bnfc to verify)
@ForNeVeR that's all the log is the routed command line output
In my case bnfc.log
is empty. bnfc: user error (syntax error at line 1 due to lexer error)
is really the only output.
First of all, the BNF in the README is not a correct BNF. It was created just for the user's information. The first step is gonna be making the BNF in the README a correct BNF specification of the language syntax.
The issue has been split.
Changed the title of the ticket, because it looked like it's a duplicate of #251
According to https://github.com/morganey-lang/morganey-intellij-plugin/issues/17 and https://github.com/morganey-lang/morganey-intellij-plugin/pull/18 this issue is no longer in the scope of this repository. Closing as invalid.
In order for me to implement auto-completion and syntax highlighting i require a JFlex grammar file for Morganey as detailed here. I see you already have a BNF definition for Morganey in README, so i tried to use this tool with these command line options
--java --jflex
to generate a JFlex grammar from it, However it fails with a lexer error when I Input the BNF. Having a JFlex grammar will allow me to continue implementing autocomplete and syntax highlighting .Many Thanks