m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/parser.js
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-09-02 00:47:46 -0400
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-09-02 01:02:16 -0400
commit1cc6b80cfd4875f289837421cdbe81e3dfcf0ed1 (patch)
tree0fb04bc04f27620f6def5dc310953a637e22ae07 /src/parser.js
parent650f7d82197cba35df3654abf548e07e213c1b14 (diff)
Implement repeat
Diffstat (limited to 'src/parser.js')
-rw-r--r--src/parser.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.js b/src/parser.js
index fd0fd59..b1f6ebb 100644
--- a/src/parser.js
+++ b/src/parser.js
@@ -82,6 +82,8 @@ newSymbol('minus', (parser) => {
}
})
+newInfix(' x ', 24, { type: 'repeat' })
+
newSymbol('end', null, -1)
const newParser = (tokens) => {