1
0
Fork
You've already forked monkey-lang
0
No description
C 100%
2025年12月31日 12:41:48 +01:00
.clangd add very basic main.c and Clang setup 2025年12月03日 23:13:40 +01:00
.editorconfig add very basic main.c and Clang setup 2025年12月03日 23:13:40 +01:00
.gitignore add file interpreter to REPL and use nob.h 2025年12月31日 12:25:29 +01:00
ansi.h better output in the REPL 2025年12月29日 15:48:27 +01:00
ast.c show the function in a function call 2025年12月31日 10:27:46 +01:00
ast.h split DA_DECL 2025年12月30日 15:02:41 +01:00
da.c move AST printing to ast.c 2025年12月27日 14:28:26 +01:00
da.h split DA_DECL 2025年12月30日 15:02:41 +01:00
eval.c free value when overwriting the env 2025年12月30日 18:34:18 +01:00
eval.h support function calls 2025年12月30日 17:17:19 +01:00
interpreter.c refactor error printing into parser_all_errors_to_sb and errors_to_sb 2025年12月31日 12:38:01 +01:00
lexer.c rename DBG -> LOG_DEBUG, add LOG_TRACE and debug parsing 2025年12月30日 09:33:08 +01:00
lexer.h add lexer_free and parser_free and use DBG 2025年12月29日 17:02:58 +01:00
LICENSE add a GPL 3 license 2025年12月10日 18:44:31 +01:00
macros.h add ANSI coloring to debug macros 2025年12月30日 09:36:45 +01:00
nob.c add file interpreter to REPL and use nob.h 2025年12月31日 12:25:29 +01:00
nob.h add file interpreter to REPL and use nob.h 2025年12月31日 12:25:29 +01:00
parser.c refactor error printing into parser_all_errors_to_sb and errors_to_sb 2025年12月31日 12:38:01 +01:00
parser.h refactor error printing into parser_all_errors_to_sb and errors_to_sb 2025年12月31日 12:38:01 +01:00
README.md add a simple README 2025年12月31日 12:41:48 +01:00
string.c parse integer literals 2025年12月23日 17:45:55 +01:00
string.h include stdio to string.h 2025年12月27日 10:24:22 +01:00
test_eval.c refactor error printing into parser_all_errors_to_sb and errors_to_sb 2025年12月31日 12:38:01 +01:00
test_lexer.c flush all the prints in the lexer test 2025年12月26日 18:20:03 +01:00
test_parser.c refactor error printing into parser_all_errors_to_sb and errors_to_sb 2025年12月31日 12:38:01 +01:00
TODO.md complete 2025年12月30日 19:43:20 +01:00
token.c parse integer literals 2025年12月23日 17:45:55 +01:00
token.h extend the lexer with 2-character token 2025年12月05日 20:05:35 +01:00
types.h add types.h and use DA_DECL 2025年12月29日 12:17:02 +01:00

Monkey language

boostrap Nob with cc -o nob nob.c

the REPL (with memory analysis)

./nob; rlwrap --history-filename history.txt valgrind --leak-check=full ./build/interpreter

the tests

./nob; ./build/test_lexer; ./build/test_parser; ./build/test_eval