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 година
mtardy
033294715f
Update README and Dockerfile
пре 4 година