Commit Graph

15 Commits

Author SHA1 Message Date
nocturn9x 22d6408236 Moved to custom hashmap 2021-03-18 15:09:36 +01:00
Productive2 3fbf4300dc now really fixed indentation. sorry im half asleep. 2021-02-15 00:11:37 +01:00
Productive2 328dfacef1 fix indentation 2021-02-15 00:09:47 +01:00
Productive2 9a70d646ef Fix stdlib bug (segfault at readLine()) 2021-02-15 00:04:49 +01:00
Productive2 0a7db3ec0c Added printErr, tests to test the test suite 2021-02-09 16:59:34 +01:00
nocturn9x 9ffff11bf9 Added an optional prompt parameter to readline and renamed it to readLine. Added string support in toInt 2021-02-04 12:03:10 +01:00
Productive2 76b92e85a7 new test notation (uses //stdout:, //stderr:) now
wip //stdin:
non-behaving tests get killed after a while now
added // exit and improved // clear repl commands
2021-01-30 18:42:04 +01:00
nocturn9x f8ac8d08cb Removed short version of constants for benchmarking purposes and refactored the type system's behavior to return more consistent values 2021-01-16 11:47:01 +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 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 410a557ce5 Fixed a bug with the compiler where it would crash with incomplete assignment expressions 2021-01-11 08:06:55 +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 de65ca3374 Runtests done
Removed trailing space from prints
Started arithmetic testing
2021-01-05 12:52:41 +01:00
nocturn9x 875440ba8c Made print a variadic function and added clock() for benchmarking 2021-01-05 09:35:18 +01:00
Productive2 586522ce44 Added Natives
Added stdlib.nim
Added print
2021-01-05 00:32:17 +01:00