Ian Piumarta
148ee3f43e
add getFloat()
2 年前
mtardy
a1bc3ba26b
Add default error case in switch(getType()) to remove warnings of enumeration values not handled in switch
4 年前
mtardy
f6388c1474
Fix indentation issues
4 年前
mtardy
6e9df129dd
Add floats ( #22 )
* Add floating point numbers
* Add test-float.txt
* Remove unused ast from applyOperator parameters
* Add -lm to libs for non-Darwin fmodl
* Allow negative integer constants in the syntax
* Remove double case on Function in clone
Co-authored-by: Ian Piumarta <piumarta@nas.local>
Co-authored-by: Ian Piumarta <piumarta@gmail.com>
4 年前
mtardy
d45e9546ea
Merge pull request #24 from mtardy/unquote-splicing
add allKeys, allValues; add @@ syntax to unquote and splice an array …
4 年前
mtardy
06d0204ad1
Add test-syntax.txt
4 年前
mtardy
772ebd2b8b
Merge with master
4 年前
mtardy
9657e2778b
Merge pull request #25 from mtardy/argument-splicing
add argument splicing (aka unpacking, aka splatting); add test-splice…
4 年前
mtardy
cbc3e6ec89
Add factories ( #21 )
* Add Map factory and Integer draft
* Fix Integer factory
* Add map_isArray()
* Fix String factory
* Add Symbol factory
* Fix Map factory
* Add Array factory
* Add Function and Syntax factories
* Fix _checkType
* Add runtimeError for bad arguments in factory functions
* Change makeMapCapacity with malloc instead of realloc
4 年前
Ian Piumarta
bc623143ca
add argument splicing (aka unpacking, aka splatting); add test-splice.txt to test argument splicing
4 年前
Ian Piumarta
f070bc84c4
add allKeys, allValues; add @@ syntax to unquote and splice an array into a list of arguments or parameters
4 年前
mtardy
d4ed747cd4
Merge pull request #23 from mtardy/slice-fix
Correctly add slice '[n:m]' for strings and array-like maps
4 年前
mtardy
9541a96279
Correctly add slice '[n:m]' for strings and array-like maps
4 年前
Ian Piumarta
5e7538a2f7
Use safe comparisons in oopcmp
4 年前
Ian Piumarta
0156ca00f7
Allocate true object sizes instead of sizeof(union object)
4 年前
Ian Piumarta
21bc3f547d
runtimeError accepts varargs; undefined members return null, undefined variables cause error
4 年前
mtardy
90cd66de53
Add test-switch.txt
4 年前
mtardy
4aadad65c9
Remove fold and use eval instead
4 年前
mtardy
cc069fcc92
Fix 'control may reach end of non-void function' warning
4 年前
mtardy
084c45add3
Merge pull request #19 from mtardy/portable-makefile
Use implicit rules to build binary; add compiler/linker search locati…
4 年前
Ian Piumarta
987d889c19
Use implicit rules to build binary; add compiler/linker search locations for Darwin MacPorts
4 年前
piumarta
11dd4554a0
Merge pull request #18 from mtardy/type-switch
Add TYPESIG and CASE macros to switch between types combinations more elegantly
4 年前
mtardy
530e71426b
Move TYPESIG and CASE macros and undef them
4 年前
mtardy
d4af735207
Add TYPESIG and CASE macros to switch between types combinations more elegantly
4 年前
mtardy
5b5a8c77c6
Add MIT License
4 年前
mtardy
44e563dc68
Merge pull request #17 from mtardy/memory-optimisation
Memory optimisation
4 年前
Ian Piumarta
993297c262
Add -g flag to turn on stats; make jb recs be allocated LIFO on C stack; reuse scopes whenever possible
4 年前
Ian Piumarta
1cee17ea17
Add flags to Map with MAP_ENCLOSED bit; add pool pointer to Map for scope free list
4 年前
Ian Piumarta
b449343280
Add millis() to convert microseconds() into milliseconds (duh;-)
4 年前
Ian Piumarta
3886b9c623
Print the amount of memory allocated using k/M/G bytes
4 年前
Ian Piumarta
ce8ac5975f
Grow maps exponentially instead of linearly
4 年前
Ian Piumarta
6a297558bc
Add String() factory; instrument memory usage
4 年前
Ian Piumarta
fb35013179
Add the usual two micro-bencharks (nfibs and prime sieve)
4 年前
mtardy
cfb4f164ed
Merge pull request #16 from mtardy/fixes3
Pr. Piumarta various fixes
4 年前
mtardy
73dcfca222
Merge pull request #15 from mtardy/slice
Add slice '[n:m]' for strings and array-like maps
4 年前
mtardy
f42be7d411
Fix relations to compare more than just integers, fix semicolons to end
an expression, add for in structure, refactor apply (merge with invoke),
transform millis to microseconds, mix boxed/unboxed integers
4 年前
mtardy
1ed52120bb
Add slice '[n:m]' for strings and array-like maps
4 年前
mtardy
2837e6fede
Fix runtime error backtrace printing for function call
4 年前
mtardy
07d1456630
Conflict resolution
4 年前
mtardy
22bf3b5b1b
Add backtrace ( #14 )
4 年前
mtardy
2c057a58f9
Fix circular printing, comparison and pass scope to primitives
4 年前
mtardy
7ca8267244
Add printOn function and fix readEvalPrint with imports
4 年前
mtardy
1a82135eab
Fix try catch mechanism and runtimeError with mrAST
4 年前
mtardy
b424810127
Add try catch mechanism ( #13 )
* Add try, catch, finally in the syntax
* Add throw, try, catch, finally mechanism in the interpreter
4 年前
mtardy
b51fe9f606
Add nice format for runtime errors ( #12 )
* Enhance runtime errors with file and line
* update test files
4 年前
mtardy
bf224030cb
Update test files
4 年前
mtardy
d9364885fe
Add Throw mechanism and hierarchy in verbose mode
4 年前
mtardy
7f2decac9a
Update test files
4 年前
mtardy
33b5a12c3d
Add millis primitive
4 年前
mtardy
37a048a8e7
Fix map_zip to fill with either key numbers or null values
4 年前