File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ start: mov 10 r0
1717 add r0 r1
1818 jmp start
1919]]
20- local tokenizer = LuASM :string_tokenizer (src )
20+ local tokenizer = asm :string_tokenizer (src )
2121
2222-- 4. Parse
2323local result = asm :parse (tokenizer )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ local instructions = {
1212local asm = LuASM :new (instructions , {})
1313
1414-- 3. Tokenize a source string
15- local tokenizer = LuASM :file_tokenizer (" ./data/02_data.lasm" )
15+ local tokenizer = asm :file_tokenizer (" ./data/02_data.lasm" )
1616
1717-- 4. Parse
1818local result = asm :parse (tokenizer )
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ local src = [[
2020mov reg0, reg1
2121print "Hello"
2222]]
23- local tokenizer = LuASM :string_tokenizer (src )
23+ local tokenizer = asm :string_tokenizer (src )
2424
2525-- 4. Parse
2626local result = asm :parse (tokenizer )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ print "Hello"
2323print "World"
2424print "Message"
2525]]
26- local tokenizer = LuASM . string_tokenizer (src )
26+ local tokenizer = asm : string_tokenizer (src )
2727
2828-- 4. Parse
2929local result = asm :parse (tokenizer )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ start: mov 10 r0 # This is a comment
1717 add r0 r1 ; This is another comment
1818 jmp start
1919]]
20- local tokenizer = LuASM :string_tokenizer (src )
20+ local tokenizer = asm :string_tokenizer (src )
2121
2222-- 4. Parse
2323local result = asm :parse (tokenizer )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ start: mov 10 r0 = My custom comment
1919 add r0 r1 = This just works
2020 jmp start
2121]]
22- local tokenizer = LuASM :string_tokenizer (src )
22+ local tokenizer = asm :string_tokenizer (src )
2323
2424-- 4. Parse
2525local result = asm :parse (tokenizer )
You can’t perform that action at this time.
0 commit comments