def p_poke(p):
    """ statement : POKE expr COMMA expr
                   | POKE LP expr COMMA expr RP
    """
    i = 2 if isinstance(p[2], Symbol) or p[2] is None else 3
    if p[i] is None or p[i + 2] is None:
        p[0] = None
        return
    p[0] = make_sentence('POKE',
                         make_typecast(TYPE.uinteger, p[i], p.lineno(i + 1)),
                         make_typecast(TYPE.ubyte, p[i + 2], p.lineno(i + 1)))
def p_poke ( p ) : i = 2 if isinstance ( p [ 2 ] , Symbol ) or p [ 2 ] is None else 3 if p [ i ] is None or p [ i + 2 ] is None : p [ 0 ] = None return p [ 0 ] = make_sentence ( 'POKE' , make_typecast ( TYPE . uinteger , p [ i ] , p . lineno ( i + 1 ) ) , make_typecast ( TYPE . ubyte , p [ i + 2 ] , p . lineno ( i + 1 ) ) )
statement : POKE expr COMMA expr
                   | POKE LP expr COMMA expr RP