Commit Graph

36 Commits

Author SHA1 Message Date
Nocturn9x e9f9703b83 Fixed test building under windows (again) 2022-04-03 22:21:03 +02:00
Nocturn9x 9a97d78f43 Fixed test building under windows 2022-04-03 22:17:13 +02:00
nocturn9x 36468adaba Fixed default timeout value 2021-04-18 13:49:19 +02:00
nocturn9x a767e44daa Added --timeout option in build.py 2021-04-18 12:04:24 +02:00
nocturn9x 22d6408236 Moved to custom hashmap 2021-03-18 15:09:36 +01:00
Productive2 17913f1d7c Merge remote-tracking branch 'upstream/master' 2021-02-28 14:11:29 +01:00
Productive2 88b4fa0d3a New tests
added new tests,
modified old tests to have all non-japl code commented, so they can be
also ran using jpl
modified verbose to use the new -e flag instead of --stdout, so it
doesn't spam
2021-02-28 14:10:17 +01:00
nocturn9x 15e507fb4b Fixed bug in the build script 2021-02-26 15:33:51 +01:00
nocturn9x 8d468e7bed Fixed build script (oof) 2021-02-26 14:04:38 +01:00
nocturn9x de470a3843 Test for github actions 2021-02-26 14:01:12 +01:00
nocturn9x 5d8c31fb07 Fixed identity operator bug and added isnot for consistency. Changed behavior for gt/lt comparisons to account for more complex expressions 2021-02-26 12:27:10 +01:00
nocturn9x b67ec65a33 Minor fixes and cleanups 2021-02-09 18:49:34 +01:00
nocturn9x bc2c907448 Minor fix to build script help message 2021-02-08 16:40:21 +01:00
nocturn9x 3830b3f30c moved logging message down to if __name__ == '__main__': block 2021-02-04 07:57:20 +01:00
nocturn9x 35cce3e2ea Added support for build profiles 2021-02-03 20:12:00 +01:00
nocturn9x 95522cd3c7 Minor style fixes to jats and fixed debug logs clashing when debug_vm and debug_alloc are both enabled 2021-01-31 10:51:29 +01:00
nocturn9x f11d697f60 Updated build script 2021-01-30 13:47:05 +01:00
Productive2 29858360eb Update build.py to support jats 2021-01-29 18:42:45 +01:00
nocturn9x 787d34a8b5 Added WIP implementation of a generic hashmap that should behave better with JAPL's own memory manager 2021-01-27 15:51:15 +01:00
nocturn9x fb34faac2d Added a generic custom sequence implementation to replace nim's seq type and moved as much functionality as possible from nim to us in order to avoid GC clashes 2021-01-17 16:54:55 +01:00
nocturn9x 71f79d8174 Fixed various minor bugs, improved debugger output and consistency 2021-01-16 18:14:22 +01:00
nocturn9x 882efd28da Separated string interning tests in compile-time vs runtime, fixed a bug in the build script and added some comments to the VM as well as a toStr function to obtain objects representations as strings 2021-01-14 22:37:11 +01:00
nocturn9x 28abedf498 Added support for environment variables in build.py and refactored anonymous functions to use the lambda keyword 2021-01-14 16:03:31 +01:00
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