From 745a7c73d81e634501a887c1fbcc68d39f71fdd9 Mon Sep 17 00:00:00 2001 From: Sander Hautvast Date: Fri, 12 Feb 2021 17:52:21 +0100 Subject: [PATCH] updated readme --- README.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 2c09b9c..2fe44f3 100644 --- a/README.md +++ b/README.md @@ -2,19 +2,21 @@ * is a Matrix * and a repl: Read–Eval–Print Loop, where Print is doing operations on vectors and matrices in a graphic environment - + The repl has the following syntax (It's work in progress, new capabilities will be added) -* simple arithmetic expressions: - ** add, subtract, divide, multiply - ** variable declaration eg: a= ... - ** vector(x0,y0,x,y) adds a vector - ** remove(x) removes bindings (when it's an object (eg vector), removes it from the matrix) - ** method calls: - *** a = vector(0,0,12,1) - *** a.type() - *** > vector - ** property lookup - *** a.x - *** 12 +* arithmetic expressions: + * add, subtract, divide, multiply +* variable declaration eg: a= ... +* vector(1,2,3,4) adds a vector + * > > vector@0{x0:1, y0: 2, x:3, y:4} +* remove(x) removes bindings (when it's an object (eg vector), removes it from the matrix) +* remove(@x) removes an object using it's assigned index +* method calls: + * a = vector(0,0,12,1) + * a.type() + * > > vector +* property lookup + * a.x + * > 12 \ No newline at end of file