Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
3863530
WIP: Parser
TheLazyCat00 May 18, 2026
0f5f061
update
TheLazyCat00 May 18, 2026
ce6948e
update
TheLazyCat00 May 20, 2026
e2c4707
update
TheLazyCat00 May 21, 2026
c5f9cf0
update
TheLazyCat00 May 21, 2026
4c59fcb
first setup
TheLazyCat00 May 21, 2026
74af338
use node_list.def
TheLazyCat00 May 22, 2026
96cf72c
update
TheLazyCat00 May 23, 2026
a7f2da7
update
TheLazyCat00 May 23, 2026
b7da9fc
update
TheLazyCat00 May 23, 2026
0ab8c4f
fix meson
TheLazyCat00 May 23, 2026
202a25d
getting ready for zane ast
TheLazyCat00 May 23, 2026
fa601ac
update nodes to sufficient for test example
TheLazyCat00 May 23, 2026
8b0c830
add stages.md
TheLazyCat00 May 23, 2026
abbe250
update
TheLazyCat00 May 23, 2026
45ee436
format
TheLazyCat00 May 23, 2026
e0435b3
print tree
TheLazyCat00 May 23, 2026
21c94a4
update
TheLazyCat00 May 23, 2026
ffee951
polish ascii tree
TheLazyCat00 May 25, 2026
a7577f8
add ops + int float literals
TheLazyCat00 May 25, 2026
b7b556d
improve ops add parantheses
TheLazyCat00 May 25, 2026
93161b2
add line-break
TheLazyCat00 May 26, 2026
582e3e9
decided not to restrict linebreak
TheLazyCat00 May 26, 2026
4fd300d
add more value expressions
TheLazyCat00 May 26, 2026
daa34e3
use wrap helper
TheLazyCat00 May 26, 2026
c2a317f
use wrap for everything
TheLazyCat00 May 26, 2026
a8f40ab
update
TheLazyCat00 May 26, 2026
73c1f37
update
TheLazyCat00 May 26, 2026
4cd8a33
update
TheLazyCat00 May 26, 2026
b12ff0d
update
TheLazyCat00 May 26, 2026
89822dd
update
TheLazyCat00 May 26, 2026
e8152f4
rm nodes2.hpp
TheLazyCat00 May 26, 2026
fe2d4cc
imrpove parser
TheLazyCat00 May 26, 2026
1a94e1a
clean up parser
TheLazyCat00 May 26, 2026
a79d491
add carret indicator
TheLazyCat00 May 26, 2026
940f66e
make caret nicer
TheLazyCat00 May 26, 2026
e75aa7a
add param names
TheLazyCat00 May 26, 2026
8795fdb
add VariableDecl
TheLazyCat00 May 27, 2026
98bf788
improve tree graph
TheLazyCat00 May 27, 2026
9d8091d
update
TheLazyCat00 May 27, 2026
e56feb3
update
TheLazyCat00 May 27, 2026
c210f0a
add method functions
TheLazyCat00 May 27, 2026
0eb744f
split methods and functions
TheLazyCat00 May 27, 2026
3ec7578
also split FunctionType/MethodType
TheLazyCat00 May 27, 2026
ef73f83
update
TheLazyCat00 May 27, 2026
54b9cbe
update
TheLazyCat00 May 27, 2026
9cfae32
add render method
TheLazyCat00 May 28, 2026
aa63192
update
TheLazyCat00 May 28, 2026
15acfe6
update
TheLazyCat00 May 28, 2026
9655c12
update
TheLazyCat00 May 28, 2026
d2a3de6
use elkhound
TheLazyCat00 May 28, 2026
1b05235
use maintained elkhound
TheLazyCat00 May 28, 2026
747bc59
update
TheLazyCat00 May 28, 2026
ed029a5
update
TheLazyCat00 May 28, 2026
8226214
update
TheLazyCat00 May 28, 2026
6b82dc3
update
TheLazyCat00 May 28, 2026
b9465e9
update
TheLazyCat00 May 28, 2026
5a4325c
update
TheLazyCat00 May 28, 2026
f78d04e
update
TheLazyCat00 May 28, 2026
09b5abf
update
TheLazyCat00 May 29, 2026
697976b
fix build issue
TheLazyCat00 May 29, 2026
b189890
update
TheLazyCat00 May 29, 2026
46823f8
update
TheLazyCat00 May 29, 2026
25110e6
stop tracking
TheLazyCat00 May 29, 2026
05ace9d
update
TheLazyCat00 May 29, 2026
6984eb2
update
TheLazyCat00 May 29, 2026
a2dc358
update
TheLazyCat00 May 29, 2026
60ee02f
update
TheLazyCat00 Jun 2, 2026
b144f7c
getting ready for ocaml
TheLazyCat00 Jun 2, 2026
304eab9
initialize dune proj
TheLazyCat00 Jun 2, 2026
104468b
update
TheLazyCat00 Jun 2, 2026
28ea0e3
first success
TheLazyCat00 Jun 2, 2026
04c68c9
improve structure
TheLazyCat00 Jun 2, 2026
b8b9367
better monorepo structure
TheLazyCat00 Jun 2, 2026
e84cd81
update
TheLazyCat00 Jun 2, 2026
f67fd14
clean
TheLazyCat00 Jun 2, 2026
dbe2c38
update
TheLazyCat00 Jun 2, 2026
3b985c4
update
TheLazyCat00 Jun 3, 2026
c2843bc
update
TheLazyCat00 Jun 3, 2026
6d4a67b
update
TheLazyCat00 Jun 3, 2026
4f60135
update
TheLazyCat00 Jun 3, 2026
8b5e503
improve tree_graph
TheLazyCat00 Jun 3, 2026
794874e
update
TheLazyCat00 Jun 4, 2026
511f775
improve tree graph (more clean)
TheLazyCat00 Jun 4, 2026
59f601b
fix to_tree_graph
TheLazyCat00 Jun 4, 2026
035e438
update
TheLazyCat00 Jun 4, 2026
5d59a9c
improve naming
TheLazyCat00 Jun 4, 2026
a609271
update
TheLazyCat00 Jun 4, 2026
19d62ed
shorten names
TheLazyCat00 Jun 4, 2026
2a59f17
use new formatting style
TheLazyCat00 Jun 4, 2026
86d8b52
update
TheLazyCat00 Jun 5, 2026
51e8669
nice parse error
TheLazyCat00 Jun 5, 2026
e1b3080
update
TheLazyCat00 Jun 5, 2026
7010b76
update func type syntax
TheLazyCat00 Jun 5, 2026
f0f5880
add method decl
TheLazyCat00 Jun 5, 2026
7316430
add aborts
TheLazyCat00 Jun 6, 2026
675064c
add abort handling
TheLazyCat00 Jun 6, 2026
d645f35
abort handling
TheLazyCat00 Jun 6, 2026
f85d620
resolve and return stats, improve tree graph
TheLazyCat00 Jun 6, 2026
9001262
add abort stat
TheLazyCat00 Jun 6, 2026
fd0d39e
add ret shorthand
TheLazyCat00 Jun 6, 2026
634114b
improve tree graph api
TheLazyCat00 Jun 6, 2026
46b5216
improvements
TheLazyCat00 Jun 6, 2026
ae6342d
format
TheLazyCat00 Jun 6, 2026
343edbf
fixup
TheLazyCat00 Jun 6, 2026
b820d5e
add boolean ops
TheLazyCat00 Jun 7, 2026
a85dd03
remove Nodes prefix in to_tree_graph.ml
TheLazyCat00 Jun 7, 2026
c1cd9bc
add control flow
TheLazyCat00 Jun 7, 2026
b283bce
seperate type and value ident tokens
TheLazyCat00 Jun 7, 2026
80ef191
inline some rules + correct prec
TheLazyCat00 Jun 7, 2026
c64b108
correct handling syntax
TheLazyCat00 Jun 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
build/
_build/
parser/
.cache/
vcpkg_installed/
__pycache__/
test/.dev/
.devbox/
6 changes: 6 additions & 0 deletions bin/compiler/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(executable
(name main)
(public_name main)
(package zane-compiler)
(libraries cst tree_graph)
(modules main))
12 changes: 12 additions & 0 deletions bin/compiler/main.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
let read_file path =
In_channel.with_open_text path In_channel.input_all

let () =
let input = read_file "test-parser/main.zn" in
match Cst.parse "test-parser/main.zn" input with
| Ok cst ->
let output = Cst.to_node cst in
Tree_graph.render output
| Error message ->
prerr_string message;
exit 1
1 change: 0 additions & 1 deletion bin/zane

This file was deleted.

13 changes: 9 additions & 4 deletions devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@
"ninja@latest",
"zig@latest",
"clang-tools@latest",
"bison@latest",
"re2c@latest"
"opam@latest",
"ocaml@latest",
"gnumake@latest",
"pkg-config@latest",
"m4@latest",
"zstd@latest"
],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!'",
"export PATH=$(realpath $DEVBOX_PROJECT_ROOT/bin):$PATH",
"export LLVM_CONFIG=$(realpath $DEVBOX_PROJECT_ROOT/.devbox/nix/profile/default/bin/llvm-config)"
"eval $(opam env)",
"export LLVM_CONFIG=$(realpath $DEVBOX_PROJECT_ROOT/.devbox/nix/profile/default/bin/llvm-config)",
"export LD_LIBRARY_PATH=/nix/store/s7vmxmhkq439cjb7ag9w198p6dk7kl0w-zstd-1.5.7/lib:$LD_LIBRARY_PATH"
],
"scripts": {
"test": [
Expand Down
Loading