/k6nzsuphzusezy5v
Unfortunately this does not seem to be fixed yet. Does anyone know a
good workaround for this so I can use my custom TreeNodes without
losing my tests?
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs-heilbronn.de
anyone have a good suggestion how to get
around this?
It would be really cool, if this would be built into a future version
of GUnit. Some kind of test-fixture would also be really neat ;-)
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs-heilbronn.de
Hi Xiaohua,
Try this one:
STRING :
'"' (~('"'|'\n'|'\r'))* '"';
It says the string starts with " and ends with " while an between
those there can be any character but ",\n or \r
This was taken from the
antlr
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs-heilbronn.de
Am
/whatever.
HTH
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs-heilbronn.de
Am 31.05.2009 um 08:21 schrieb Kevin Chen:
> But, there's no throws in original recover method:
>
> public void recover(IntStream input, RecognitionException r
HI,
I guess you will find it on the ANTLR2-Project Site:
http://www.antlr2.org/download.html
HTH
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs-heilbronn.de
Am 20.05.2009 um 17:16 schrieb Craig Main:
> Hi,
>
>
>
> Antlr depends on stringte
hth
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs-heilbronn.de
Am 15.05.2009 um 16:07 schrieb Bharath R:
> I have overridden the below method in the parser and lexer code
> generated.
--~--~-~--~~~---~--~~
You re
#6c32f5b03a9049357f3ddfbccee9a5e0
Allthough I am not sure this is a good idea.
HTH
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs-heilbronn.de
Am 15.05.2009 um 06:51 schrieb Bharath R:
> Hi All ,
>
> Currentl when I parse my String , I am getting some errors printed
> in
> ^(PLUS a b)
;
number:
INT
| FLOAT
;
This is just a quick brain-dump but might give you hints in the right
direction.
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs-heilbronn.de
Am 15.05.2009 um 05:38 schrieb David Jameson:
> Is there an
seen this as a config option in the antlr3-maven-
plugin and I am sure there is a corresponding
ANTLR-Tool option for this.
Another (maybe weird) idea: Isn't this a typical use case for AOP?
Would it be feasible to weave the logging
into the whole thing? Just an idea ;-)
Tilman Bender
"+
$b.returntype
2. How can I modifiy the tree returned by $a so that I can replace
every token like INT:3 with a token of FLOAT:3.0. So that (+ 3 4.0)
becomes (+ 3.0 4.0)
I would write a recursive method for doint the tree manipulation but
my main problem is, that I do not know how to
recognizer lacks proper unit tests.
I can get along very well with the plugin as it is, but this feature
would really be the cherry on top of the cake ;-)
kind regards
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs-heilbronn.de
Am 02.05.2009 um 00:31 schrieb
true
always
false
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs
Hi,I love replying to myself ;-)I found some way of achieving the implicit uppercast, but not using a tree grammar.I wrote my grammar to distinguish between int and float expressions right from the start.Unfortunately I now run into trouble. I added boolean expressions to my grammar and cannot find
Hi,
The problem is, that you use skip() where you should actually use
something like:
: "//" (~('\r'|'\n'))* {$channel=HIDDEN;}
This way the comment will still be acessible in the parser:
http://www.antlr.org/wiki/pages/viewpage.action?pageId=557063
HTH
Tilm
e such a thing via a TreeWalker?
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs-heilbronn.de
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To
gives me a syntax error on this.
Or did you mean to do this with maven profiles?
What do you mean by "normal Maven semantics"?
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs-heilbronn.de
Am 03.04.2009 um 18:52 schrieb Jim Idle:
> Please read th
element
where you can specify a pattern for grammars to generate with /without
debugging.
kind regards
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben...@stud.hs-heilbronn.de
--~--~-~--~~~---~--~~
You received this message because you
Hi Leon,
Augh! How could I be that blind. I also misinterpreted the "walks"
keyword as I thought adding it to the heading of the testsuite would
suffice.
Thank you very much for you help and keep on the good work with GUnit!
Tilman Bender
Student des Software Engineering
Hochschule
Hi folks,Tried to setup a testsuite for my tree grammar. The testsuite can be run (allthough all tests fail) via the normal org.antlr.gunit.Interp command butwhen I try to generate JUnit-Code for it I get an NPE: java -cp ../../../target/classes/:$CLASSPATH org.antlr.gunit.Interp -o Optimizer.tests
addition saying:
^(ADD 0 expr ) or ^(ADD expr 0) the subtree should be replaced by just
expr
The same applies to multiplications with one or zero: remove the
subtree and replace it by one of the operands or zero.
How could I achieve this with a tree-grammar?
kind regards
Tilman Bender
Student
something. If you have please
let me know.
Sorry, if this is not the proper list for such discussion, but I could
not find more project information on GUnit or the antlr3-maven-plugin
apart from the wiki-pages.
kind regards
Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tben
22 matches
Mail list logo