We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3bd6e1 commit 61c410fCopy full SHA for 61c410f
README.md
@@ -66,17 +66,17 @@ local source = [[
66
-- -----------------------
67
68
-- Tokenize: Raw text -> Stream of tokens
69
-local tokens = tlc.Tokenizer.new(source):tokenize()
+local tokens = tlc.tokenize(source)
70
71
-- Parse: Stream of tokens -> Abstract Syntax Tree (AST)
72
-local ast = tlc.Parser.new(tokens):parse()
+local ast = tlc.parseTokens(tokens)
73
74
-- Generate Code: AST -> Function Prototype (Intermediate Representation)
75
-local proto = tlc.CodeGenerator.new(ast):generate()
+local proto = tlc.generate(ast)
76
77
-- 3. Execution
78
-- Run the prototype in the Virtual Machine
79
-tlc.VirtualMachine.new(proto):execute()
+tlc.execute(proto)
80
81
--[[
82
EXPECTED OUTPUT:
0 commit comments