2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-14 18:42:24 +03:00

move test files and lib files to separate folders

This commit is contained in:
Nikolay Kostyurin
2018-06-23 00:37:25 +02:00
parent 7449143ba0
commit 4305289051
10 changed files with 10 additions and 9 deletions
+11
View File
@@ -0,0 +1,11 @@
const Tokenizer = require('./Tokenizer');
const Parser = require('./Parser');
module.exports = function parse(input, options) {
const tokenizer = new Tokenizer(input);
const tokens = tokenizer.tokenize();
const parser = new Parser(tokens, options);
const ast = parser.parse();
return ast;
};