Commit Graph

13 Commits

Author SHA1 Message Date
nocturn9x 3eeffabe7d Added the retNative enum for native functions to handle singletons properly, minor refactoring in the parser and the vm 2021-01-11 13:17:01 +01:00
nocturn9x 421f93598f Made keeping the testresults.txt file an optional flag in build.py 2021-01-11 10:35:21 +01:00
nocturn9x 20b9554362 Changed the way tests are run 2021-01-10 09:49:35 +01:00
nocturn9x 5f55ea53ac Minor improvements to build script and fixed a bug in the test suite where it would mark a test as completed before checking its output 2021-01-10 08:24:34 +01:00
nocturn9x 87fa674b15 Fixed a minor bug when calling natives with variadic arguments. Improved tests/runtests.nim and integrated the test suite in the build script. Added type(), round() and toInt() builtins to JAPL as well as the identity operator (revision needed). Got rid of an unused parameter inside frame.nim and cleaned up the VM's code by no longer using var parameters for the VM. Exception objects are now added to the VM's objects stack and variables used for debugging purposes are now only declared/modified when the debug flags are turned on 2021-01-09 18:03:47 +01:00
Productive2 9e4329981c Made exponentiation higher precedence than multiplication
Fixed shebang
2021-01-05 13:02:14 +01:00
nocturn9x cead00061b Added interning for compile-time strings, made gc:markAndSweep the default option in the build tool and fixed a bug with the compiler where it would not free its memory if it encountered an error 2020-12-28 10:09:52 +01:00
Productive2 7d059bd50e Fixes call frames, Op.SetLocal 2020-12-26 20:05:45 +01:00
nocturn9x 1e8b4632e9 Attempt to fix function calls by using ref seqs (failed, lol). Now all math operations on nan raise a TypeError 2020-12-26 17:01:03 +01:00
ポキ d008e6a6b2 Improvements to build
- removed redundant conditional, source: https://stackoverflow.com/questions/49917999/if-statements-made-redundant-by-else-statements
- replaced if with if expression, https://www.guru99.com/if-loop-python-conditional-structures.html#:~:text=What%20is%20Python%20If%20Statement,code%20for%20the%20else%20condition.
2020-11-04 07:46:47 +05:00
nocturn9x 47c5f4755e Removed test code 2020-11-02 21:46:33 +01:00
nocturn9x 6b6358d1c8 Updated build tool 2020-11-02 21:37:57 +01:00
nocturn9x b86206ee29 Improved build.py to include a custom-generated and configurable config.nim file 2020-11-02 20:06:52 +01:00