Commit Graph

33 Commits

Author SHA1 Message Date
Karma Riuk
c091f7f021 added execution of valgrind on valgrind target 2025-07-03 11:59:26 +02:00
Karma Riuk
ca74b67bb0 renamed tests to test 2025-07-03 10:10:22 +02:00
Karma Riuk
4da5313db5 using require instead of check to fail fast 2025-07-02 23:12:28 +02:00
Karma Riuk
896b9001c7 added default value to lexer field to avoid
compiler complaints
2025-07-02 23:00:09 +02:00
Karma Riuk
6181fc8d9f added valgrind to targets to check for memory
leaks
2025-07-02 22:59:49 +02:00
Karma Riuk
d328ae60df added clangd config to disable semantic tokens on
operators because seeing new and delete treated as
operators was hurting my eyes
2025-07-02 22:42:21 +02:00
Karma Riuk
3547822d3e forgot the pragma once for the hpps 2025-07-02 11:17:34 +02:00
Karma Riuk
e773cb649f added the current character to the lexer struct
for cleaner structure
2025-07-01 18:59:43 +02:00
Karma Riuk
69bee723a2 implemented very simple repl 2025-07-01 18:43:25 +02:00
Karma Riuk
aee7a741b1 added EQ and NEQ 2025-07-01 18:01:45 +02:00
Karma Riuk
7973f7522c extended lexer to new keywords 2025-06-30 00:36:31 +02:00
Karma Riuk
5cc7147909 extended single char tokens 2025-06-30 00:27:30 +02:00
Karma Riuk
dec93f8272 implemented lexer for a more complex subset of the
monkey language
2025-06-30 00:12:28 +02:00
Karma Riuk
69217fdf90 added test for full lexer (missing impl) 2025-06-29 20:28:53 +02:00
Karma Riuk
c322b69590 renamed IDENT to IDENTIFIER because i kept reading
indent
2025-06-29 20:04:20 +02:00
Karma Riuk
ffff13b2e0 lexer can now read single character tokens 2025-06-29 12:33:37 +02:00
Karma Riuk
ca05c3577a renamed EOF_ to END_OF_FILE 2025-06-29 12:33:09 +02:00
Karma Riuk
1c928616a4 written structure and tests for lexer, missing
implementation
2025-06-29 10:56:51 +02:00
Karma Riuk
ccfc3ed0f7 fixed bug 2025-06-29 10:56:32 +02:00
Karma Riuk
2aff81ba4c fixed token header and made the tokenTypeStrings
not seeable from outside modules
2025-06-29 10:43:12 +02:00
Karma Riuk
9ad9a0b85b added src to inclusion for lsp 2025-06-29 10:14:29 +02:00
Karma Riuk
09a0dc7b6d brought back namespaces because i think i get it
now
2025-06-29 10:14:04 +02:00
Karma Riuk
65792464bb changed make rule name 2025-06-29 10:13:27 +02:00
Karma Riuk
4771aa4f10 removed namespace perche mi rompeva le palle 2025-06-29 10:07:12 +02:00
Karma Riuk
81cdd0690d made the token type less repetitive 2025-06-28 18:05:01 +02:00
Karma Riuk
4364afa111 added compile_flags.txt for lsp 2025-06-28 17:59:14 +02:00
Karma Riuk
9a13de97e1 initial code 2025-06-28 17:59:08 +02:00
Karma Riuk
8acce0f6a6 made makefile better 2025-06-28 17:57:44 +02:00
Karma Riuk
b966b6dfab put back the tabs because makefiles are bitchy 2025-06-28 17:27:56 +02:00
Karma Riuk
149d0fb709 Yes 2025-06-28 11:19:23 +02:00
Karma Riuk
53388718ec Added makefile 2025-06-28 11:04:17 +02:00
Karma Riuk
f7e1c8bce6 added testing framework 2025-06-28 10:24:55 +02:00
Karma Riuk
3b8b6b610d initial commit: added gitignore 2025-06-28 10:21:12 +02:00