Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
somerandomdev49 authored Aug 7, 2020
1 parent 0f21766 commit e0d2c98
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ print(x);
```

# Syntax:
* print statement: `print <expression>;`
* variable declaration: `var <name>;`
* if statement: `if <expression> <statement> [ else <statement> ]`
* while statement: `while <expression> <statement>`
* block statement: `{ <...statements> }`
* set expression: `<name> = <expression>`
* print statement: `'print' expression ';'`
* variable declaration: `'var' name ';'`
* if statement: `'if' expression statement [ 'else' statement ]`
* while statement: `'while' expression statement`
* block statement: `'{' statement... '}'`
* set expression: `name '=' expression`
* expression: `expression postfix`
* postfix: `[ '(' expression... ')' ]...`

# Bytecode:
| Name | Description |
Expand Down

0 comments on commit e0d2c98

Please sign in to comment.