> I can't really conceive of a use of $ at the end of the line.
Okay, "SUBLIST comment_eol" is gone, and I did a few other cleanup tweaks. New
version posted in git repo; below is the updated version of i_expr.
-- David A. Wheeler
=====================================
i_expr returns [Object v]
: head
(GROUP_SPLICE hspace* /* Not initial; interpret as splice */
(options {greedy=true;} :
// To allow \\ EOL as line-continuation, instead do:
// comment_eol same i9=i_expr {append($head.v, $i9.v);}
comment_eol error
| empty {$v = monify($head.v);} )
| SUBLIST hspace* i_expr1=i_expr
{$v=list(monify($head.v), $i_expr1.v);}
| comment_eol // Normal case, handle child lines if any:
(indent body2=body {$v = append($head.v, $body2.v);}
| empty {$v = monify($head.v);} /* No child lines */ ))
| (GROUP_SPLICE | scomment) hspace* /* Initial; Interpet as group */
(i_expr2=i_expr {$v = $i_expr2.v;} /* Ignore GROUP/scomment if initial */
| comment_eol
(indent body3=body {$v = $body3.v;} /* Normal use for GROUP */
| same i_expr3=i_expr {$v = $i_expr3.v;} /* Plausible separator */
| dedent error ))
| SUBLIST hspace* i_expr4=i_expr /* "$" as first expression on line */
{$v=list($i_expr4.v);}
| abbrevh hspace* i_expr5=i_expr
{$v=list($abbrevh.v, $i_expr5.v);}
;
------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
Readable-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/readable-discuss