All: Prolog language uses lists that look like "[1, 2, 3 | a]". To parse this structure I wrote the following rule. However, AntLR's resultant parser fails...
Hi Terence, I have see on list archive that ANTLR support now Unicode, but what about multi-byte ? ... Deal is that we have Japan users and they want be able...
When you get an exception thrown by the lexer, it is sometimes not caught by the enclosing parser rule. This is not a problem in itself, except that when the...
Hi All, I want to develop new SQL parser for Valentina database, and I wonder if exists well tested SQL grammar for PCCT I have found in mySQL their grammar...
I would like to embed some java code blocks in automatically generated code: bind (myVariable) { class = "java.lang.Integer"; value = 0; } execute { // some...
Why was the whitspace ('\n39;) not removed? Given the input: x y I expected the whitespace to be removed and the output to be "xy" but instead it was exactly...
... Hi Terence, thank you for this Grammar. At least now there is where to start from. Okay, I will download ANTL now. I work on MAC and use C++. As I see I...
Hello, all. After getting a little more feedback (thanks to everyone for their suggestions and comments), I've updated the Adder Tutorial (covering extent...
Hi, Here is a link to a message I posted last year regarding this. http://groups.yahoo.com/group/antlr-interest/message/2230 or search the news group for...
Hi, I'm not sure if this is desired because from what I've read, this looks like a bug... In my lexer, I am creating a string literal, but removing the quotes ...
Anyone out there able to offer any additional insight on the pros/cons of SableCC vs. ANTLR? (http://www.sablecc.org) I am unable to get very much information...
Hello, I am currently converting an old PCCTS grammar of mine to the new ANTLR 2.* syntax. One problem I am confronted with, is the question if the new syntax ...
Hello!
I'm writing an interpreter using antlr 2.7.0. In this version of antlr,
there is an utility called ASTFrame, that allows you to graphically see the...
Hi, I am new in this ANTLR group. We are working on an application that has to transform a logical proposition to its Conjunctive Normal Form (CNF). Doing...
I've been working on some code that subclasses BaseAST and run into a probelm with equals. Here's the basic test program I've been running: (JavaTree is a...
Dear All, This is Shravan Kumar from Polaris Software Lab, Global Division. We are looking out for the following skills set for our global operations. ...
All: Once two rules are specified: a: ...; b: ...; Now I want to specify a rule that indicates that b follows a _with_no_intervening_whitespace_: c: a (no...
I have been writing a fortran/VisulaBasic/DarthmoutBasic to Java converter. I would like to look into writing a C# to Java converter also. Does anyone have a...
Hello All, I was trying to build a lexer to handle unicode characters for java. I could successfully run the antlr.Tool command line utility. However, the java...
Hi Ric, I have got a question about your latest development release. This version avoids updating files "XXXTokenTypes.hpp" if no changes occurred. I fully ...
hi, first sorry for my bad english. :-) i have the following text to parse: function foo1( ) as integer if a=b then ... end if if c=b then end if end function ...
Hi Ric, hi Terence, for a simple lexer, parser and treeparser with no user code inside, I get C++ binaries with a size of several megabytes. Do you know why so...
Zʋzלޮ+ When you detect an error, or want to abandon processing the current line, switch to a dummy lexer that has only one rule that matches anything....
All: A prolog parser I am working on has a method "readModule" that should work but does not. Extracting the rule and creating another parser/lexer that has...
Hi, I use ANTLR for implementing a command-line interface. Right now (in a pretty brainless way), I instantiate a new lexer and parser to handle a line entered...
Hi, I use ANTLR for implementing a command-line interface. Right now (in a pretty brainless way), I instantiate a new lexer and parser to handle a line entered...
Thanks to everyone who commented on the first version of the ANTLR tutorial I wrote. I've made a new revision of it, the most notable change of which is that I...