[antlr-interest] ANTLR 3.1 incompatible change for tree parser labels?
Terence Parr
parrt at cs.usfca.edu
Mon Aug 25 14:15:27 PDT 2008
That is a bug i introduced :( I have fixed it. Last daily should
have it. will go in 3.1.1
Ter
On Aug 25, 2008, at 1:43 PM, FranklinChen at cmu.edu wrote:
> I am upgrading from ANTLR 3.0 to 3.1, and code that I used to have in
> a tree parser no longer works, because of a change to the return type
> of labels:
>
> anyWordsAndMedia
> :
> list+=anyWord+
> (
> list+=url
> list+=anyWord*
> )*
> ->
> anyWordsAndMedia(list={$list})
> ;
>
> results in
>
> List list_list=null;
> ChatWalker.anyWord_return list = null;
>
> so that the assignment to url fails with
>
> ===
> incompatible types
> found : org.talkbank.chat.antlr.ChatWalker.url_return
> required: org.talkbank.chat.antlr.ChatWalker.anyWord_return
> ===
>
> What is the correct way for me to do what I'd been doing up till now?
>
> --
> Franklin
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
More information about the antlr-interest
mailing list