Skip to content

Commit

Permalink
2202025/803PM
Browse files Browse the repository at this point in the history
  • Loading branch information
svan9 committed Feb 20, 2025
1 parent 57b7443 commit a2a7b3f
Show file tree
Hide file tree
Showing 37 changed files with 6,888 additions and 807 deletions.
464 changes: 391 additions & 73 deletions include/virtual.hpp

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions include/virtuallib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ namespace Virtual::Lib {
MewUserAssert(_vars.find(name) != _vars.end(), "undefined");
auto range = _vars.at(name);
((*this) << Instruction_PUSH << Instruction_NUM << num);
((*this) << Instruction_PUSH << Instruction_RMEM << (uint)range.start);
((*this) << Instruction_PUSH << Instruction_REG << (uint)range.start);
((*this) << Instruction_ADD << Instruction_MEM << Instruction_NUM);
}

Expand All @@ -395,9 +395,9 @@ namespace Virtual::Lib {
void Sub(std::string name, uint num) {
MewUserAssert(_vars.find(name) != _vars.end(), "undefined");
auto range = _vars.at(name);
((*this) << Instruction_PUSH << Instruction_RMEM << (uint)range.start);
((*this) << Instruction_PUSH << Instruction_REG << (uint)range.start);
((*this) << Instruction_PUSH << Instruction_NUM << num);
((*this) << Instruction_SUB << Instruction_RMEM << Instruction_NUM);
((*this) << Instruction_SUB << Instruction_REG << Instruction_NUM);
}

////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -538,7 +538,7 @@ namespace Virtual::Lib {
void Dec(std::string name) {
MewUserAssert(_vars.find(name) != _vars.end(), "undefined");
auto range = _vars.at(name);
((*this) << Instruction_PUSH << Instruction_RMEM << (uint)range.start);
((*this) << Instruction_PUSH << Instruction_REG << (uint)range.start);
((*this) << Instruction_DEC << Instruction_MEM);
}

Expand All @@ -563,7 +563,7 @@ namespace Virtual::Lib {
void Push(std::string varname) {
MewUserAssert(_vars.find(varname) != _vars.end(), "undefined");
auto range = _vars.at(varname);
((*this) << Instruction_PUSH << Instruction_RMEM << (uint)range.start);
((*this) << Instruction_PUSH << Instruction_REG << (uint)range.start);
}

////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion mewlib
Submodule mewlib updated 5 files
+67 −8 mewargs.hpp
+15 −5 mewlib.h
+431 −0 mewmath.hpp
+55 −8 mewstack.hpp
+15 −0 mewstring.hpp
5 changes: 5 additions & 0 deletions nan/.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# registers
[float : 4b] fx1 fx2 fx3 fx4 fx5
[double : 8b] dx1 dx2 dx3 dx4 dx5
[int : 4b] r1 r2 r3 r4 r5
[int : 8b] rx1 rx2 rx3 rx4 rx5
3 changes: 2 additions & 1 deletion nan/asm.nsm
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
entry __start

data db hellow "Hellow, world\n\0"
data da space[1000]

__start:
puts hellow
push 0
push 10
L1:
test
test
jem LE1
puti (rdi-4)
inc (rdi-4)
Expand Down
84 changes: 81 additions & 3 deletions nanasm/.antlr/nan.interp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ null
'data'
'entry'
':'
'call'
'puts'
'puti'
'push'
'pop'
'inc'
'dec'
'gch'
'add'
'div'
'mul'
'sub'
'test'
'jel'
'jem'
Expand All @@ -16,11 +24,28 @@ null
'jne'
'jmp'
'ret'
'xor'
'or'
'not'
'and'
'ls'
'rs'
'mov'
'swap'
'mset'
'swst'
'write'
'read'
'open'
'putc'
','
'('
'rdi'
')'
'rdi'
'['
']'
null
null
'db'
null
null
null
Expand Down Expand Up @@ -50,6 +75,31 @@ null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
WS
MOD
NUMBER
Expand All @@ -67,10 +117,19 @@ data
entry
label
instr
call
puts
puti
push
pop
rpop
inc
dec
gch
add
div
mul
sub
test
jel
jem
Expand All @@ -80,8 +139,27 @@ jm
jne
jmp
ret
xor
or
not
and
ls
rs
mov
swap
mset
swst
write
read
open
putc
tre_arg
dua_arg
any_arg
register
rdi_offset
size_t


atn:
[4, 1, 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, 0, 0, 0, 22, 94, 1, 0, 0, 0, 24, 97, 1, 0, 0, 0, 26, 100, 1, 0, 0, 0, 28, 103, 1, 0, 0, 0, 30, 106, 1, 0, 0, 0, 32, 109, 1, 0, 0, 0, 34, 112, 1, 0, 0, 0, 36, 115, 1, 0, 0, 0, 38, 117, 1, 0, 0, 0, 40, 42, 3, 2, 1, 0, 41, 40, 1, 0, 0, 0, 42, 45, 1, 0, 0, 0, 43, 41, 1, 0, 0, 0, 43, 44, 1, 0, 0, 0, 44, 1, 1, 0, 0, 0, 45, 43, 1, 0, 0, 0, 46, 51, 3, 6, 3, 0, 47, 51, 3, 4, 2, 0, 48, 51, 3, 8, 4, 0, 49, 51, 3, 10, 5, 0, 50, 46, 1, 0, 0, 0, 50, 47, 1, 0, 0, 0, 50, 48, 1, 0, 0, 0, 50, 49, 1, 0, 0, 0, 51, 3, 1, 0, 0, 0, 52, 53, 5, 1, 0, 0, 53, 54, 5, 21, 0, 0, 54, 55, 5, 23, 0, 0, 55, 56, 5, 27, 0, 0, 56, 5, 1, 0, 0, 0, 57, 58, 5, 2, 0, 0, 58, 59, 5, 23, 0, 0, 59, 7, 1, 0, 0, 0, 60, 61, 5, 23, 0, 0, 61, 62, 5, 3, 0, 0, 62, 9, 1, 0, 0, 0, 63, 77, 3, 12, 6, 0, 64, 77, 3, 14, 7, 0, 65, 77, 3, 16, 8, 0, 66, 77, 3, 18, 9, 0, 67, 77, 3, 20, 10, 0, 68, 77, 3, 22, 11, 0, 69, 77, 3, 24, 12, 0, 70, 77, 3, 26, 13, 0, 71, 77, 3, 28, 14, 0, 72, 77, 3, 30, 15, 0, 73, 77, 3, 32, 16, 0, 74, 77, 3, 34, 17, 0, 75, 77, 3, 36, 18, 0, 76, 63, 1, 0, 0, 0, 76, 64, 1, 0, 0, 0, 76, 65, 1, 0, 0, 0, 76, 66, 1, 0, 0, 0, 76, 67, 1, 0, 0, 0, 76, 68, 1, 0, 0, 0, 76, 69, 1, 0, 0, 0, 76, 70, 1, 0, 0, 0, 76, 71, 1, 0, 0, 0, 76, 72, 1, 0, 0, 0, 76, 73, 1, 0, 0, 0, 76, 74, 1, 0, 0, 0, 76, 75, 1, 0, 0, 0, 77, 11, 1, 0, 0, 0, 78, 79, 5, 4, 0, 0, 79, 80, 5, 23, 0, 0, 80, 13, 1, 0, 0, 0, 81, 82, 5, 5, 0, 0, 82, 83, 3, 38, 19, 0, 83, 15, 1, 0, 0, 0, 84, 87, 5, 6, 0, 0, 85, 88, 5, 22, 0, 0, 86, 88, 3, 38, 19, 0, 87, 85, 1, 0, 0, 0, 87, 86, 1, 0, 0, 0, 88, 17, 1, 0, 0, 0, 89, 90, 5, 7, 0, 0, 90, 91, 3, 38, 19, 0, 91, 19, 1, 0, 0, 0, 92, 93, 5, 8, 0, 0, 93, 21, 1, 0, 0, 0, 94, 95, 5, 9, 0, 0, 95, 96, 5, 23, 0, 0, 96, 23, 1, 0, 0, 0, 97, 98, 5, 10, 0, 0, 98, 99, 5, 23, 0, 0, 99, 25, 1, 0, 0, 0, 100, 101, 5, 11, 0, 0, 101, 102, 5, 23, 0, 0, 102, 27, 1, 0, 0, 0, 103, 104, 5, 12, 0, 0, 104, 105, 5, 23, 0, 0, 105, 29, 1, 0, 0, 0, 106, 107, 5, 13, 0, 0, 107, 108, 5, 23, 0, 0, 108, 31, 1, 0, 0, 0, 109, 110, 5, 14, 0, 0, 110, 111, 5, 23, 0, 0, 111, 33, 1, 0, 0, 0, 112, 113, 5, 15, 0, 0, 113, 114, 5, 23, 0, 0, 114, 35, 1, 0, 0, 0, 115, 116, 5, 16, 0, 0, 116, 37, 1, 0, 0, 0, 117, 118, 5, 17, 0, 0, 118, 119, 5, 18, 0, 0, 119, 120, 5, 22, 0, 0, 120, 121, 5, 19, 0, 0, 121, 39, 1, 0, 0, 0, 4, 43, 50, 76, 87]
[4, 1, 53, 293, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5,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1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 3, 44, 278, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 0, 0, 48, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 0, 0, 286, 0, 99, 1, 0, 0, 0, 2, 106, 1, 0, 0, 0, 4, 108, 1, 0, 0, 0, 6, 115, 1, 0, 0, 0, 8, 118, 1, 0, 0, 0, 10, 157, 1, 0, 0, 0, 12, 159, 1, 0, 0, 0, 14, 162, 1, 0, 0, 0, 16, 165, 1, 0, 0, 0, 18, 168, 1, 0, 0, 0, 20, 171, 1, 0, 0, 0, 22, 173, 1, 0, 0, 0, 24, 176, 1, 0, 0, 0, 26, 179, 1, 0, 0, 0, 28, 182, 1, 0, 0, 0, 30, 185, 1, 0, 0, 0, 32, 188, 1, 0, 0, 0, 34, 191, 1, 0, 0, 0, 36, 194, 1, 0, 0, 0, 38, 197, 1, 0, 0, 0, 40, 199, 1, 0, 0, 0, 42, 202, 1, 0, 0, 0, 44, 205, 1, 0, 0, 0, 46, 208, 1, 0, 0, 0, 48, 211, 1, 0, 0, 0, 50, 214, 1, 0, 0, 0, 52, 217, 1, 0, 0, 0, 54, 220, 1, 0, 0, 0, 56, 222, 1, 0, 0, 0, 58, 225, 1, 0, 0, 0, 60, 228, 1, 0, 0, 0, 62, 231, 1, 0, 0, 0, 64, 234, 1, 0, 0, 0, 66, 237, 1, 0, 0, 0, 68, 240, 1, 0, 0, 0, 70, 243, 1, 0, 0, 0, 72, 246, 1, 0, 0, 0, 74, 249, 1, 0, 0, 0, 76, 252, 1, 0, 0, 0, 78, 255, 1, 0, 0, 0, 80, 258, 1, 0, 0, 0, 82, 261, 1, 0, 0, 0, 84, 264, 1, 0, 0, 0, 86, 270, 1, 0, 0, 0, 88, 277, 1, 0, 0, 0, 90, 279, 1, 0, 0, 0, 92, 283, 1, 0, 0, 0, 94, 288, 1, 0, 0, 0, 96, 98, 3, 2, 1, 0, 97, 96, 1, 0, 0, 0, 98, 101, 1, 0, 0, 0, 99, 97, 1, 0, 0, 0, 99, 100, 1, 0, 0, 0, 100, 1, 1, 0, 0, 0, 101, 99, 1, 0, 0, 0, 102, 107, 3, 6, 3, 0, 103, 107, 3, 4, 2, 0, 104, 107, 3, 8, 4, 0, 105, 107, 3, 10, 5, 0, 106, 102, 1, 0, 0, 0, 106, 103, 1, 0, 0, 0, 106, 104, 1, 0, 0, 0, 106, 105, 1, 0, 0, 0, 107, 3, 1, 0, 0, 0, 108, 109, 5, 1, 0, 0, 109, 110, 5, 46, 0, 0, 110, 113, 5, 48, 0, 0, 111, 114, 5, 52, 0, 0, 112, 114, 3, 94, 47, 0, 113, 111, 1, 0, 0, 0, 113, 112, 1, 0, 0, 0, 114, 5, 1, 0, 0, 0, 115, 116, 5, 2, 0, 0, 116, 117, 5, 48, 0, 0, 117, 7, 1, 0, 0, 0, 118, 119, 5, 48, 0, 0, 119, 120, 5, 3, 0, 0, 120, 9, 1, 0, 0, 0, 121, 158, 3, 12, 6, 0, 122, 158, 3, 14, 7, 0, 123, 158, 3, 16, 8, 0, 124, 158, 3, 18, 9, 0, 125, 158, 3, 20, 10, 0, 126, 158, 3, 22, 11, 0, 127, 158, 3, 24, 12, 0, 128, 158, 3, 26, 13, 0, 129, 158, 3, 28, 14, 0, 130, 158, 3, 30, 15, 0, 131, 158, 3, 32, 16, 0, 132, 158, 3, 34, 17, 0, 133, 158, 3, 36, 18, 0, 134, 158, 3, 38, 19, 0, 135, 158, 3, 40, 20, 0, 136, 158, 3, 42, 21, 0, 137, 158, 3, 44, 22, 0, 138, 158, 3, 46, 23, 0, 139, 158, 3, 48, 24, 0, 140, 158, 3, 50, 25, 0, 141, 158, 3, 52, 26, 0, 142, 158, 3, 54, 27, 0, 143, 158, 3, 56, 28, 0, 144, 158, 3, 58, 29, 0, 145, 158, 3, 60, 30, 0, 146, 158, 3, 62, 31, 0, 147, 158, 3, 64, 32, 0, 148, 158, 3, 66, 33, 0, 149, 158, 3, 68, 34, 0, 150, 158, 3, 70, 35, 0, 151, 158, 3, 72, 36, 0, 152, 158, 3, 74, 37, 0, 153, 158, 3, 76, 38, 0, 154, 158, 3, 78, 39, 0, 155, 158, 3, 80, 40, 0, 156, 158, 3, 82, 41, 0, 157, 121, 1, 0, 0, 0, 157, 122, 1, 0, 0, 0, 157, 123, 1, 0, 0, 0, 157, 124, 1, 0, 0, 0, 157, 125, 1, 0, 0, 0, 157, 126, 1, 0, 0, 0, 157, 127, 1, 0, 0, 0, 157, 128, 1, 0, 0, 0, 157, 129, 1, 0, 0, 0, 157, 130, 1, 0, 0, 0, 157, 131, 1, 0, 0, 0, 157, 132, 1, 0, 0, 0, 157, 133, 1, 0, 0, 0, 157, 134, 1, 0, 0, 0, 157, 135, 1, 0, 0, 0, 157, 136, 1, 0, 0, 0, 157, 137, 1, 0, 0, 0, 157, 138, 1, 0, 0, 0, 157, 139, 1, 0, 0, 0, 157, 140, 1, 0, 0, 0, 157, 141, 1, 0, 0, 0, 157, 142, 1, 0, 0, 0, 157, 143, 1, 0, 0, 0, 157, 144, 1, 0, 0, 0, 157, 145, 1, 0, 0, 0, 157, 146, 1, 0, 0, 0, 157, 147, 1, 0, 0, 0, 157, 148, 1, 0, 0, 0, 157, 149, 1, 0, 0, 0, 157, 150, 1, 0, 0, 0, 157, 151, 1, 0, 0, 0, 157, 152, 1, 0, 0, 0, 157, 153, 1, 0, 0, 0, 157, 154, 1, 0, 0, 0, 157, 155, 1, 0, 0, 0, 157, 156, 1, 0, 0, 0, 158, 11, 1, 0, 0, 0, 159, 160, 5, 4, 0, 0, 160, 161, 5, 48, 0, 0, 161, 13, 1, 0, 0, 0, 162, 163, 5, 5, 0, 0, 163, 164, 5, 48, 0, 0, 164, 15, 1, 0, 0, 0, 165, 166, 5, 6, 0, 0, 166, 167, 3, 88, 44, 0, 167, 17, 1, 0, 0, 0, 168, 169, 5, 7, 0, 0, 169, 170, 3, 88, 44, 0, 170, 19, 1, 0, 0, 0, 171, 172, 5, 8, 0, 0, 172, 21, 1, 0, 0, 0, 173, 174, 5, 8, 0, 0, 174, 175, 3, 90, 45, 0, 175, 23, 1, 0, 0, 0, 176, 177, 5, 9, 0, 0, 177, 178, 3, 88, 44, 0, 178, 25, 1, 0, 0, 0, 179, 180, 5, 10, 0, 0, 180, 181, 3, 88, 44, 0, 181, 27, 1, 0, 0, 0, 182, 183, 5, 11, 0, 0, 183, 184, 3, 88, 44, 0, 184, 29, 1, 0, 0, 0, 185, 186, 5, 12, 0, 0, 186, 187, 3, 86, 43, 0, 187, 31, 1, 0, 0, 0, 188, 189, 5, 13, 0, 0, 189, 190, 3, 86, 43, 0, 190, 33, 1, 0, 0, 0, 191, 192, 5, 14, 0, 0, 192, 193, 3, 86, 43, 0, 193, 35, 1, 0, 0, 0, 194, 195, 5, 15, 0, 0, 195, 196, 3, 86, 43, 0, 196, 37, 1, 0, 0, 0, 197, 198, 5, 16, 0, 0, 198, 39, 1, 0, 0, 0, 199, 200, 5, 17, 0, 0, 200, 201, 5, 48, 0, 0, 201, 41, 1, 0, 0, 0, 202, 203, 5, 18, 0, 0, 203, 204, 5, 48, 0, 0, 204, 43, 1, 0, 0, 0, 205, 206, 5, 19, 0, 0, 206, 207, 5, 48, 0, 0, 207, 45, 1, 0, 0, 0, 208, 209, 5, 20, 0, 0, 209, 210, 5, 48, 0, 0, 210, 47, 1, 0, 0, 0, 211, 212, 5, 21, 0, 0, 212, 213, 5, 48, 0, 0, 213, 49, 1, 0, 0, 0, 214, 215, 5, 22, 0, 0, 215, 216, 5, 48, 0, 0, 216, 51, 1, 0, 0, 0, 217, 218, 5, 23, 0, 0, 218, 219, 5, 48, 0, 0, 219, 53, 1, 0, 0, 0, 220, 221, 5, 24, 0, 0, 221, 55, 1, 0, 0, 0, 222, 223, 5, 25, 0, 0, 223, 224, 3, 86, 43, 0, 224, 57, 1, 0, 0, 0, 225, 226, 5, 26, 0, 0, 226, 227, 3, 86, 43, 0, 227, 59, 1, 0, 0, 0, 228, 229, 5, 27, 0, 0, 229, 230, 3, 88, 44, 0, 230, 61, 1, 0, 0, 0, 231, 232, 5, 28, 0, 0, 232, 233, 3, 86, 43, 0, 233, 63, 1, 0, 0, 0, 234, 235, 5, 29, 0, 0, 235, 236, 3, 86, 43, 0, 236, 65, 1, 0, 0, 0, 237, 238, 5, 30, 0, 0, 238, 239, 3, 86, 43, 0, 239, 67, 1, 0, 0, 0, 240, 241, 5, 31, 0, 0, 241, 242, 3, 86, 43, 0, 242, 69, 1, 0, 0, 0, 243, 244, 5, 32, 0, 0, 244, 245, 3, 86, 43, 0, 245, 71, 1, 0, 0, 0, 246, 247, 5, 33, 0, 0, 247, 248, 3, 84, 42, 0, 248, 73, 1, 0, 0, 0, 249, 250, 5, 34, 0, 0, 250, 251, 3, 88, 44, 0, 251, 75, 1, 0, 0, 0, 252, 253, 5, 35, 0, 0, 253, 254, 3, 88, 44, 0, 254, 77, 1, 0, 0, 0, 255, 256, 5, 36, 0, 0, 256, 257, 3, 88, 44, 0, 257, 79, 1, 0, 0, 0, 258, 259, 5, 37, 0, 0, 259, 260, 3, 88, 44, 0, 260, 81, 1, 0, 0, 0, 261, 262, 5, 38, 0, 0, 262, 263, 3, 88, 44, 0, 263, 83, 1, 0, 0, 0, 264, 265, 3, 88, 44, 0, 265, 266, 5, 39, 0, 0, 266, 267, 3, 88, 44, 0, 267, 268, 5, 39, 0, 0, 268, 269, 3, 88, 44, 0, 269, 85, 1, 0, 0, 0, 270, 271, 3, 88, 44, 0, 271, 272, 5, 39, 0, 0, 272, 273, 3, 88, 44, 0, 273, 87, 1, 0, 0, 0, 274, 278, 3, 90, 45, 0, 275, 278, 3, 92, 46, 0, 276, 278, 5, 47, 0, 0, 277, 274, 1, 0, 0, 0, 277, 275, 1, 0, 0, 0, 277, 276, 1, 0, 0, 0, 278, 89, 1, 0, 0, 0, 279, 280, 5, 40, 0, 0, 280, 281, 5, 48, 0, 0, 281, 282, 5, 41, 0, 0, 282, 91, 1, 0, 0, 0, 283, 284, 5, 40, 0, 0, 284, 285, 5, 42, 0, 0, 285, 286, 5, 47, 0, 0, 286, 287, 5, 41, 0, 0, 287, 93, 1, 0, 0, 0, 288, 289, 5, 43, 0, 0, 289, 290, 5, 47, 0, 0, 290, 291, 5, 44, 0, 0, 291, 95, 1, 0, 0, 0, 5, 99, 106, 113, 157, 277]
50 changes: 50 additions & 0 deletions nanasm/.antlr/nan.tokens
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
T__0=1
T__1=2
T__2=3
T__3=4
T__4=5
T__5=6
T__6=7
T__7=8
T__8=9
T__9=10
T__10=11
T__11=12
T__12=13
T__13=14
T__14=15
T__15=16
T__16=17
T__17=18
T__18=19
T__19=20
WS=21
MOD=22
NUMBER=23
WORD=24
FLAG=25
OPERATORS=26
TYPEMOD=27
STRING=28
SSTRING=29
'data'=1
'entry'=2
':'=3
'call'=4
'puts'=5
'puti'=6
'push'=7
'inc'=8
'test'=9
'jel'=10
'jem'=11
'je'=12
'el'=13
'jm'=14
'jne'=15
'jmp'=16
'ret'=17
'('=18
'rdi'=19
')'=20
'db'=22
Loading

0 comments on commit a2a7b3f

Please sign in to comment.