Commit Graph

77 Commits

Author SHA1 Message Date
aede32a068 feat: parse assignments 2024-10-19 20:57:09 -05:00
68d3e0dba4 test: add tests to binary operator parsing 2024-10-19 19:48:33 -05:00
71095deaa0 refactor: improve typechecking of binary operator 2024-10-02 12:31:16 -05:00
15030635fb refactor: migrate all errors to new struct 2024-09-15 19:09:19 -05:00
b59d014383 refactor: migrate syntax errors into new struct 2024-09-13 19:54:27 -05:00
fef5ee8041 refactor: begin to implement new error interface 2024-09-13 19:02:19 -05:00
7091c81201 feat: typecheck while loops 2024-08-29 10:11:05 -05:00
d4f34b62e2 feat: typecheck conditionals and for loops 2024-08-29 09:54:53 -05:00
441db4bcad feat: typecheck arrays 2024-08-29 09:12:08 -05:00
438802d011 feat: parse while loops 2024-08-28 09:45:58 -05:00
86166c2105 feat: parse loops 2024-08-28 08:53:06 -05:00
fa4d79dbe4 feat: parse arrays 2024-08-27 18:34:30 -05:00
72bd8c50c9 feat: parse conditionals 2024-08-27 16:13:59 -05:00
b481351597 feat: enforce new line after a statement 2024-08-27 09:53:10 -05:00
f0cde4a28e feat: semantic check for binary operator 2024-08-27 08:20:47 -05:00
ee9b12253d feat: semantic check for unary op 2024-08-27 07:50:57 -05:00
4ac01099ce chore: update changelog 2024-08-13 15:19:18 -05:00
6eef841e84 feat: Naive transpiling of variable bindings 2024-08-01 17:49:25 -05:00
9cd1b70103 feat: codegen of top level expressions 2024-08-01 15:37:00 -05:00
4c565df699 feat: semantic analysis for hello world 2024-08-01 10:34:08 -05:00
23b3ece588 refactor: formatting 2024-07-30 15:55:29 -05:00
14c1b6f8d8 feat: Scanning of multiline comments 2024-07-29 16:38:21 -05:00
69339a955e feat: Add syntax errors to the tokenize command 2024-07-28 18:18:11 -05:00
0d96efd4d8 Minimal workflow for a Hello World 2024-07-27 18:44:54 -05:00
fe7cfe9d5f feat: Minimal conversion of THP->PHP AST 2024-07-27 17:34:32 -05:00
5102d25676 feat: Add interface to tokenize code from STDIN and output JSON 2024-07-05 17:49:19 -05:00
3f892e91c2 refactor(lex): dont emit newline before INDENT/DEDENT 2024-06-19 17:57:07 -05:00
78d01a8fc8 feat: indentation for bypassing statement termination 2024-06-15 21:02:45 -05:00
fa14439507 refactor: parse indentation on comparison 2024-06-15 16:28:23 -05:00
457c8f23bb refactor: 2nd strategy to handle indentation 2024-06-05 20:22:13 -05:00
d568114349 feat: parse indent/dedent inside expressions 2024-06-05 11:04:01 -05:00
0393995a49 test: simple tests for block parsing 2024-06-05 07:38:47 -05:00
778a1390a0 refactor: binding parsing 2024-06-02 19:29:25 -05:00
5dafd6ca20 refactor: begin to simplify AST 2024-06-01 18:57:10 -05:00
18f3f21eec Typecheck function block 2024-05-30 16:09:52 -05:00
ab782b828d Infer datatype of unary operator 2024-05-30 14:59:45 -05:00
19cba2a7b3 Split Number into Int & Float 2024-05-06 10:13:21 -05:00
4f7fa0f5e3 Infer datatype of another identifier 2024-05-05 16:01:11 -05:00
c8d16fc77f Minimal typechecking for Binding 2024-05-04 19:23:53 -05:00
59894a1b64 Add even more tests 2024-05-04 19:08:22 -05:00
a7417e8a99 Add tests to function parameters 2024-03-18 16:41:11 -05:00
2d32f1a0bc Parse val/var binding & implicit val binding 2024-03-18 09:51:17 -05:00
f60992c303 Parse function return datatype 2024-03-18 09:20:21 -05:00
b0606195f5 Use val/var again instead of let/mut 2024-03-18 08:57:28 -05:00
ec09dbfc0d Refactor parsing pt3 2024-03-15 16:56:45 -05:00
d822c64fd7 Define todos for v0.0.11 2024-03-09 21:54:29 -05:00
ac2ab8d2dc Check for function & binding duplication in the global scope 2024-03-09 21:34:05 -05:00
f97b8e2e07 Improve function semantic check 2024-03-09 08:05:51 -05:00
a219faf283 Add a return type to main 2024-03-01 16:52:32 -05:00
e1a0afba36 Check if functions are declared twice 2024-02-03 20:21:48 -05:00