| @@ -1,4 +1,4 @@ | |||
| const OP = require('./op.js'); | |||
| function GetTextStream(input){ | |||
| var pos = 0; | |||
| @@ -165,6 +165,8 @@ class Tokenizer{ | |||
| readLabel(){ | |||
| var str = this.readWhile(isLabel); | |||
| if (OP.isCode(str.toUpperCase())) | |||
| return this.genTokenObject('opcode', str.toUpperCase()); | |||
| return this.genTokenObject('label', str); | |||
| } | |||