Skip using asty for now

I experimented with adding this, but do not really see the value right now.
This commit is contained in:
Brandon Keepers 2016-10-29 15:02:09 -05:00
parent 458a994f21
commit 8e83b10bc6
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
3 changed files with 0 additions and 11 deletions

View File

@ -1,6 +1,5 @@
const fs = require('fs');
const path = require('path');
const ASTY = require('asty');
const PEG = require('pegjs');
const PEGUtil = require('pegjs-util');
@ -11,14 +10,6 @@ const parser = PEG.generate(fs.readFileSync(path.join(__dirname, 'parser.pegjs')
module.exports = {
parse: (content, options) => {
const asty = new ASTY();
options = Object.assign(options || {}, {
makeAST: (line, column, offset, args) => {
return asty.create.apply(asty, args).pos(line, column, offset);
}
});
const result = PEGUtil.parse(parser, content, options);
if (result.error) {

View File

@ -1,6 +1,5 @@
{
var unroll = options.util.makeUnroll(location, options)
var ast = options.util.makeAST (location, options)
// Helper Functions

View File

@ -10,7 +10,6 @@
"author": "Brandon Keepers",
"license": "ISC",
"dependencies": {
"asty": "^1.4.7",
"debug": "2.2.0",
"expect": "^1.20.2",
"github": "^5.2.0",