diff options
| author | Baitinq <[email protected]> | 2025-05-12 23:45:57 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-05-12 23:45:57 +0200 |
| commit | a1a1564a44a56fa9308c440e2e72f62af689e2d2 (patch) | |
| tree | a228a968c7fc21a8398e8f7ead0596eb423f999d /grammar.ebnf | |
| parent | boostrap: tokenizer: clean (diff) | |
| download | pry-lang-a1a1564a44a56fa9308c440e2e72f62af689e2d2.tar.gz pry-lang-a1a1564a44a56fa9308c440e2e72f62af689e2d2.tar.bz2 pry-lang-a1a1564a44a56fa9308c440e2e72f62af689e2d2.zip | |
Feature: Add support for break statement
Diffstat (limited to 'grammar.ebnf')
| -rw-r--r-- | grammar.ebnf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grammar.ebnf b/grammar.ebnf index a855e57..ec61e90 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -1,6 +1,6 @@ Program ::= Statement+ -Statement ::= (AssignmentStatement | ImportDeclaration | ExternDeclaration | FunctionCallStatement | IfStatement | WhileStatement | ReturnStatement) SEMICOLON +Statement ::= (AssignmentStatement | ImportDeclaration | ExternDeclaration | FunctionCallStatement | IfStatement | WhileStatement | ReturnStatement | "break") SEMICOLON AssignmentStatement ::= ("let")? ("*")? Expression EQUALS Expression |