support token extraction in expressions

This commit is contained in:
Dave Holoway
2020-06-17 15:37:30 +01:00
parent 3c505b05be
commit 13cdd1e0bc
21 changed files with 325 additions and 48 deletions

View File

@@ -1,8 +1,19 @@
/**
* @typedef {import('../tokenizer').Token} Token
*/
const { Statement } = require("./Statement");
class Block extends Statement {
/** @type {Statement[]} */
statements = [];
/**
* @param {Token} open
*/
constructor(open) {
super();
this.open = open;
}
}
exports.Block = Block;