Commit Graph

66 Commits

Author SHA1 Message Date
Bob Polis cd249bc9dd Added premake.make 2023-02-09 17:05:37 +01:00
Bob Polis 96dba49bf1 Fixed Makfile 2023-02-09 17:04:18 +01:00
bob b5b369b080 Changed domain to bobpolis.com 2022-08-19 09:02:02 +02:00
bob d600cfb7c5 Added compiler, as stand-in replacement for interpreter 2022-08-19 08:47:07 +02:00
bob 37ef764af7 Changed to compiler 2022-08-19 08:46:53 +02:00
Bob Polis db255d5cf2 Removed -pthread and -fno-strict-aliasing flags 2021-11-13 19:13:07 +01:00
Bob Polis 70ab7cb13b Changed url 2021-09-24 15:16:13 +02:00
Bob Polis 4aaeba9505 Added example 2021-09-24 14:55:19 +02:00
Bob Polis ba776a46eb Added substring test 2021-09-24 14:41:56 +02:00
Bob Polis 7eb6dcb5ef Removed const from main signature 2021-09-17 17:12:02 +02:00
Bob Polis f8ea704231 sources now taken from src directory 2020-11-08 13:26:54 +01:00
Bob Polis 5e9b21de30 moved sources into src directory 2020-11-08 13:26:27 +01:00
Bob Polis 08c45600d2 simplified data transfer: now directly appended to std::string 2020-11-04 14:06:01 +01:00
bob 9ef1ffc1c9 replaced Makefile with new one that makes build dir 2020-10-30 23:24:30 +01:00
Bob Polis 34aaee7509 now forbids copying and moving 2020-10-30 13:26:23 +01:00
Bob Polis 191aafa32b added destructor to requester for global cleanup 2020-10-30 11:11:30 +01:00
Bob Polis 567dbd584a added ftp upload to sync target 2020-09-28 16:05:59 +02:00
Bob Polis 6626600c6a added more files in between, expanded code significantly 2020-09-28 14:11:51 +02:00
Bob Polis 6ea02554cf changed test string 2020-09-28 14:10:36 +02:00
Bob Polis 827b183550 fixed bug where loop index would stay on value stack 2020-09-28 14:10:17 +02:00
Bob Polis ac18daa74c added some test scripts to use (and test) previously unused instructions 2020-09-27 17:57:13 +02:00
Bob Polis 2700122ca3 added coverage script to quickly get overview of instructions used in given krul scripts 2020-09-27 17:39:36 +02:00
Bob Polis 9c9319dd8a added find and replace script 2020-09-26 23:56:02 +02:00
Bob Polis e87b32d72a moved to_int into pop_int; compacted second pass by removing continues and changing to else-if 2020-09-22 15:03:00 +02:00
Bob Polis a20f002341 added convenience methods pop_int and pop_str, which saved a lot of code 2020-09-22 14:12:39 +02:00
Bob Polis 7a6f9df82f more readable syntax error construction 2020-09-22 13:41:23 +02:00
Bob Polis 0e735ce7a8 moved headers around a bit 2020-09-22 13:38:17 +02:00
Bob Polis d1c4106bba renamed _stack to _values, to make a clearer distinction between value and call stacks 2020-09-22 13:13:50 +02:00
Bob Polis 6fe4894c70 removed unnecessary extra initialisation 2020-09-22 11:02:41 +02:00
Bob Polis 184cab5205 improved first pass by using prog vector size instead of pc; added pc offset vector clear to reset 2020-09-22 10:51:20 +02:00
Bob Polis 27ad2a900c changed all prog indices to size_t; added explanatory comments to ivars 2020-09-22 10:50:07 +02:00
Bob Polis ea525575ab expanded syntax error test by adding labels and comments 2020-09-21 16:38:32 +02:00
Bob Polis 2689faa67c fixed line numbers for syntax errors by considering removed source lines: labels, comments 2020-09-21 16:37:40 +02:00
Bob Polis eeeaf894e0 moved comment parsing to first pass, to save program space 2020-09-21 12:41:29 +02:00
Bob Polis 9c4bd366b6 added catch handler for syntax error when processing file args, for a clear error message with line number included 2020-09-21 12:26:32 +02:00
Bob Polis 372bc976a0 improved syntax_error to hold line number as well 2020-09-21 12:25:40 +02:00
Bob Polis 27b798a83e added test for improved syntax error 2020-09-21 12:25:09 +02:00
Bob Polis a78a2ebff2 removed empty line 2020-09-21 11:49:49 +02:00
Bob Polis a9b707599f moved curl requester to no args section; when called with file arg will now execute that local file 2020-09-21 10:46:31 +02:00
Bob Polis 49626f9925 added recognition of # at start of line as comment desginator 2020-09-21 10:45:49 +02:00
Bob Polis 98602abb9e moved test scripts to new tests dir and made them executable 2020-09-21 10:45:06 +02:00
Bob Polis 749ae0faa7 added code to test inp and err instructions 2020-09-21 10:17:41 +02:00
Bob Polis b46fae13d7 added inp and err instructions 2020-09-21 10:17:16 +02:00
Bob Polis c41883c11a removed comment 2020-09-21 10:16:36 +02:00
Bob Polis 7dfa8123a9 simplified gcd.txt by reordering stack stuff 2020-09-14 09:23:40 +02:00
bob 91d6d59c1b added "out" instruction; fixed comparison bugs by converting values to int first 2020-09-13 16:55:02 +02:00
bob bd026a21d5 added slicer.txt with slice function 2020-09-13 16:54:10 +02:00
Bob Polis a5c8ddae35 delegated all RAII for curl handle to unique_ptr 2020-09-12 19:34:32 +02:00
Bob Polis 159feb0dac added lcm function 2020-09-12 18:31:58 +02:00
Bob Polis ce44657a98 renamed some labels to make combining with other functions easier (global label names!) 2020-09-11 12:59:18 +02:00