The RegexParser fails to parse the maximum of a closure, because a scanning for the next token is missed. In file RegexParser.java line 672 the statement: ch = this.regex.charAt(off++); should be added to solve this bug.