LOL! Ya know what? I had implemented this *exact same* tranform back when I was writing a 4GL compiler at work.
This one's easy though: ident '('[METHOD_CALL] expr => expr '.' ident '('[METHOD_CALL] Especially since parens are not use for array subscripts, like they were in the 4GL. :-P I'll see if I can get ANTLR to do it directly in the meta-language (elegant) or I can always manually manipulate the AST in a semantic action. --- Gavin King <[EMAIL PROTECTED]> wrote: > Another thought. > > Would it be nice to be able to express: > > upper(customer.name) > > as the more object-oriented: > > customer.name.upper() > > > How hard would this be to implement in the parser? > Especially, how hard > would it be to make the parser spit out the exact > same AST in either case? > > -- > Gavin King > JBoss Group > +61 410534454 > http://hibernate.org > > > > ------------------------------------------------------- > This SF. Net email is sponsored by: GoToMyPC > GoToMyPC is the fast, easy and secure way to access > your computer from > any Web browser or wireless device. Click here to > Try it Free! > https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl > _______________________________________________ > hibernate-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hibernate-devel __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel