Hi Grp, ... R1: A|B; R2: C|D; A: INT 'a'; B: REAL 'a'; C: INT 'c'; D: REAL 'd'; ... Here, I have to resolve nondeterminism betwee A and C and also between B...
Hi Grp, ... R1: A|B; R2: C|D; A: INT 'a'; B: REAL 'a'; C: INT 'c'; D: REAL 'd'; ... Here, I have to resolve nondeterminism betwee A and C and also between B...
11504
ronald.petty@...
Apr 2, 2004 5:09 pm
If Antlr produces a lexer/parser, is it ok to expect it will compile without errors? I am probably doing something wrong, so here is a description. Download...
Micheal, Thanks for the hints, I'll take a look at the links and at 2.7.3 which I just downloaded. ... It's not really 'general purpose'. My customer builds...
... opportunity to put a break point in my ANTLR generated parser and follow it as it goes and thats why i am using the .net IDE. I have been able to do that...
... Yes, but only after you build and install the antlr C++ support library! In order to compile antlr generated C++ you'll need to have access to the C++...
... Still ... Yes. Here's a link. http://www.antlr.org/doc/options.html#_bb3 Hmm, just noticed it doesn't specify CSharp as an option. Note to self/Ter...."Pls...
Hi , I'd like to have generated grammar lexer and parser classes derived from custom classes (these deriving from antlr ones ), but the grammar itself wont be...
Serge-- This is already supported via the superClass feature (documented under the various xxx Class Definitions sections in the ANTLR manual. --Loring ... ...
This is the grammar. The act files contain the code. To merge code and grammar use annotation tool which can be obtained from the files section of the antlr...
... Yep. Hi. Sorry about the delay in replying. ... Cool!. Thanks. ... Yep. Added. Would be part of next refresh of the 2.7.3 distro. Cheers, Micheal PS Just...
Hello, I am a newbie in antlr. I believe I have configed the CLASSPATH correctly, because I can use antlr.Tool expr.g to generate: ExprLexer.java ...
11516
ronald.petty@...
Apr 4, 2004 8:51 pm
Hi Tonie, Not sure this will help, but I am attempting the same thing and haven't finished it yet either. To compile I did // cd to the antlr dir, I haven't...
... Hi Tonie, A newbie like u here i had the same problems when i started........i found out that it is beacause of the directory structure and the package...
Hi , I would like the parser the be "fault tolerant" , that is , say : while parsing java , report errors in a function scope , and keep going processing...
... Do you have the directory with the example in your classpath (this can be the full path to your example or the . directory signifying the current directory...
11520
Anthony Youngman
Anthony.Youngman@...
Apr 5, 2004 9:18 am
Sounds to me like we have both a language problem (English is not your first language? :-) and also a copyright-understanding problem. Does your grammar (I...
... In case of GPL it's in fact true. But if grammar contains code, then output *is* GPL, by the very definition of GPL. ... Not necesarily. You have the...
11522
Anthony Youngman
Anthony.Youngman@...
Apr 5, 2004 1:10 pm
So what you're saying is, if the output of Antlr consists of a mixture of Antlr code and your GPL code, then the licence on your code (GPL) trumps that of...
Hi Michael, I combined the rules as you had suggested and it worked! However, I still get a non-determinism warning upon INT and REAL. Is this OK because...
... Yes, thats true. ... But that's the reality. As Antlr licence is compatible with GPL, there is no conflict -- the stronger one (i.e. GPL) applies. ... I...
Hi Grp, Can somebody provide information on how to automate the testing of lexer/parser rules? I usually put my test cases in a text file and feed it to my...
Hi Serge, You need to turn off exception handling at the grammar level and add exceptions in the function rule etc... It will trap all exceptions in ...
11527
ronald.petty@...
Apr 6, 2004 12:11 am
I was wondering is there a way to do the following header { //stuff } that adds code to the top of the class file(s) that is different, is there a way to 1)...
I hope someone can help.. I would like to build a tree walker that can walk a tree but not specify the entire tree structure. For example; parmList: ...
... Howdy. I will be putting some thought into this myself to test antlr 3 functionality. Definitely you want to use the parse-tree/derivation stuff I put...
Hi, I've developed a software for security analysis in java. It uses the antlr parser. I wanted to subclass the TreeNodes so that I would know which characters...