@@ -319,6 +319,7 @@ class Parser{ | |||
}; | |||
} | |||
/* | |||
parseProg(){ | |||
let line = this.stream.line(); | |||
let col = this.stream.col(); | |||
@@ -329,6 +330,7 @@ class Parser{ | |||
col: col | |||
}; | |||
} | |||
*/ | |||
parse(tokens){ | |||
if (tokens) | |||
@@ -336,7 +338,7 @@ class Parser{ | |||
if (this.__stream !== null){ | |||
if (this.__output === null && this.__stream.pos() === 0) | |||
this.__output = this.parseProg(); | |||
this.__output = this.parseBlock(); | |||
return this.__output; | |||
} | |||
return null; |