Skip to content

Instantly share code, notes, and snippets.

View Up05's full-sized avatar
💭
I'm thinking it's summer,

Augustinas Up05

💭
I'm thinking it's summer,
  • Lithuania
  • 01:58 (UTC +03:00)
View GitHub Profile
@Up05
Up05 / walk_children.odin
Created March 24, 2026 17:14
Copy-pasted fromcore:ast, compressed a bit and made to not return the inputted node first
walk_children :: proc(v: ^ast.Visitor, node: ^ast.Node) {
using ast
walk_expr_list :: proc(v: ^ast.Visitor, list: []^ast.Expr) { for x in list { walk(v, x) } }
walk_stmt_list :: proc(v: ^ast.Visitor, list: []^ast.Stmt) { for x in list { walk(v, x) } }
walk_attr_list :: proc(v: ^ast.Visitor, list: []^ast.Attribute) { for x in list { walk(v, x) } }
trod :: proc(v: ^ast.Visitor, node: ^ast.Node) { if node != nil { walk(v, node) } }
v := v; if v == nil || node == nil { return }
// if v = v->visit(node); v == nil { return } <-- FUCK THIS!
@Up05
Up05 / db.sql
Created January 6, 2026 18:54
Duomenų bazės pavyzdys
CLEAR SCREEN;
PROMPT "--------------------------------------";
PROMPT " TRINAMA Š. ";
PROMPT "--------------------------------------";
-- turi būti atvirkščia tvarka nuo sukūrimo... :)))
DROP TABLE Ėjimas;
DROP TABLE Figūra;
DROP TABLE Patikra;