Skip to content

Commit

Permalink
feat: use paratt-arser @3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Jan 5, 2017
1 parent 35f18a0 commit 7600017
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"homepage": "https://github.com/arlac77/config-expander#readme",
"dependencies": {
"expression-expander": "^5.3.5",
"pratt-parser": "^2.0.18"
"pratt-parser": "^3.0.0"
},
"devDependencies": {
"chai": "^3.5.0",
Expand Down Expand Up @@ -57,4 +57,4 @@
}
},
"author": "Markus Felten <[email protected]>"
}
}
5 changes: 2 additions & 3 deletions src/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict';

import {
create
Parser
}
from 'pratt-parser';

Expand Down Expand Up @@ -83,7 +83,7 @@ class FCall extends AST {
}
}

export const grammar = create({
export const grammar = new Parser({
identifier(value, properties, context) {
const path = context.path;

Expand All @@ -107,7 +107,6 @@ export const grammar = create({
if (c) {
properties.value.value = c;
} else {
properties.type.value = 'identifier';
properties.value.value = value;
}
},
Expand Down

0 comments on commit 7600017

Please sign in to comment.