Skip to content

Commit

Permalink
Merge pull request #545 from xml-project/fix-examples
Browse files Browse the repository at this point in the history
Fixed examples
  • Loading branch information
xml-project authored Nov 28, 2023
2 parents c3993af + 08d97f9 commit 97efc6d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions step-ixml/src/main/examples/ambig-1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<p:ixml>
<p:with-input port="grammar">
<p:inline>
<p:inline content-type="text/plain">
letters: X, (A; B; C) .
A: digits .
B: digits .
Expand All @@ -14,7 +14,7 @@ digits: ["0"-"9"]+ .
</p:inline>
</p:with-input>
<p:with-input port="source">
<p:inline>a123</p:inline>
<p:inline content-type="text/plain">a123</p:inline>
</p:with-input>
</p:ixml>

Expand Down
4 changes: 2 additions & 2 deletions step-ixml/src/main/examples/ambig-2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<p:ixml parameters="map{'ex:select':2}">
<p:with-input port="grammar">
<p:inline>
<p:inline content-type="text/plain">
letters: X, (A; B; C) .
A: digits .
B: digits .
Expand All @@ -15,7 +15,7 @@ digits: ["0"-"9"]+ .
</p:inline>
</p:with-input>
<p:with-input port="source">
<p:inline>a123</p:inline>
<p:inline content-type="text/plain">a123</p:inline>
</p:with-input>
</p:ixml>

Expand Down
4 changes: 2 additions & 2 deletions step-ixml/src/main/examples/ambig-3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<p:ixml parameters="map{'ex:select':'all'}">
<p:with-input port="grammar">
<p:inline>
<p:inline content-type="text/plain">
letters: X, (A; B; C) .
A: digits .
B: digits .
Expand All @@ -15,7 +15,7 @@ digits: ["0"-"9"]+ .
</p:inline>
</p:with-input>
<p:with-input port="source">
<p:inline>a123</p:inline>
<p:inline content-type="text/plain">a123</p:inline>
</p:with-input>
</p:ixml>

Expand Down
3 changes: 2 additions & 1 deletion step-ixml/src/main/examples/dates-1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
<p:output port="result"/>

<p:ixml>
<p:with-input port="grammar"><p:empty /></p:with-input>
<p:with-input port="source">
<p:inline>
<p:inline content-type="text/plain">
date: s?, day, s, month, (s, year)? .
-s: -" "+ .
day: digit, digit? .
Expand Down
4 changes: 2 additions & 2 deletions step-ixml/src/main/examples/dates-2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<p:ixml>
<p:with-input port="grammar">
<p:inline>
<p:inline content-type="text/plain">
date: s?, day, s, month, (s, year)? .
-s: -" "+ .
day: digit, digit? .
Expand All @@ -16,7 +16,7 @@ year: (digit, digit)?, digit, digit .
</p:inline>
</p:with-input>
<p:with-input port="source">
<p:inline>31 December 2021</p:inline>
<p:inline content-type="text/plain">31 December 2021</p:inline>
</p:with-input>
</p:ixml>

Expand Down
4 changes: 2 additions & 2 deletions step-ixml/src/main/examples/dates-3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<p:ixml fail-on-error="false">
<p:with-input port="grammar">
<p:inline>
<p:inline content-type="text/plain">
date: s?, day, s, month, (s, year)? .
-s: -" "+ .
day: digit, digit? .
Expand All @@ -16,7 +16,7 @@ year: (digit, digit)?, digit, digit .
</p:inline>
</p:with-input>
<p:with-input port="source">
<p:inline>31 Mumble 2021</p:inline>
<p:inline content-type="text/plain">31 Mumble 2021</p:inline>
</p:with-input>
</p:ixml>

Expand Down

0 comments on commit 97efc6d

Please sign in to comment.