[il-antlr-interest: 28825] [antlr-interest] throws on rule declaration being ignored

2010-05-13 Thread Kaleb Pederson
'throws' id ( ',' id )* -> ^('throws' id+) ; I know I can make it a runtime exception, but I'd like to use my exception hierarchy. Am I doing something wrong or should that syntax work? Thanks. -- Kaleb Pederson Blog - http://kalebpederson.com Twitter - http://twi

[il-antlr-interest: 28824] [antlr-interest] gunit syntax for tree walker with a flat list of nodes

2010-05-13 Thread Kaleb Pederson
; java.lang.NullPointerException at org.antlr.gunit.OutputTest.getExpected(OutputTest.java:65) at org.antlr.gunit.gUnitExecutor.executeTests(gUnitExecutor.java:245) ... What is the correct way to match a flat tree? Thanks. -- Kaleb Pederson Blog - http://kalebpederson.com Twitter - http://twitter

[il-antlr-interest: 28785] [antlr-interest] GUnit testsuite Run / Debug Configuration for Eclipse

2010-05-10 Thread Kaleb Pederson
DE Eclipse plugin (thanks Edgar!), but to my knowledge it doesn't add any options in this area. Thanks for any suggestions. -- Kaleb Pederson Blog - http://kalebpederson.com Twitter - http://twitter.com/kalebpederson List: http://www.antlr.org/mailman/listinfo/antlr-interest Uns

[il-antlr-interest: 28569] Re: [antlr-interest] Another JUnit testing framework

2010-04-22 Thread Kaleb Pederson
Alan, Overall your code looks very clean. Do you have any samples that demonstrate usage? (I looked around but your README and docs directories are basically empty :). Thanks. -- Kaleb Pederson Blog - http://kalebpederson.com Twitter - http://twitter.com/kalebpederson On Thursday 22 April

[il-antlr-interest: 28359] [antlr-interest] TreeRewrite bug or misuse?

2010-03-24 Thread Kaleb Pederson
CH_ARG $lhs+)) ; The above yields the following tree: (AST_MATCH (AST_MATCH_ARG "five") (AST_MATCH_ARG "six")) But I expected the following: (AST_MATCH (AST_MATCH_ARG "one" "three" "five") (AST_MATCH_ARG "two" "four&quo

[il-antlr-interest: 28327] Re: [antlr-interest] sematic analysis ?

2010-03-19 Thread Kaleb Pederson
On Fri, Mar 19, 2010 at 10:37 AM, Kaleb Pederson wrote: > Venkat, > > One way to do what you've mentioned is to create a tree walker which > walks the AST.  Then, within the AST, you'll need to do a couple of > things. > > First, you need to populate a symbol

[il-antlr-interest: 28325] Re: [antlr-interest] sematic analysis ?

2010-03-19 Thread Kaleb Pederson
ype checking happens in a single pass of a tree walker, so it's nicely componentized. I hope that helps. -- Kaleb Pederson http://kalebpederson.com http://twitter.com/kalebpederson On Fri, Mar 19, 2010 at 9:46 AM, venkat medhaj wrote: > Hi, > > I am kinda new to antlr and I wonder

[il-antlr-interest: 28290] Re: [antlr-interest] Using the results

2010-03-16 Thread Kaleb Pederson
cifics it would be helpful if you could provide more concrete details. HTH. -- Kaleb Pederson Blog - http://kalebpederson.com Twitter - http://twitter.com/kalebpederson List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your

[il-antlr-interest: 27636] Re: [antlr-interest] gunit problem

2010-01-22 Thread Kaleb Pederson
e for it somewhere and was able to debug another problem, so hopefully you can do the same. -- Kaleb Pederson Blog - http://kalebpederson.com Twitter - http://twitter.com/kalebpederson List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/an

[il-antlr-interest: 27434] Re: [antlr-interest] Issue with antlrworks 1.3.1 and JDK 1.6 update 17?

2010-01-06 Thread Kaleb Pederson
en writing the application using Java. > Any advice for debugging this further? I also tried removing the AW preferences and disabling focus-stealing prevention in my window manager, but neither of those helped either. Looks like a couple of real bugs to me. -- Kaleb Pederson Blog - http://kale

[il-antlr-interest: 27390] [antlr-interest] Consequence of Bug ANTLR-413 in GUnit

2009-12-31 Thread Kaleb Pederson
being thrown in GUnit's tree walking tests. Since the fix is: -it = new TreeIterator(root); +it = new TreeIterator(adaptor, root); in CommonTreeNodeStream.java... I hope it can be fixed for the next release :). Thanks. -- Kaleb Pederson Blog - http://kalebpederson.com Twitter

[il-antlr-interest: 26838] Re: [antlr-interest] Equivalent of TOKEN{x,y}

2009-11-12 Thread Kaleb Pederson
eve you're right, that will make things messy and more intertwined than need be. Thanks. -- Kaleb Pederson Blog - http://kalebpederson.com Twitter - http://twitter.com/kalebpederson List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/optio

[il-antlr-interest: 26835] Re: [antlr-interest] Referencing Template(s) in a grammar.

2009-11-12 Thread Kaleb Pederson
available. I was going to say that you need to use scopes to make that available later in your code, but it looks like you're already using scopes. Can you elaborate a bit on what I may have missed that makes scopes insufficient for your needs? Thanks. -- Kaleb Pederson Blog - http