Skip to content

Commit

Permalink
Hacking on compact syntaxes
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Sep 14, 2012
1 parent e44b965 commit 0f978d3
Show file tree
Hide file tree
Showing 3 changed files with 8,599 additions and 8,371 deletions.
2 changes: 2 additions & 0 deletions resources/loaders/xpc1.ebnf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* EBNF for XProc Compact Syntax (flavor 1), process with http://www.bottlecaps.de/rex/ */
document ::= xpcMarker namespace* ( declareStep | pipeline | library ) EOF

xpcMarker ::= 'xproc' version
Expand Down
6 changes: 5 additions & 1 deletion resources/loaders/xpc2.ebnf
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* EBNF for XProc Compact Syntax (flavor 2), process with http://www.bottlecaps.de/rex/ */
document ::= namespace* ( declareStep | pipeline | library ) EOF

namespace ::= ('namespace' prefix quotedstr) | ('default' 'namespace' quotedstr)
Expand All @@ -11,9 +13,11 @@ inports ::= '(' (input | option)? (',' (input | option))* ')'
outports ::= '(' output? (',' output)* ')'

input ::= ('primary') | ('primary' NCName ('sequence'|'item')?)
output ::= ('primary') | ('primary' NCName ('sequence'|'item')?)
output ::= ('primary') | ('primary' NCName ('sequence'|'item')? serialization?)
option ::= '$' QName ( '=' quotedstr )?

serialization ::= 'serialized' 'with' '[' (NCName '=' quotedstr)? (',' NCName '=' quotedstr)* ']'

subpipeline ::= ( variable | forEachStep | viewportStep
| chooseStep | tryStep | groupStep | atomicStep )+

Expand Down
Loading

0 comments on commit 0f978d3

Please sign in to comment.