function parse_unary_dice(tokenList) {
    if (tokenList.current === "d") {
        tokenList.advance();
        return [1, ...parse_terminal(tokenList), "d"];
    }
    return parse_binary_dice(tokenList);
}
/**
 * Parses unary "d" operator
 */
Parses unary "d" operator
Parses unary " d " operator
function parse_unary_dice(tokenList) {
    if (tokenList.current === "d") {
        tokenList.advance();
        return [1, ...parse_terminal(tokenList), "d"];
    }
    return parse_binary_dice(tokenList);
}
function parse_unary_dice ( tokenList ) { if ( tokenList . current === "d" ) { tokenList . advance ( ) ; return [ 1 , ... parse_terminal ( tokenList ) , "d" ] ; } return parse_binary_dice ( tokenList ) ; }
Parses unary "d" operator
Parses unary " d " operator