File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,9 @@ Multiple conditional evaluation
89
89
(booleanExpressionN resultExpresionN)
90
90
)
91
91
```
92
- Mathematical functions
92
+ ## Mathematical functions
93
93
94
- Arithmetical
94
+ ### Arithmetical
95
95
96
96
With N-arguments
97
97
``` lisp
@@ -109,7 +109,7 @@ Substraction: `-`
109
109
Product: ` * `
110
110
Division: ` / ` , ` exp1 / (exp2 * exp3 * ... * expN) `
111
111
112
- Logical
112
+ ### Logical
113
113
114
114
Greater: ` > ` , BINARY
115
115
Greater or Equal` >= ` , BINARY
@@ -125,19 +125,25 @@ Strings
125
125
126
126
Concatenation: ` cat `
127
127
128
- JavaScript related functions
128
+ ## JavaScript related functions
129
129
130
- JS Math
130
+ ### JS Math
131
131
132
132
Math object: ` Math `
133
+ ``` lisp
134
+ (Math x a1 a2 ... an) // Math[x](a1, a2, ..., an)
135
+ (Math .log a1 a2 ... an) // Math.log(a1, a2, ..., an)
136
+ ```
137
+
138
+ ## Data Structures (abstractions)
133
139
134
140
Key-Value structure:
135
141
``` lisp
136
142
(kv
137
- key1NameOrExp value1Expression
138
- key2NameOrExp value2Expression
139
- ...
140
- keyNNameOrExp valueNExpression
143
+ key1NameOrExp value1Expression
144
+ key2NameOrExp value2Expression
145
+ ...
146
+ keyNNameOrExp valueNExpression
141
147
)
142
148
```
143
149
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lisp-js-compiler" ,
3
- "version" : " 0.0.5 " ,
3
+ "version" : " 0.0.6 " ,
4
4
"description" : " JavaScript compiler / interpreter for Lisp language" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments