Commit Graph

48 Commits

Author SHA1 Message Date
4e13453930 feat: add filename, line and column number to error reporting 2024-12-24 18:48:33 -05:00
996bb6460f feat: begin work on error printing 2024-12-24 18:33:02 -05:00
96cc7c4655 fix: test 2024-12-24 17:36:45 -05:00
1495e4ccad refactor: change way of storing errors in lexer 2024-12-24 07:11:10 -05:00
92cefe7b0b feat: add error handling to main lexer and number lexer (simple) 2024-12-22 07:04:51 -05:00
62b92f59b4 fix: memory leak when the lexer failed after lexing one or more items 2024-12-22 06:25:34 -05:00
f5c6e8556d feat: barebones error handling in the repl 2024-12-21 07:17:29 -05:00
d88248b891 feat: print token debug info with flag 2024-12-21 06:46:53 -05:00
75002582ba feat: minimal error handling 2024-12-21 06:11:16 -05:00
fb30e1195e feat: parse module 2024-12-16 21:00:27 -05:00
5337ba48a4 fix: prevent memory leaks in module parser 2024-12-16 07:10:06 -05:00
81e38ab8a8 fix: memory issues 2024-12-16 06:28:54 -05:00
6edb533f3d fix: memory issues in syntax root 2024-12-15 07:17:13 -05:00
9a31d1aca3 test: add tests for statement parsing 2024-12-14 06:31:23 -05:00
1225049f76 feat: minimal parsing of statements 2024-12-14 06:24:13 -05:00
e48e36bea8 test: add tests for variable parsing, fix mistakes 2024-12-12 07:11:06 -05:00
fd0459aef1 test: fix error in the lexer, after ignoring whitespace 2024-12-12 07:06:25 -05:00
55231e986e feat: minimal parse of variable binding 2024-12-12 06:47:20 -05:00
44bd9fc5ad feat: begin to parse a variable declaration 2024-12-12 06:00:00 -05:00
362c591b4b refactor: move expression parsing to its own file 2024-12-11 06:10:27 -05:00
095aebcad5 feat: begin parsing 2024-12-09 08:15:00 -05:00
0ff3e94620 refactor: use modules in build.zig 2024-12-05 21:11:24 -05:00
1bd463998c chore: update files 2024-11-29 06:13:02 -05:00
b71cfe4370 feat: lex punctuation 2024-11-27 21:06:51 -05:00
882d123fe0 feat: lex groupign signs 2024-11-27 20:41:42 -05:00
71d617928a feat: lex escape characters inside strings 2024-11-27 20:07:01 -05:00
b8c542d88e feat: lex string without escape characters 2024-11-27 19:36:45 -05:00
3f95515964 feat: lex comments, forbid CR 2024-11-24 07:35:20 -05:00
00597752da feat: lex operators 2024-11-24 06:53:58 -05:00
4e1b2c3cab feat: integrate identifier/datatype lexer 2024-11-18 21:14:09 -05:00
15a66ebc3d feat: lex datatype 2024-11-18 21:08:37 -05:00
92794cc07a feat: lex identifier. create comptime fn for lexing many, many_1 2024-11-18 21:05:46 -05:00
d6a83ff46c feat: lex many productions 2024-11-18 20:08:42 -05:00
26f5fed321 chore: small changes 2024-11-17 08:08:57 -05:00
8dccf94ad5 feat: lex floating point numbers with scientific notation 2024-11-17 07:56:29 -05:00
b0aec04235 feat: lex scientific number 2024-11-17 07:54:12 -05:00
1c8a50f797 feat: lex fp numbers 2024-11-17 07:37:38 -05:00
98bef47824 fix: throw leading zero error only on integer 2024-11-17 07:12:07 -05:00
76c823cc54 feat: use comptime function to lex hex, octal and binary numbers 2024-11-16 18:56:16 -05:00
e7459ab441 feat: parse hex numbers 2024-11-16 18:34:36 -05:00
758f551db0 feat: structure for more number lexers 2024-11-16 17:08:07 -05:00
cbefbe3f68 refactor: organize files 2024-11-16 16:12:15 -05:00
70dce84f05 feat: lex integer 2024-11-16 16:03:24 -05:00
86904218d5 feat(build): setup build step to run all tests 2024-11-16 07:16:10 -05:00
5b940c9e44 feat: minimal, single digit, int lexer 2024-11-16 06:42:26 -05:00
d8df211f46 feat: read user input 2024-11-16 06:02:56 -05:00
9b43095f86 feat: changelog & repl message 2024-11-16 05:46:19 -05:00
a68e5a2c1d init 2024-11-15 20:00:15 -05:00