mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-13 16:53:24 +00:00
feat: runtime block value
This commit is contained in:
@ -55,7 +55,15 @@ class Parser:
|
||||
"body": body,
|
||||
}
|
||||
|
||||
def if_statement(self):
|
||||
self.eat('if')
|
||||
return {
|
||||
"type": 'IfStatement',
|
||||
}
|
||||
|
||||
def expression_statement(self):
|
||||
if self.token_type() == "if":
|
||||
return self.if_statement()
|
||||
if self.token_type() == "return":
|
||||
return self.return_statement()
|
||||
if self._is_literal():
|
||||
|
||||
Reference in New Issue
Block a user