The antlr.jar doesnt contain DefaultFileLineFormatter, and as a result I get a runtime error. Is this a bug? If I use antlrall.jar it works fine. I am using...
I have read about the Java implementation but I cannot remember this being defined. How is the tokentype file used by the Lexer?...
6022
Bogdan Mitu
bogdan_mt
Aug 2, 2002 12:23 pm
Hi Davy, First of all, protected rules don't return any token. Second, if you set the token type to SKIP, lexer won't output it. Third, if the rule is empty,...
6023
mzukowski@...
montyzukowski
Aug 2, 2002 2:37 pm
antlr.jar is just the tool, not the runtime. antlrall.jar has the runtime classes. So this is not a bug. Monty...
6024
Trey Spiva
treyspiva
Aug 2, 2002 10:22 pm
I have used the java grammar to produce a java parser in C++. When trying to parse the java.lang.Character.java source file the stack overflows when cleaning...
6025
genericised
Aug 5, 2002 7:31 am
what a loser, I just read "vocab.html" ;)...
6026
genericised
Aug 5, 2002 7:40 am
That doesn't work. I was under the impression that the rule didn't need to be anything, because it was set as the filter for the lexer with options {...
6027
genericised
Aug 5, 2002 1:15 pm
This works: class SillyLexer extends Lexer; BLAH : c:. { System.out.println("ignoring: " + c); } ; I'd be interested to know if anyone knows how to do this...
6028
Mark Munro
mark_munrouk
Aug 5, 2002 4:47 pm
Hi, I want to use Antlr to parse C++ header files/class definitions to be able to list the class's and members within a class. Are there any grammars around...
6029
Jan Suchotzki
sucho_at_work
Aug 6, 2002 8:22 am
Hi everyone, I'm new to ANTLR and would like to build an translator. It has to translate a companys internal composition language (you can think of it like...
6030
Schaefer, Doug
doug_kdschae...
Aug 6, 2002 12:57 pm
Hi there, I'm also interested in parsing C/C++ and was wondering about other peoples' experiences using Antlr for such a job. I'm particularly interested in ...
6031
mzukowski@...
montyzukowski
Aug 6, 2002 2:54 pm
You might get some ideas by reading my paper on the AREV to VB translator I wrote. http://www.codetransform.com/fun_with_antlr.html. I'm also available as a...
6032
avoelker
Aug 7, 2002 12:44 am
Is there an estimated date for when antlr 2.7.2 will be final? Thanks, Andrew...
6033
genericised
Aug 7, 2002 12:34 pm
The documentation for ANTLR seems kind of bottom-up. In that one has to read all the documentation to learn how to use it (well I did). I think it would be...
6034
Jan Suchotzki
sucho_at_work
Aug 7, 2002 12:46 pm
Hi, I thought I read yesterday that SORCERER was integrated into ANTLR. Is that right? How well covers the book "Language translation using PCCTS and C++" the...
6035
mzukowski@...
montyzukowski
Aug 7, 2002 2:33 pm
The concepts are the same as in the book, but the details, the actual implementation is different. Monty...
6036
Ric Klaren
izniegoed
Aug 9, 2002 11:25 am
... No. :( Ric -- ... Before they invented drawing boards, what did they go back to?...
6037
Terence Parr
parrt2000
Aug 11, 2002 6:12 pm
... Things are in a state of flux for me at the moment; I'm actually prepping for teaching a grad class in soft dev at the University of San Francisco this...
6038
Terence Parr
parrt2000
Aug 11, 2002 6:13 pm
... Hi there, I think the SQL (probably an old PCCTS grammar) is at antlr.org or perhaps at polhode.com. There are some good (I think) intro articles around...
6039
Terence Parr
parrt2000
Aug 11, 2002 6:14 pm
The old NeXT PCCTS C/ObjC/C++ grammar should be available at polhode.com or in antlr.org somewhere ;) Ter ... -- Co-founder, http://www.jguru.com Creator,...
6040
elias_biris
Aug 13, 2002 4:09 am
Hi, I am a newbie in ANTLR. I notice that ANTLR is the continuation of what was PCCTS. I want to use ANTLR to generate a C++ parser. My question is, simply,...
6041
QinPeng
qinpeng0036
Aug 13, 2002 9:06 am
But if using the method in the example, I can't distinguish the "#include" and other predefinede directive such as "#pragma pack(1)", "#if", etc. thanks! ... ...
6043
rradh
Aug 13, 2002 5:34 pm
Hi, Apologies if this is a repeat question! I want to place the generated Parser, Lexer and Treewalker in the tool's namespace. Currently I have a perl script...
6044
rradh
Aug 13, 2002 5:43 pm
Hi, I can't quite get what you mean. You can whatever behavior you want in the lexer based on the token: ... INCLUDE ... { .... } In a similar fashion, in your...
6045
Trey Spiva
treyspiva
Aug 13, 2002 5:49 pm
For C++ ther is an option called "namespace". The documentation says: "When set, all the C++ code generated is wrapped in the namespace mentioned here." Is...
6046
Sander Mägi
sandermagi
Aug 14, 2002 10:50 am
Hi Developers! Aqris Software is glad to announce that RefactorIT 1.1 is free for working on ANTLR source code. RefactorIT is a java refactoring tool that...
6047
QinPeng
qinpeng0036
Aug 15, 2002 3:11 am
When I want to generate CPP codes, How to place lexer, parser, treewalker class in diffrent .g files? ... From: QinPeng <qinpeng@...> To:...
6048
genericised
Aug 15, 2002 10:16 am
I created the following parser, as an example of how to parse comma separated variable (CSV) files: class CSVParser extends Parser; file : (line)+ ; line :...
6049
Bogdan Mitu
bogdan_mt
Aug 15, 2002 10:49 am
Hi, If you want to be sure that all the input has been parsed, you should finish the main rule with EOF: file : (line)+ EOF ; As a side note, the way you...