Commit Graph

73 Commits

Author SHA1 Message Date
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
Productive2 02bd218c14 Two new tests 2021-01-14 20:48:37 +00:00
nocturn9x 56938897d6 Fixed precedence of is added beta support for the as operator for casting 2021-01-12 12:10:15 +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
Productive2 390087dab5 Testing now supports testing for JAPL exceptions... kinda 2021-01-10 20:33:29 +01:00
Productive2 f6d7d82d62 gitignore bump,
working on maketest
2021-01-10 20:03:47 +01:00
Productive2 2f2180b6e7 Maketest prototype 2021-01-10 19:59:05 +01:00
Productive2 338a3b0535 New tests 2021-01-10 19:44:00 +01:00
Productive2 30fb134a74 More tests 2021-01-10 19:32:28 +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 c360f27d8e New working test: problem2
New not working test: problem4
2021-01-05 21:12:32 +01:00
Productive2 5c8b0cb494 Added euler's problem 1 to tests
Added recursion to running tests
2021-01-05 20:51:05 +01:00
Productive2 2d2ef61fa1 Added bitwise operator tests
Fixed bitwise not crashing compiler when used as a binary op
2021-01-05 20:32:50 +01:00
Productive2 ded5b91950 New fibonacci test 2021-01-05 20:22:55 +01:00
nocturn9x a58b8a9ef0 Removed unused/dead code + improved test suite code quality 2021-01-05 16:10:28 +01:00
Productive2 5aef0654dc Added a few basic tests 2021-01-05 14:02:04 +01:00
Productive2 de65ca3374 Runtests done
Removed trailing space from prints
Started arithmetic testing
2021-01-05 12:52:41 +01:00
Productive2 d4c07fdd51 Created a testing entry 2021-01-05 12:21:23 +01:00
Productive2 67d4b77c8f Beginning of a multibyte conversion helper 2021-01-04 23:49:30 +01:00
nocturn9x 09e543d786 Fixed typos, minor improvements, added isCallable for objects 2020-10-26 22:55:20 +01:00
nocturn9x 673b88f9de Huge refactoring for the type system and object structure, VM needs opcode refactoring 2020-10-25 12:45:03 +01:00