morganey-lang / Morganey

Lambda Calculus based, interpreted programming language that recognizes Church encoded structures.
43 stars 4 forks source link

Autocompletion and syntax highlighting in Intellij IDEA #246

Closed 06needhamt closed 8 years ago

06needhamt commented 8 years ago

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

rexim commented 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?

06needhamt commented 8 years ago

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)
rexim commented 8 years ago

@06needhamt please attach the bnfc.log and test.bnf files.

ForNeVeR commented 8 years ago

@06needhamt better use Gist next time!

06needhamt commented 8 years ago

@ForNeVeR ah i forgot about gists i will make one now

06needhamt commented 8 years ago

@rexim See https://gist.github.com/06needhamt/7e1fa550d39958c689ca9092bf281573

ForNeVeR commented 8 years ago

@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)

06needhamt commented 8 years ago

@ForNeVeR that's all the log is the routed command line output

ForNeVeR commented 8 years ago

In my case bnfc.log is empty. bnfc: user error (syntax error at line 1 due to lexer error) is really the only output.

rexim commented 8 years ago

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.

rexim commented 8 years ago

The issue has been split.

Pieces

rexim commented 8 years ago

Changed the title of the ticket, because it looked like it's a duplicate of #251

06needhamt commented 8 years ago

Also see https://github.com/morganey-lang/morganey-intellij-plugin/issues/4

rexim commented 8 years ago

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.