[antlr-interest] looking for "from foo import bar" examples in v2

Martin d'Anjou martin.danjou at neterion.com
Thu Aug 20 09:49:22 PDT 2009


Hello,

I am trying to find examples in antlr 2.7.7 of how to parse a syntax 
resembling the pyhton "from foo import bar1,bar2, ..." syntax. I have a 
working "import all" syntax, but a from-import is different because it is 
selective in what it imports. Is there any antlr v2 example or 
documentation on how to build this kind of selectiveness in an antlr tree 
builder (in the parser)?

Thanks,
Martin
PS: I cannot upgrade to antrl v3.


More information about the antlr-interest mailing list