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
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
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
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
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
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
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
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
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
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
: "/*"
(
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
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
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
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
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
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
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
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
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
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,
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
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
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.
--~--~-~--~~~---~--~
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
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
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,
26 matches
Mail list logo