added functions to parser

This commit is contained in:
Lauchmelder 2021-11-28 02:20:12 +01:00
parent 79c54f3c0d
commit 01165d43fb
5 changed files with 91 additions and 11 deletions

9
examples/test.gs.disable Normal file
View file

@ -0,0 +1,9 @@
point(-1, 0) -> A
point(1, 0) -> B
line(A, B) -> AB
len(AB) -> length
circle(A, len(AB)) -> circleA
circle(B, len(AB)) -> circleB
intersection(circleA, circleB, 0) -> C
line(A, C)
line(B, C)