'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
;
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
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
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
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
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
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
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
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
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
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
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
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
13 matches
Mail list logo