Created
December 1, 2019 19:45
-
-
Save Ch3shireDev/8debf6274cb2d2905cb46660e85417cb to your computer and use it in GitHub Desktop.
grammar.ebnf
This file contains hidden or 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
| @@grammar::Something | |
| start = expression $ ; | |
| expression = term [or ~ expression]; | |
| term = factor [and ~ term]; | |
| factor | |
| = | |
| | 'ciasteczko jest dobre' | |
| | '(' ~ @:expression ')' | |
| | condition | |
| ; | |
| condition = ?/[\w]+/?; | |
| and = 'and'; | |
| or = 'or'; | |
| operator = and|or; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment