Fixed various parser bugs, implemented unary operators

This commit is contained in:
Stefan Zermatten
2020-09-18 22:13:12 +02:00
parent 50f7977a60
commit f27550362a
8 changed files with 57 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ export default function parser(){
}
export class CompilationContext {
constructor({doubleRolls}){
constructor({doubleRolls} = {}){
this.errors = [];
this.rolls = [];
this.doubleRolls = doubleRolls;