[il-antlr-interest: 24137] [antlr-interest] Custom TreeAdapter and GUnit - Mission Impossible?

2009-06-09 Thread Tilman Bender
/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

[il-antlr-interest: 24055] [antlr-interest] GUnit: Testing rules which have parameters

2009-06-05 Thread Tilman Bender
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

[il-antlr-interest: 24035] Re: [antlr-interest] how to implement this string rule?

2009-06-04 Thread Tilman Bender
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

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

2009-06-02 Thread Tilman Bender
antlr Tilman Bender Student des Software Engineering Hochschule Heilbronn tben...@stud.hs-heilbronn.de Am

[il-antlr-interest: 23936] Re: [antlr-interest] I want to throw an exception and stop parse, please!

2009-05-31 Thread Tilman Bender
/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

[il-antlr-interest: 23824] Re: [antlr-interest] Building C# Libraries,

2009-05-20 Thread Tilman Bender
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

[il-antlr-interest: 23733] Re: [antlr-interest] How do I throw exception on ERROR "no viable alternative at character "

2009-05-15 Thread Tilman Bender
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

[il-antlr-interest: 23722] Re: [antlr-interest] How do I throw exception on ERROR "no viable alternative at character "

2009-05-15 Thread Tilman Bender
#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

[il-antlr-interest: 23721] Re: [antlr-interest] Modifying tree based on semantic content

2009-05-15 Thread Tilman Bender
> ^(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

[il-antlr-interest: 23703] Re: [antlr-interest] Parse trace?

2009-05-14 Thread Tilman Bender
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

[il-antlr-interest: 23552] [antlr-interest] Semantic Analysis via TreeWalker

2009-05-06 Thread 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

[il-antlr-interest: 23516] Re: [antlr-interest] New Maven artifacts, some fixes, buidlable source

2009-05-05 Thread Tilman Bender
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

[il-antlr-interest: 23487] Re: [antlr-interest] New Maven artifacts, some fixes, buidlable source

2009-05-03 Thread Tilman Bender
true always false Tilman Bender Student des Software Engineering Hochschule Heilbronn tben...@stud.hs

[il-antlr-interest: 23412] Re: [antlr-interest] Implicit Typecasting with a tree grammar

2009-04-28 Thread Tilman Bender
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

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

2009-04-19 Thread Tilman Bender
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

[il-antlr-interest: 23065] [antlr-interest] Implicit Typecasting with a tree grammar

2009-04-09 Thread Tilman Bender
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

[il-antlr-interest: 23003] Re: [antlr-interest] selective debug code generation for maven plugin

2009-04-04 Thread Tilman Bender
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

[il-antlr-interest: 22993] [antlr-interest] selective debug code generation for maven plugin

2009-04-03 Thread Tilman Bender
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

[il-antlr-interest: 22972] Re: [antlr-interest] GUnit: NPE on JUnitCodeGeneration

2009-04-02 Thread Tilman Bender
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

[il-antlr-interest: 22959] [antlr-interest] GUnit: NPE on JUnitCodeGeneration

2009-04-02 Thread Tilman Bender
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

[il-antlr-interest: 22929] [antlr-interest] TreeWalker to optimize AST under certain conditions

2009-04-01 Thread Tilman Bender
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

[il-antlr-interest: 22871] [antlr-interest] GUnit and Maven

2009-03-31 Thread Tilman Bender
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