thefallentree / idea-bison Goto Github PK
View Code? Open in Web Editor NEWidea plugin for bison grammar support
License: MIT License
idea plugin for bison grammar support
License: MIT License
I'm currently contributing to https://github.com/arangodb/arangodb but for some reason their grammer.y file does not work with your plugin correctly. Is it wrongly formatted?
Hello
I am currently working on a cpp project using re-flex and bison on Clion.
Is it possible to parse also the *.yy files ?
Thank you
Got the following error when opening https://github.com/wine-mirror/wine/blob/master/dlls/vbscript/parser.y
'%%' or <rules or grammar declaration> expected, got '|'
I tried out your Bison plugin. Thank you for creating it, so that I don't have to use the goyacc plugin for C-style grammars anymore.
When I installed the plugin, CLion complained:
java.lang.Throwable: Too many element types registered. Out of (short) range. Most of element types (11433) were registered for 'Language: Bison':
ALIAS, BRACED_CODE, CODE_PROPS_TYPE, EPILOGUE, GENERIC_SYMLIST_ITEM, GRAMMAR_DECLARATION, ID_OR_CHAR_LITERAL, NTERM_DECLS, PRECEDENCE_DECLARATOR, PREDICATE, PROLOGUE, PROLOGUE_DECLARATION, RHS, RULES, RULES_OR_GRAMMAR_DECLARATION, STRING_AS_ID, SYMBOL, SYMBOL_DECLARATION, TAG, TOKEN_DECL, TOKEN_DECL...
The token types from that list all look sensible to me, so I wonder why CLion thinks there are 11433 of them. Do you have any idea?
I was hoping to work with these files, but unfortunately many old directives are no recognized by this plugin, and cause the rest of the file not to be parsed either. It would be nice to support old directives for the sake of those projects which need to be compatible with older Bison versions, such as the one that ships with macOS.
Hi, Just in case you want to spend some more time on this plugin: There is a feature from the GoYacc plugin that I'm missing in the Bison plugin, and that is to have a structural overview over the grammar.
The implementation in the GoYacc plugin looks reasonably short, and there is documentation for writing a StructureViewFactory, so it looks doable.
This would allow to see the grammar rules by pressing Ctrl+F12, and also to quickly jump to a particular grammar rule.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.