Asm statements implemented

This commit is contained in:
2023-08-15 01:30:35 -05:00
parent 9936e44544
commit a6b3519f48
4 changed files with 74 additions and 10 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ arglist = { "(" ~ (expr ~ ("," ~ expr)*)? ~ ")" }
statement = { asm | ((return_stmt | var_decl | assignment | expr) ~ ";") | conditional | while_loop | repeat_loop }
asm = { "asm" ~ asm_args? ~ "{" ~ asm_body ~ "}" }
asm_args = { "(" ~ expr ~ ("," ~ expr)* ~ ")" }
asm_args = _{ "(" ~ expr ~ ("," ~ expr)* ~ ")" }
asm_body = { (!"}" ~ ANY)* }
block = { "{" ~ statement* ~ "}" }