Browse Source

Parser no longer has 'prog'. Now just uses 'block'.

master
Bryan Miller 5 years ago
parent
commit
825b7f5d0b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/assembler/parser.js

+ 3
- 1
src/assembler/parser.js View File

}; };
} }


/*
parseProg(){ parseProg(){
let line = this.stream.line(); let line = this.stream.line();
let col = this.stream.col(); let col = this.stream.col();
col: col col: col
}; };
} }
*/


parse(tokens){ parse(tokens){
if (tokens) if (tokens)


if (this.__stream !== null){ if (this.__stream !== null){
if (this.__output === null && this.__stream.pos() === 0) if (this.__output === null && this.__stream.pos() === 0)
this.__output = this.parseProg();
this.__output = this.parseBlock();
return this.__output; return this.__output;
} }
return null; return null;

Loading…
Cancel
Save