Update roll.pegjs

'*' => '-'
This commit is contained in:
Kegan Myers 2014-08-10 16:47:54 -05:00
parent 07ee08cb13
commit cbbf016fe0

View file

@ -62,7 +62,7 @@ additive
= "+" number:number { return new AdditiveToken(number) }
subtractive
= "*" number:number { return new SubtractiveToken(number) }
= "-" number:number { return new SubtractiveToken(number) }
number
= dieRoll
@ -72,4 +72,4 @@ dieRoll
= count:integer "d" size:integer { return new RollToken(count, size) }
integer "integer"
= digits:[0-9]+ { return new NumberToken(parseInt(digits.join(""), 10)); }
= digits:[0-9]+ { return new NumberToken(parseInt(digits.join(""), 10)); }