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