Hi,

I was using CommonTreeNodeStream.size() and it worked in antlr-3.1.1.
After I switch to 3.1.3, I get "streams are of unknown size" runtime
exception.
Is there any changes in the CommonTreeNodeStream class?

here's how I create the CommonTreeNodeStream:

        ....
        this.ast = (CommonTree) r.getTree();
        System.out.println(ast.toStringTree());  // <-- i can see the
tree string
        CommonTreeNodeStream nodes = new CommonTreeNodeStream(ast);
        System.out.println(nodes.size());  // <-- get exception here
        ....

Thanks in advance for any clue :)

Shaoting

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 you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to