[
https://issues.apache.org/jira/browse/FELIX-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Derek Baum resolved FELIX-1500.
-------------------------------
Resolution: Fixed
This fix changes the shell 'program' grammar from:
program ::= statements ( | statements) *
statement ::= statement ( ; statement) *
statement ::= (WS* token) +
to this:
program ::= pipeline ( ; pipeline) *
pipeline ::= statement ( | statement) *
> [gogo] Change | and ; priority
> ------------------------------
>
> Key: FELIX-1500
> URL: https://issues.apache.org/jira/browse/FELIX-1500
> Project: Felix
> Issue Type: Improvement
> Components: Gogo
> Affects Versions: gogo-0.2.0
> Reporter: Guillaume Nodet
> Assignee: Derek Baum
> Fix For: gogo-0.4.0
>
>
> The main driver would be to support scripts files, not only lines.
> The parser needs to be aware of new lines for readability, as complex
> closures can't be inlined easily.
> This leads to have the parser replace (semantically, i mean) newlines by
> either:
> ( line ) ;
> or
> line ;
> The first one would be needed to keep the | priority over ; while the second
> one would be appropriate if we change the priority.
> It seems more intuitive to me that newlines don't change the priority and are
> just considered as a separator of commands.
> Additionally, this would be also closer to unix shells.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.