[
https://issues.apache.org/jira/browse/PIG-1931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13013601#comment-13013601
]
Xuefu Zhang commented on PIG-1931:
----------------------------------
Another observation: current the file name of the main script is set only on
AST, so source file name will be there for errors reported by AST visitors or
plan visitors. However, for syntax errors, which happen before AST tree is
built, the file name is absent, which should be also part of error reporting.
> 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
>
>
> 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