Skip to content

Commit

Permalink
completed the language and execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryangp committed Jan 1, 2024
1 parent e5a597c commit 8781b38
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 39 deletions.
Binary file modified __pycache__/original.cpython-311.pyc
Binary file not shown.
8 changes: 7 additions & 1 deletion grammar.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
statments : NEWLINE* expr (NEWLINE + expr)* NEWLINE*
statments : NEWLINE* statment (NEWLINE + statment)* NEWLINE*

statment : KEYWORD:return expr?
: KEYWORD:continue
: KEYWORD:break
: expr


expr:KEYWORD :pik IDENTIFIER EQ expr
:compr-expr ((KEYWORD:AND|KEQWORD:OR) comp-expr)
Expand Down
Loading

0 comments on commit 8781b38

Please sign in to comment.