-
69d4bb51f4
Add copyright and license comments
main
cdo
2024-10-24 23:06:25 +01:00
-
a8d8bd216b
Add AGPL 3.0 license
cdo
2024-10-24 23:02:52 +01:00
-
4a5ada1008
Add a little more to the README
cdo
2024-10-24 23:02:31 +01:00
-
b41c58ed7b
Enable address and undefined behavior sanitizers
cdo
2024-10-24 22:52:37 +01:00
-
4c24611172
Remove \n from puts() call
cdo
2024-10-24 22:52:10 +01:00
-
f591809d1f
Remove read_expression and use parse_expression directly
cdo
2024-10-24 22:28:12 +01:00
-
b44bd100ca
Move REPL logic into application
cdo
2024-10-24 22:17:19 +01:00
-
acb4cd38d7
Extract line reading logic to reader and remove REPL tests
cdo
2024-10-24 21:46:59 +01:00
-
ecd50c76c5
Reinitialize memory pool on each loop of the REPL
cdo
2024-10-24 21:35:25 +01:00
-
e5cd69c26b
Allow whitespace in expressions
cdo
2024-10-24 21:20:57 +01:00
-
9f54c3552b
Handle NULL result from read_expression() in REPL
cdo
2024-10-24 20:58:08 +01:00
-
10803109db
Yield NULL from read_expression() on invalid input
cdo
2024-10-24 20:57:29 +01:00
-
e0070bfb1e
Add paren support to reader
cdo
2024-10-24 20:46:05 +01:00
-
7b62b58c4f
Disable optimisations (-Og isn't cutting it)
cdo
2024-10-24 20:44:55 +01:00
-
9988f6dcb8
Support * and / in reader
cdo
2024-10-24 20:24:22 +01:00
-
06bf0a1930
Return 0xdead instead of -1 on error
cdo
2024-10-24 20:09:55 +01:00
-
7b0f94ce98
Add * and / support to evaluator
cdo
2024-10-24 20:08:01 +01:00
-
9932aa7ef1
Make + and - left-associative
cdo
2024-10-24 20:01:45 +01:00
-
b491a1a782
Add basic EOF handling to REPL
cdo
2024-10-24 19:49:18 +01:00
-
5ea066b75e
Refactor parsing routines
cdo
2024-10-24 19:25:58 +01:00
-
bb622a0766
Implement subtraction in evaluator
cdo
2024-10-24 17:40:50 +01:00
-
d4855813a2
Handle nesting and subtraction in reader
cdo
2024-10-24 17:35:42 +01:00
-
79494cd0ba
Add support for sum expressions in evaluate()
cdo
2024-10-24 16:47:38 +01:00
-
8ba4035afc
Add basic sum parsing
cdo
2024-10-24 14:39:44 +01:00
-
2e43bad1a1
Write main application code
cdo
2024-10-24 16:29:40 +01:00
-
8d5f5e4ede
Create basic REPL module
cdo
2024-10-24 16:29:28 +01:00
-
810feee55e
Simplify test framework and improve test script
cdo
2024-10-24 15:59:56 +01:00
-
29deffdce9
Implement number evaluation
cdo
2024-10-24 13:52:50 +01:00
-
3bc640b656
Skip .git directory in format and entr scripts
cdo
2024-10-24 13:42:54 +01:00
-
d1b350f6ec
Create test script and run from entr.sh
cdo
2024-10-24 13:36:22 +01:00
-
f251fd04cc
Implement decimal integer reading
cdo
2024-10-24 13:36:08 +01:00
-
077245b3c7
Create expression struct and memory pool
cdo
2024-10-24 12:55:35 +01:00
-
3d0008b496
Write test framework
cdo
2024-10-24 12:29:18 +01:00
-
64c3aaf077
Create project skeleton
cdo
2024-10-24 11:37:33 +01:00