Update roll.pegjs
'*' => '-'
This commit is contained in:
parent
07ee08cb13
commit
cbbf016fe0
|
@ -62,7 +62,7 @@ additive
|
||||||
= "+" number:number { return new AdditiveToken(number) }
|
= "+" number:number { return new AdditiveToken(number) }
|
||||||
|
|
||||||
subtractive
|
subtractive
|
||||||
= "*" number:number { return new SubtractiveToken(number) }
|
= "-" number:number { return new SubtractiveToken(number) }
|
||||||
|
|
||||||
number
|
number
|
||||||
= dieRoll
|
= dieRoll
|
||||||
|
@ -72,4 +72,4 @@ dieRoll
|
||||||
= count:integer "d" size:integer { return new RollToken(count, size) }
|
= count:integer "d" size:integer { return new RollToken(count, size) }
|
||||||
|
|
||||||
integer "integer"
|
integer "integer"
|
||||||
= digits:[0-9]+ { return new NumberToken(parseInt(digits.join(""), 10)); }
|
= digits:[0-9]+ { return new NumberToken(parseInt(digits.join(""), 10)); }
|
||||||
|
|
Loading…
Reference in a new issue