瀏覽代碼

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

master
Bryan Miller 5 年之前
父節點
當前提交
825b7f5d0b
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      src/assembler/parser.js

+ 3
- 1
src/assembler/parser.js 查看文件

}; };
} }


/*
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…
取消
儲存