const OP = require('./op.js'); | |||||
function GetTextStream(input){ | function GetTextStream(input){ | ||||
var pos = 0; | var pos = 0; | ||||
readLabel(){ | readLabel(){ | ||||
var str = this.readWhile(isLabel); | var str = this.readWhile(isLabel); | ||||
if (OP.isCode(str.toUpperCase())) | |||||
return this.genTokenObject('opcode', str.toUpperCase()); | |||||
return this.genTokenObject('label', str); | return this.genTokenObject('label', str); | ||||
} | } | ||||