-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify ebnf grammar definition [skip ci]
- Loading branch information
1 parent
9495bb9
commit 51aaf38
Showing
5 changed files
with
79 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
annotation ::= '@'(namespace delimiter)*(identifier) ((type |) value |) | ||
annotation ::= '@'(namespace|)(identifier) ((type |) value |) | ||
identifier ::= '[a-z] [A-Z] [0-9] _ -' | ||
namespace ::= ('\' |)('[a-z] [A-Z] _ -'(delimiter))* | ||
namespace ::= (delimiter|)(identifier(delimiter))+ | ||
delimiter ::= '.' | '\' | ||
type ::= 'json' | 'string' | 'integer' | 'float' | '->' | ||
value ::= 'any unicode characters including \n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.