The expression parser now allows spaces inside expressions (a relaxation for certain MACRO-10 typos; eg, "- 1" where "-1" was expected)

This commit is contained in:
Jeff 2017-03-28 12:01:06 -07:00 committed by Jeff Parsons
commit d13e7a5faf
3 changed files with 31 additions and 6 deletions

View file

@ -1285,7 +1285,9 @@ class Macro10 {
w = this.dbg.parseInstruction(sOperator, sOperands, this.nLocation, true);
}
if (w < 0) w = this.parseExpression(sExp, true);
if (w < 0) {
w = this.parseExpression(sExp, true);
}
if (w !== undefined) {
this.genWord(w, this.dbg.sUndefined);