Skip to content

Commit

Permalink
Fixing grammar path
Browse files Browse the repository at this point in the history
  • Loading branch information
dannykopping committed Feb 11, 2019
1 parent 68c490a commit 77d0bda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {

initialize: function(options={}) {
let trace = options.hasOwnProperty('trace') && options.trace == true;
let grammar = fs.readFileSync('grammar.pegjs', 'utf8');
let grammar = fs.readFileSync(__dirname + '/../grammar.pegjs', 'utf8');
let pegParser = peg.generate(grammar, {cache: true, optimize: 'speed', trace: trace});
this.parser = pegParser;
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "b3-strace-parser",
"version": "0.1.4",
"version": "0.1.6",
"description": "strace to json parser",
"main": "cli.js",
"bin": {
Expand Down

0 comments on commit 77d0bda

Please sign in to comment.