Home
IDEs Support (IntelliJ Platform) | JetBrains
Contact Support
Community
Sign in
Gregory Shrago
Total activity
512
Last activity
August 14, 2023 18:03
Member since
January 16, 2007 18:03
Following
0 users
Followed by
1 user
Votes
0
Subscriptions
214
Activity overview
Posts (3)
Comments (295)
Sort by recent activity
Recent activity
Votes
Created
February 17, 2017 09:08
For expression parsing one can use Pratt parsing approach (the simplest bottom-up parsing case when it becomes just a loop). This is exactly what you need in that case. Expression parsing is descri...
Community
IntelliJ IDEA Open API and Plugin Development
Expression handling in grammar-kit - issue with deep trees
0 votes
Edited
February 09, 2017 14:07
Manual element type remapping: 1. PsiBuilder API way: rule ::= some <<remap>> // remap after "some" is successfully parsed public static boolean remap(builder, level) { m = builder.getLatestDo...
Community
IntelliJ IDEA Open API and Plugin Development
Speeding up negative look-ahead with GrammarKit-based parsers
0 votes
Edited
January 05, 2017 02:58
I use these approaches: 1. use the simplest lexer/token based lookaheads 2. minimize rollbacks by keeping already parsed parts via left rules, or manual frame.marker remapping 3. making parsing le...
Community
IntelliJ IDEA Open API and Plugin Development
Speeding up negative look-ahead with GrammarKit-based parsers
0 votes
Edited
November 20, 2016 23:48
NoClassDefFoundError: If a class is not present in the created jar and is not present in classes.log.txt then it wasn't loaded. Run exactly same code with IntelliJ SDK and -verbose:class option fir...
Community
IntelliJ IDEA Open API and Plugin Development
Standalone Parser Dependencies
0 votes
Created
November 20, 2016 18:58
I've just added parseLight method that demonstrate the LighterAST usage: https://github.com/JetBrains/Grammar-Kit/commit/4bf573ce0ac You can use SyntaxTraverser API or PsiBuilder.getLightTree() dir...
Community
IntelliJ IDEA Open API and Plugin Development
Standalone Parser Dependencies
0 votes
Created
November 20, 2016 03:12
Just "Exclude from Compile" or delete everything related to diagramming. One doesn't need that for parsing ;-)
Community
IntelliJ IDEA Open API and Plugin Development
Standalone Parser Dependencies
0 votes
Edited
November 20, 2016 23:48
Hi, Due to its nature light-psi-all.jar needs to be rebuilt for each version. The process is hacky yet simple: 1. run the java code you want to run with -verbose:class option and save the output 2....
Community
IntelliJ IDEA Open API and Plugin Development
Standalone Parser Dependencies
0 votes
Created
November 04, 2016 17:03
Please include the exception stacktrace, it is not clear what exactly went wrong. Also SqlLanguage.INSTANCE usually cannot be used as is, you need to specify the SQL dialect instead.
Community
IntelliJ IDEA Open API and Plugin Development
How to use SqlLanguage in Plugin to reformat SQL
0 votes
Edited
October 31, 2016 18:22
Here's recoverWhile HOWTO: https://github.com/JetBrains/Grammar-Kit/blob/master/HOWTO.md#22-using-recoverwhile-attribute .
Community
IntelliJ IDEA Open API and Plugin Development
Grammar-kit: struggling with recoverWhile
0 votes
Created
October 31, 2016 17:49
Hello Irina, The problem is that the sample is broken. I've explained it here to some degree: https://youtrack.jetbrains.com/issue/IJSDK-203
Community
IntelliJ IDEA Open API and Plugin Development
Grammar-kit: struggling with recoverWhile
0 votes
«
First
‹
Previous
Next
›
Last
»