Questions tagged [antlrworks2]

ANTLRWorks 2 is a parser generator for reading, processing, executing, or translating structured text or binary files.

Standalone Application or NetBeans Plugin

ANTLRWorks 2 is available both as a standalone application and as a plugin to NetBeans 7.3.

Highly Responsive Code Completion

ANTLRWorks 2 is the first development enviroment to incorporate Tunnel Vision Labs' recent advances in highly responsive code completion — code completion features respond instantly as you type in a grammar. In the past, languages with dynamic typing and/or type inference posed significant limitations on IDEs to produce usable code completion behavior. ANTLRWorks 2 highlights the ability of our algorithms to overcome these limitations.

Navigation Features

ANTLRWorks 2 provides several standard navigation features in NetBeans. In addition to the Navigator window, ANTLRWorks 2 highlights references to the element under the caret (the "Mark Occurrences" feature) and allows the user to Ctrl+Click elements to jump to a declaration.

Unique Features

The performance and consistency of Tunnel Vision Labs' source analysis algorithms allows us to provide several additional features to help users understand large amounts of code with less effort. ANTLRWorks 2 allows users to hover over an element in a grammar to see a tooltip with information about the referenced rule.

14 questions
5
votes
2 answers

Token recognition error: antlr

I have an ANTLR 4 grammar: grammar Test; start : NonZeroDigit '.' Digit Digit? EOF ; DOT : '.' ; PLUS : '+' ; MINUS : '-' ; COLON : ':' ; COMMA : ',' ; QUOTE : …
dfritsi
  • 1,224
  • 3
  • 14
  • 24
5
votes
1 answer

Interpreting / Testing strings in ANTLRWorks 2

ANTLRWorks 1.5 has an "Interpreter" tab where you could enter strings to test your parser on. So far I haven't been able to find anything equivalent in ANTLRWorks 2. Does it have anything like that, and if so, how is it accessed?
Brad Mace
  • 27,194
  • 17
  • 102
  • 148
3
votes
1 answer

ANTLR4: How to find the root rules in a gramar which maybe used to find the start rule

I have been looking at the grammars located at: Antlr 4 grammars and I have been using Antlrworks 2 to view them, however I am finding it difficult to locate the start rule for the entire grammar. I think the definition of a start rule is a node…
Har
  • 3,727
  • 10
  • 41
  • 75
3
votes
1 answer

How can we convert regular expression to ANTLR 4 Expression

I was searching for a way or tool to convert the regular expression into the ANTLR 4 expression but could not find anything suitable. Now i'm curious "Can we actually convert it or not." If not, then i assume ANTLR 4 expression and regular…
Abhishek-M
  • 410
  • 2
  • 14
2
votes
1 answer

ANTL 4 Lexer Rules not recognized in combined grammar

So I'm working on a combined grammar in ANTLR4 using ANTLRWorks 2.1. I have the lexer rules Identifier and Block that are not being recognized as defined lexer rules, but only in the last parser rule defined. Adding a literal after these rules…
2
votes
1 answer

AntlrWorks 2.1 - Parse Tree (GUI) not popping up

I am using Java 7. Updated antlr config file to point to Java 7. And looking at other issues on StackOverflow and elsewhere, seems like the fact that 'NetBeans' annotation-processor-compiled-with-RELEASE_6; but need 7 warning is a non-issue. I do…
user3213604
  • 407
  • 1
  • 7
  • 18
2
votes
0 answers

ANTLR4 Error: Exception in thread "main" java

I follow instruction "Getting Started with ANTLR v4" with simple grammar, no problem with other instruction. But I have one problem. Except, I'm starting run grun Expr prog -gui But show this error: Exception in thread "main"…
1
vote
2 answers

Is it possible to export ANTLR4 railroad diagrams as png? If so, how?

I want to export ANTLR4 rules in the railroad format. Please notice that this format is not the same as generated by command line option "-atn". The railroad format is generated by antlrworks, but I'd like to generate this programatically. I am…
user1073494
1
vote
0 answers

ANTLRWorks 2 Run menu is dimmed

I have downloaded ANTLRWorks 2, created new file with File->New and pasted Hello sample into it grammar Hello; r : 'hello' ID ; // match keyword hello followed by an identifier ID : [a-z]+ ; // match lower-case identifiers WS :…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
1
vote
1 answer

Unable to install antlrworks2

I downloaded antlrworks2 from the tunnel vision labs website and tried to install it by running the antlrworks2.exe but getting the error "antlrworks2.exe is not a valid win32 application". I tried it on Win server 2003 as well as Win 7 32 bit but I…
Mandar
  • 303
  • 4
  • 18
0
votes
1 answer

How can I access the ANTLR parse tree?

I am using ANTLR v. 4.5.2, ANTLRWorks 2.1 and the made available grammar for tSQL right now. ANTLRWorks generates me a perfect parse tree from my SQL code but I want to use ANTLR in my webapplication (without ANTLRWorks). I already generated my…
xNappy
  • 158
  • 1
  • 4
  • 12
0
votes
2 answers

Initialising my Lexer throws an error in Antlr4

Hi Team, I'm new to Antlr and I have spent 4 days trying to learn, install, run tutorials and integrate with my IDE. :( I can run this [tutorial][1] in the Terminal successfully. My goal now is to run the same tutorial in Netbeans with AntlrWorks2…
0
votes
0 answers

The best practice to debug grammar (mismatched input)

When I run Lexer+Parser (combined) using g4 grammar I get No. of Tokens=9 line 1:1 mismatched input 'module' expecting '[' Verilog2001Visitor VisitR Visit Symbol=module Rule=74 range Line=[2] module kuku(a,b); The Buid is clean, no…
BNR
  • 55
  • 1
  • 8
0
votes
1 answer

AntlrWorks 2 output

So i am using Antlrworks 2, working on a rather large grammar. Problem is that in this grammar there are multiple ambiguities that i am trying to work through. I was wondering if there is a way to interpret which rules were invoked when there was a…
np-hard
  • 5,725
  • 6
  • 52
  • 76