A rudimentary lisp-like language
lisp
at main 14 lines 432 B view raw
1//! TODO: Root library module. 2const std = @import("std"); 3 4const lex = @import("lex.zig"); 5const parse = @import("parse.zig"); 6const eval = @import("eval.zig"); 7 8// TODO: io/reader function(s) 9 10/// TODO: Lex and parse a string of source code and return the AST. 11pub fn read(allocator: std.mem.Allocator, code: []const u8) !parse.Ast { 12 const lexemes = try lex.lex(allocator, code); 13 return parse.parse(allocator, lexemes); 14}