• Joined on 2022-05-11
janis pushed to main at janis/from-scratch 2025-11-03 19:32:33 +00:00
a90a01bc28 more comparison operators
0e25f627a8 can codegen if/else
Compare 2 commits »
janis pushed to main at janis/from-scratch 2025-11-03 16:06:10 +00:00
4f5579b6fd lints
3526f9d59d fix stack var logic error
07eeed7cff can do very cool stuff!
52cfc7dc54 yippie?
8508018b0a sete doesn't work like that!
Compare 10 commits »
janis pushed to main at janis/from-scratch 2025-11-02 00:07:53 +00:00
6ebc6afb2b codegen for binop
b9712dacfb fix ast gen with nested binary ops
a0f4b56c64 skip_token method
c0dc1361ae add more tokens
9cb3331f60 method for pushing/poping registers before calling functions
Compare 10 commits »
janis pushed to main at janis/from-scratch 2025-11-01 02:10:02 +00:00
ea4611111b remove strange file and print source in codegen test
2ca60ace59 codegen working? pogU?
105c052e95 more fixes for codegen
a25dcdabbb many small fixes
e43424b780 fix int_to_str2 for 0
Compare 9 commits »
janis pushed to main at janis/from-scratch 2025-10-31 16:14:35 +00:00
da2a298baf get-register-name from width and index
d793a3251f init stack vec, push rplogue
e3e0d6843f fix issues with initial codegen
d5de30d9e7 initial codegen
6bdd2ef18a export display/debug impls for ast to ast_debug.rs
Compare 14 commits »
janis pushed to main at janis/from-scratch 2025-10-31 00:55:19 +00:00
e79af01925 ast: correctly resolves var refs
935a3e0a53 fix odd initial scope (is now -1usize)
cd04a5a4ca try to redo scopes/symtable with passed down scope
cd5b714051 fix return statement push op
a769fece84 pass scope in walk_for_each
Compare 8 commits »
janis pushed to main at janis/from-scratch 2025-10-30 21:16:55 +00:00
56354237c6 build symbol table
ad3b0205c2 ast walking
525b78cdf4 pointer type
e54313b6a2 args, var-ref
84e87824ba ast: placeness, assignment, var decl, deref, address-of
Compare 6 commits »
janis pushed to main at janis/from-scratch 2025-10-29 23:32:00 +00:00
2df4d182f9 ast: placeness
099d774634 ast: sub, mul, div
838c96f04f update python script, add slash and star tokens
886525cf7e support parenthesised expressions
c609fe4ec6 fix blocks, increase AstNode by 1 qword
Compare 5 commits »
janis pushed to main at janis/from-scratch 2025-10-29 22:17:11 +00:00
d2597d2de7 can parse basic function
8740fea99d fix tokeniser for: void
Compare 2 commits »
janis pushed to main at janis/from-scratch 2025-10-29 21:10:42 +00:00
8f4d626968 ast tests
4e55fa74f4 parse structs and functions from asm for rust tests
5ae3e17693 initial ast
bf9d07b462 init tokeniser with buffer
46053090f4 initial parsing
Compare 8 commits »
janis pushed to main at janis/from-scratch 2025-10-29 12:39:01 +00:00
cd21ecb782 insert sorted, return tuple instead of strange signed index from binary search methods
1a4055a69a memmove, vec_insert, vec_binary_search_by working and tested
af19946dc4 remove size from some vec functions
8ac409c677 isnert and binary search by
fd52df1307 more testing and fixes for vec.asm
Compare 5 commits »
janis pushed to main at janis/from-scratch 2025-10-28 20:43:32 +00:00
edc4f4e576 parsing numbers
f60573c06f radix, negative numbers
15c2aea16a rewrite int_to_str
Compare 3 commits »
janis pushed to main at janis/from-scratch 2025-10-28 19:40:32 +00:00
6a6af53667 bump allocator
janis pushed to main at janis/from-scratch 2025-10-28 17:16:49 +00:00
5f63d4303e formatting, strings, comments
43a06ad55c test numbers
44ee13246e is_number
82104cfe0d edge case identifiers, simple function parsing
26c37e9dd3 test identifiers
Compare 8 commits »
janis pushed to main at janis/from-scratch 2025-10-28 12:12:41 +00:00
cfc1c8e3b3 more tests for tokeniser
63fbca378b can tokenise simple tokens
719451b935 reduce warnings, enable edition 2024, fix tokeniser (1/?)
Compare 3 commits »
janis pushed to main at janis/from-scratch 2025-10-27 09:57:46 +00:00
f1faac639c rework tokeniser
janis pushed to new-config at janis/nixos-config 2025-10-26 10:27:45 +00:00
87fbe0cc1b update nixpkgs dep
11c5ec198c use zen from stable nixpkgs
Compare 2 commits »
janis pushed to new-config at janis/nixos-config 2025-10-21 22:10:45 +00:00
70cc668cdc update unstable / use zen from unstable
janis pushed to main at janis/from-scratch 2025-10-20 21:02:16 +00:00
d47c933c04 fix vec
b5c0a41aa4 move panic out, add stack frames, proper rust test
9a235e625a asdf
e9f634bca5 vec get
8bc56220fc vec drop
Compare 9 commits »
janis pushed to new-config at janis/nixos-config 2025-10-19 19:47:08 +00:00
0f9c0fdf26 zen kernel
400f28fa59 remove deskflow
039b2b9af2 code subvol laptop
1274da3d16 update deps
Compare 4 commits »