AntlrVSIX
AntlrVSIX copied to clipboard
AntlrVSIX is a language server for use with Visual Studio 2019, Visual Studio Code, and Gnu Emacs to support Antlr, Bison, and W3C EBNF grammars. In addition to the IDE extensions provided here, a com...
Antlr produces a warning for this: FOO1: 'foo'; FOO2: 'foo'; But, it does not produce an error for this: FOO1: [f] [o] [o]; FOO2: [f] [o] [o]; Antlrvsix should have:...
FindRefsAndDefs() is not working for finding of a lexer LHS symbol for PlSqlLexer/Parse.g4. I don't know why, but it's preventing the rename of a LHS symbol. read PlSqlParser.g4 read PlSqlLexer.g4...
The unit test TestIndexQuickInfo4b is slow. I traced it to the unbelievably slow parse of ANTLRv4Parser.g4. Seriously, it should only take a second max.
Looks like a null ptr deref for the find command Trash.dll!Trash.Repl.Execute() Line 1070 C# Trash.dll!Trash.Program.Main(string[] args) Line 13 C#
When reading a grammar like this: %{ #include #include int yylex(); %} %token A B C NL %% stmt: S NL { printf("valid string\n"); exit(0); } ; S: X Y...
For the Java9.g4 grammar, I can remove almost all indirect left recursion using -- Pile all crap into primaryNoNewArray. unfold //parserRuleSpec[RULE_REF/text()='primaryNoNewArray']//RULE_REF[text()='fieldAccess'] unfold //parserRuleSpec[RULE_REF/text()='primaryNoNewArray']//RULE_REF[text()='methodInvocation'] unfold //parserRuleSpec[RULE_REF/text()='primaryNoNewArray']//RULE_REF[text()='classInstanceCreationExpression'] unfold //parserRuleSpec[RULE_REF/text()='primaryNoNewArray']//RULE_REF[text()='methodReference'] unfold //parserRuleSpec[RULE_REF/text()='primaryNoNewArray']//RULE_REF[text()='arrayAccess'] unfold...
Perform the following transformations to Java9.g4: -- Pile all crap into primaryNoNewArray. unfold //parserRuleSpec[RULE_REF/text()='primaryNoNewArray']//RULE_REF[text()='fieldAccess'] unfold //parserRuleSpec[RULE_REF/text()='primaryNoNewArray']//RULE_REF[text()='methodInvocation'] unfold //parserRuleSpec[RULE_REF/text()='primaryNoNewArray']//RULE_REF[text()='classInstanceCreationExpression'] unfold //parserRuleSpec[RULE_REF/text()='primaryNoNewArray']//RULE_REF[text()='methodReference'] unfold //parserRuleSpec[RULE_REF/text()='primaryNoNewArray']//RULE_REF[text()='arrayAccess'] unfold //parserRuleSpec[RULE_REF/text()='primaryNoNewArray']//RULE_REF[text()='primary'] rup we get this rule which...
This goes back to my favorite problem, semantic highlighting, which is not implemented by the MS LSP client for VS IDE. They are really damn slow. All the code I...
There should be some commands in Trash to do diffs, merge, and 3-way merges. E.g., `diff "//foobar" "//foobar2"`. Note, it should be general enough to compare across documents, too.
I added a unit test for importing Antlrv3.g into an Antlr4 grammar. The results are starting to look ok, but for whatever reason, the CheckDoc() call in the test takes...