[ https://issues.apache.org/jira/browse/PIG-1931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Ding updated PIG-1931: ------------------------------ Attachment: PIG-1931_3.patch Patch 3 adds source name to the lexer and parser so that lexer/parser error messages contain the script file name. > Integrate Macro Expansion with New Parser > ----------------------------------------- > > Key: PIG-1931 > URL: https://issues.apache.org/jira/browse/PIG-1931 > Project: Pig > Issue Type: Bug > Components: impl > Affects Versions: 0.9.0 > Reporter: Richard Ding > Assignee: Richard Ding > Fix For: 0.9.0 > > Attachments: PIG-1931_1.patch, PIG-1931_2.patch, PIG-1931_3.patch > > > Currently Macro expansion is implemented as a preprocessor (PIG-1793) so that > it can work with the old parser. Now the new parser replaced old parser in > trunk and we can integrate macro expansion into the new parser. This has many > advantages such as better error reporting, less code and making Macro part of > Pig Latin. > To aid debugging, Pig command line option -r (dryrun) will produce a script > with expanded macros (in addition to the script with substituted parameters). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira