m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/parser.js b/src/parser.js
index fc9add3..3437f1a 100644
--- a/src/parser.js
+++ b/src/parser.js
@@ -33,7 +33,13 @@ newSymbol('(', function(parser) {
newSymbol(')')
-newSymbol('d', null, 30, (left, parser) => {
+newSymbol('d', (parser) => {
+ return {
+ type: 'd',
+ left: { type: 'constant', value: 1 },
+ right: parser.expression(29)
+ }
+}, 30, (left, parser) => {
return {
type: 'd',
left: left,