about summary refs log tree commit diff
path: root/grammar.ebnf
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-05-18 10:48:30 +0200
committerBaitinq <[email protected]>2025-05-18 10:49:44 +0200
commit5f3f13a1b5a6cb4d69c7a958760d466be2b72f2a (patch)
treef943a2a244fc40e66cc74bfcda78618485cfbae5 /grammar.ebnf
parentTokenizer: Cleanup consuming logic (diff)
downloadpry-lang-5f3f13a1b5a6cb4d69c7a958760d466be2b72f2a.tar.gz
pry-lang-5f3f13a1b5a6cb4d69c7a958760d466be2b72f2a.tar.bz2
pry-lang-5f3f13a1b5a6cb4d69c7a958760d466be2b72f2a.zip
Feature: Add support for continue statement
Diffstat (limited to 'grammar.ebnf')
-rw-r--r--grammar.ebnf2
1 files changed, 1 insertions, 1 deletions
diff --git a/grammar.ebnf b/grammar.ebnf
index 70c0641..15de75f 100644
--- a/grammar.ebnf
+++ b/grammar.ebnf
@@ -1,6 +1,6 @@
 Program      ::= Statement+
 
-Statement    ::= (AssignmentStatement | ImportDeclaration | ExternDeclaration | FunctionCallStatement | IfStatement | WhileStatement | ReturnStatement | "break") SEMICOLON
+Statement    ::= (AssignmentStatement | ImportDeclaration | ExternDeclaration | FunctionCallStatement | IfStatement | WhileStatement | ReturnStatement | "break" | "continue") SEMICOLON
 
 AssignmentStatement ::= ("let")? ("*")? Expression EQUALS Expression