Update syntax.md

This commit is contained in:
Lauchmelder 2021-11-27 23:02:34 +01:00 committed by GitHub
parent 0b637d6870
commit 253513f62b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,11 +16,6 @@ These variables are immutable. Objects do not exist in this script, in fact, var
Lines in brackets `[]` are "hidden". They are parsed, but will not be rendered.
## Primitives
* `Point point(x, y)` is a 2D point. It returns an element of type `Point`
* `Line line(Point from, Point to)` is a straight line. It returns an element of type `Line`.
* `Circle circle(Point center, radius)` draws a circle at `center` and `radius`
## Grammar
```
instruction ::= identifier({parameter, }) [-> identifer]