updated readme
This commit is contained in:
parent
4076440ff3
commit
745a7c73d8
1 changed files with 15 additions and 13 deletions
28
README.md
28
README.md
|
|
@ -2,19 +2,21 @@
|
||||||
* is a Matrix
|
* is a Matrix
|
||||||
* and a repl: Read–Eval–Print Loop, where Print is doing operations on vectors and matrices in a graphic environment
|
* and a repl: Read–Eval–Print Loop, where Print is doing operations on vectors and matrices in a graphic environment
|
||||||
|
|
||||||
<img src="screenshot1.png"></img>
|
<img src="screenshot-1.png"></img>
|
||||||
|
|
||||||
The repl has the following syntax (It's work in progress, new capabilities will be added)
|
The repl has the following syntax (It's work in progress, new capabilities will be added)
|
||||||
* simple arithmetic expressions:
|
* arithmetic expressions:
|
||||||
** add, subtract, divide, multiply
|
* add, subtract, divide, multiply
|
||||||
** variable declaration eg: a= ...
|
* variable declaration eg: a= ...
|
||||||
** vector(x0,y0,x,y) adds a vector
|
* vector(1,2,3,4) adds a vector
|
||||||
** remove(x) removes bindings (when it's an object (eg vector), removes it from the matrix)
|
* > > vector@0{x0:1, y0: 2, x:3, y:4}
|
||||||
** method calls:
|
* remove(x) removes bindings (when it's an object (eg vector), removes it from the matrix)
|
||||||
*** a = vector(0,0,12,1)
|
* remove(@x) removes an object using it's assigned index
|
||||||
*** a.type()
|
* method calls:
|
||||||
*** > vector
|
* a = vector(0,0,12,1)
|
||||||
** property lookup
|
* a.type()
|
||||||
*** a.x
|
* > > vector
|
||||||
*** 12
|
* property lookup
|
||||||
|
* a.x
|
||||||
|
* > 12
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue