Branch: Tag:

2019-11-02

2019-11-02 20:18:26 by Peter Bortas <bortas@gmail.com>

Add "->?" as the safe indexing variant of "->"

This was earlier covered by "?->", but this is inconsistent with the
"[?" index variant and the future "(?" program indexing variant.

112:   %token TOK_WHILE "while"   %token TOK_XOR_EQ "^="   %token TOK_OPTIONAL "optional" - %token TOK_SAFE_INDEX "?->" + %token TOK_SAFE_INDEX "->?"   %token TOK_SAFE_START_INDEX "[?"   %token TOK_BITS "bits"   %token TOK_AUTO_ID "auto"
4227:    }    | expr4 TOK_SAFE_INDEX line_number_info TOK_IDENTIFIER    { -  /* A?->B to ((tmp=A) && tmp->B) */ +  /* A->?B to ((tmp=A) && tmp->B) */    int temporary;    if( $1 && ($1->token == F_LOCAL) )    {