diff --git a/doc/syntax.md b/doc/syntax.md index ad1ba0b..2364ccf 100644 --- a/doc/syntax.md +++ b/doc/syntax.md @@ -45,15 +45,21 @@ functions function functions function - ws "" ws "" arguments "" ws "" instructions "" ws "" ws + ws "" arguments body "" ws arguments + ws "" arguments "" ws + +_arguments "" - argument arguments + argument _arguments argument ws "" ws +body + ws "" instructions "" ws + instructions ws "" ws instruction instructions @@ -137,15 +143,24 @@ lower "" instruction instruction "" call - "" ws "" instructions "" ws "" - "" instruction "" instructions "" ws "" + "" call_arguments "" + "" instruction call_arguments ws "" + +call_arguments + ws "" instructions "" ws return "" instruction "" if - "" ws instruction ws "" instructions "" ws "" - "" ws instruction ws "" instructions "" ws "" instructions "" ws "" + "" instruction then "" + "" instruction then else "" + +then + ws "" instructions "" ws + +else + ws "" instructions "" ws each "" instruction do ""