Skip to content

Commit

Permalink
Allow an empty document
Browse files Browse the repository at this point in the history
  • Loading branch information
lszeremeta committed Jun 22, 2020
1 parent 36e0b99 commit 23e18c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ <h2>YARS-PG Grammar</h2>
<td><code>yarspg</code></td>
<td>::=</td>
<td>
statement+
statement*
</td>
</tr>
<tr id='grammar-production-statement'>
Expand Down
2 changes: 1 addition & 1 deletion other-notations/YARSpg.ebnf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
*/
yarspg ::= statement+
yarspg ::= statement*
statement
::= node
| edge
Expand Down
2 changes: 1 addition & 1 deletion yarspg/YARSpg.g4
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
grammar YARSpg;

yarspg
: statement+ EOF
: statement* EOF
;

statement
Expand Down

0 comments on commit 23e18c8

Please sign in to comment.