[il-antlr-interest: 23961] [antlr-interest] antlr3-maven-plugin not generating sources

2009-06-02 Thread T Stotts
I have created a Java project managed by Maven 2 that includes Antlr 3 grammar files. Following the instructions at: http://antlr.org/antlr3-maven-plugin/index.html resulted in unexpected behavior. (1) Antlr is never invoked during the generate-sources or compile phases. The grammars are not

[il-antlr-interest: 23962] [antlr-interest] Regarding lexer rules return values

2009-06-02 Thread Raghavendra Anjana (RBEI/EMT2)
Hello, I have a grammar with a parser rule as shown below parserrule: (LEXERRULE); LEXERRULE: (LEXERRULE1)(LEXERRULE2)(LEXERRULE3); Whenever my parser rule is recognized I want to return the text identified for LEXERRULE1,2,3 separately. But I believe that we cannot return values from a lexe

[il-antlr-interest: 23963] Re: [antlr-interest] C runtime: crash in dupNode; UP/DOWN/etc. missing factory?

2009-06-02 Thread Ned Gill
On Mon, 01 Jun 2009 17:11:24 +0100, Jim Idle wrote: > Ah, hang on. This is in the tree parser's error message routines. That > means your tree parser is incorrect, or at least the input it is > receiving has a mismatch. This is in the recovery code rather than the error reporting, I think. In

[il-antlr-interest: 23964] Re: [antlr-interest] antlr3-maven-plugin not generating sources

2009-06-02 Thread Tilman Bender
Hi Timotheus, I from what I can see your snippet from pom.xml is lacking an execution element. I have a working example here (be careful, I use the SNAPSHOT) org.antlr antlr3-maven-plugin 3.1.4-SNAPSHOT target/generated-sources/antlr3/de/hshn/se/akse/ss09/ parser/ true true

[il-antlr-interest: 23965] Re: [antlr-interest] Retaining Comments after parsing the file

2009-06-02 Thread vasanthi a
Hi, Can you please let me know how to retain comments after instrumenting the code in ANTRL V2. Thanks Vasanthi. On Mon, Apr 20, 2009 at 6:21 PM, Andreas Meyer wrote: > It seems you are using ANTLR2. There, hidden tokens were handled > differently from ANTLR3 (see http://www.antlr2.org/doc/stre

[il-antlr-interest: 23966] [antlr-interest] @rulecatch{} significant line feed required?

2009-06-02 Thread Volker Stolz
I just stumbled over the following behaviour (using ANTLRWorks 1.2.3) for Java codegen: @rulecatch{} does not do anything, while @rulecatch{// new line } creates the finally-block that I needed. I couldn't find this referenced anywhere, so I was wondering whether it might classify as a

[il-antlr-interest: 23967] Re: [antlr-interest] Retaining Comments after parsing the file

2009-06-02 Thread vasanthi a
Hi I am using ANTLR V 2, and in the code when I change from $channel=SKIP to $channel=HIDDEN and I get a error Token hidden cannot be resolved. Can you please let me know how this can be resolved. On Sun, Apr 19, 2009 at 10:48 PM, Tilman Bender < tben...@stud.hs-heilbronn.de> wrote: > Hi, > The p

[il-antlr-interest: 23968] [antlr-interest] How to migrate from ANTLR V2 to V3

2009-06-02 Thread vasanthi a
Hi All I have a source code that is written in ANTLR V2. I want to migrate the code from V2 to V3. What are the procedures that needs to be followed? What all I need to install? Currently I am facing a problem with Comments. When I instrument the code which is having comment , after instrumenta

[il-antlr-interest: 23969] Re: [antlr-interest] Retaining Comments after parsing the file

2009-06-02 Thread Andreas Meyer
Didn't the linked documentation help? vasanthi a schrieb: > Hi, > > Can you please let me know how to retain comments after instrumenting > the code in ANTRL V2. > > Thanks > Vasanthi. > > On Mon, Apr 20, 2009 at 6:21 PM, Andreas Meyer > mailto:andreas.me...@smartshift.de>> wrote: > > I

[il-antlr-interest: 23970] Re: [antlr-interest] Retaining Comments after parsing the file

2009-06-02 Thread vasanthi a
Hi Meyer I am not getting a clear picture of where I need to change the code in the grammar? What are the changes that are ned in the java grammar code? // Single-line comments SL_COMMENT : "//" (~('\r'|'\n'))* {$setType(Token.SKIP);} ; // multiple-line comments ML_COMMENT : "/*" (

[il-antlr-interest: 23971] Re: [antlr-interest] Comments get removed after instrumenting source

2009-06-02 Thread vasanthi a
where should I use the setHiddenAfter / setHiddenBefore methods? Please let me know vasanthi. On Thu, May 7, 2009 at 4:19 PM, Andreas Meyer wrote: > If you just skip the comment token, it will be discarded. If you want to > retain it, you have to use the "setHiddenAfter" / "setHiddenBefore" > me

[il-antlr-interest: 23972] Re: [antlr-interest] Comments get removed after instrumenting source

2009-06-02 Thread Andreas Meyer
if you use the TokenStreamHiddenTokenFilter from ANTLR2 (see section "How to use this filter" in http://www.antlr2.org/doc/streams.html), it will by itself call these functions. All you have to do is follow the steps from that section. Take care about the calls to filter.discard and filter.hi

[il-antlr-interest: 23973] Re: [antlr-interest] "Cannot launch the debugger"

2009-06-02 Thread Edwards, Waverly
Very likely a reboot is all that was necessary. I **often** encountered this issue if there was a failure in the interpreter to launch because of an issue with user defined code. I recall having reported this back in August 2007 but I do not recall getting a response as to who this issue shoul

[il-antlr-interest: 23974] Re: [antlr-interest] Regarding lexer rules return values

2009-06-02 Thread Dave Dutcher
Is there a reason you can't make LEXERRULE a parser rule? parserrule: (parserrule2); parserrule2: (LEXERRULE1) (LEXERRULE2) (LEXERRULE3); Then you can do exactly what you want. Dave _ From: antlr-interest-boun...@antlr.org [mailto:antlr-interest-boun...@antlr.org] On Behal

[il-antlr-interest: 23975] [antlr-interest] ocaml target?

2009-06-02 Thread Ian Eyberg
hi, anyone know of anyone working on an ocaml target? -ian List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~-~--~~~---~--~~ You received this message because yo

[il-antlr-interest: 23977] Re: [antlr-interest] antlr3-maven-plugin not generating sources

2009-06-02 Thread Jim Idle
T Stotts wrote: > I have created a Java project managed by Maven 2 that includes Antlr 3 > grammar files. Following the instructions at: > http://antlr.org/antlr3-maven-plugin/index.html > resulted in unexpected behavior. > Hi - can't tell you much without the entire pom. Obviously it work

[il-antlr-interest: 23978] Re: [antlr-interest] C runtime: crash in dupNode; UP/DOWN/etc. missing factory?

2009-06-02 Thread Jim Idle
Ned Gill wrote: On Mon, 01 Jun 2009 17:11:24 +0100, Jim Idle wrote: Ah, hang on. This is in the tree parser's error message routines. That means your tree parser is incorrect, or at least the input it is receiving has a mismatch. This is in the recovery code rather t

[il-antlr-interest: 23979] Re: [antlr-interest] ocaml target?

2009-06-02 Thread Terence Parr
On Jun 2, 2009, at 9:58 AM, Ian Eyberg wrote: > hi, > anyone know of anyone working on an ocaml target? Hi Ian. Nope. did you just sign up to build one? ;) Ter List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-em

[il-antlr-interest: 23980] Re: [antlr-interest] ocaml target?

2009-06-02 Thread Sam Harwell
I pondered the idea of an F# target a while back, but I quickly realized I was in over my head. For academic reasons I'd be very interested in the result if you do build an ocaml target. :) Sam -Original Message- From: antlr-interest-boun...@antlr.org [mailto:antlr-interest-boun...@antlr

[il-antlr-interest: 23981] Re: [antlr-interest] ocaml target?

2009-06-02 Thread J. Stephen Riley Silber
Oh, Ian, you have to be careful with posts like that.  Terence is very sneaky like that.  :-) --- On Tue, 6/2/09, Terence Parr wrote: From: Terence Parr Subject: Re: [antlr-interest] ocaml target? To: "Ian Eyberg" Cc: antlr-inter...@antlr.org Date: Tuesday, June 2, 2009, 12:31 PM On Jun 2,

[il-antlr-interest: 23982] [antlr-interest] Tree grammar example, redux

2009-06-02 Thread J. Stephen Riley Silber
Hi gang, Frank mentioned the second example in this article (http://www.antlr.org/wiki/display/ANTLR3/Simple+tree-based+interpeter) not working as of 3.1.3.  I, too, have been trying to get it working, to no avail. Did something fundamental change in the TreeNodeStream functionality?  I like t

[il-antlr-interest: 23983] Re: [antlr-interest] Tree grammar example, redux

2009-06-02 Thread Terence Parr
On Jun 2, 2009, at 4:25 PM, J. Stephen Riley Silber wrote: > Hi gang, > > Frank mentioned the second example in this article > (http://www.antlr.org/wiki/display/ANTLR3/Simple+tree-based+interpeter > ) not working as of 3.1.3. I, too, have been trying to get it > working, to no avail. > > D

[il-antlr-interest: 23984] [antlr-interest] Reverse Iterate over String Template

2009-06-02 Thread Christian Schladetsch
Hello, Sorry if this is to the wrong list; but I know that the ST folks are here too. Is there a way to iterate over a string template in reverse order? If not, can anyone point me to a work-around for C# target? Thanks in advance, Christian. --~--~-~--~~~---~--~

[il-antlr-interest: 23985] [antlr-interest] how to make a parser implement an interface?

2009-06-02 Thread Kevin Chen
Hello everybody!! I'm using antlr3. :-) after generate code, parser class like this: public class ExampleParser extends Parser { ... ... } but, I hope like this: public class ExampleParser extends Parser implements ExampleInterface, { ... ... } Is there a

[il-antlr-interest: 23986] [antlr-interest] Is the parenthesis node duplication bug fixed yet?

2009-06-02 Thread Gary R. Van Sickle
Hi guys, I'm using a maybe month-old 3.1.4 snapshot, where this works: pointer : pointer_guts+ ; pointer_guts : lc='*' type_qualifier? -> ^(POINTER[$lc, "POINTER"] type_qualifier?) ; And this doesn't: pointer

[il-antlr-interest: 23987] Re: [antlr-interest] how to make a parser implement an interface?

2009-06-02 Thread Gerald Rosenberg
Use the "superClass" option to specify the class that your ExampleParser will extend. That class can then implement your interface (must also extend Parser). You will also find it convenient to use the superclass to implement the bulk of your member routines as well. At 09:44 PM 6/2/2009,