def p_expression_derefseg(p):
size = sizes[p[<NUM_LIT:1>]]<EOL>address = p[<NUM_LIT:6>]<EOL>seg = functions['<STR_LIT>'](p[<NUM_LIT:3>])<EOL>base, limit, _ = functions['<STR_LIT>'](seg)<EOL>address = base + address<EOL>char_list = functions['<STR_LIT>'](address, size)<EOL>value = Operators.CONCAT(<NUM_LIT:8> * len(char_list), *reversed(map(Operators.ORD, char_list)))<EOL>p[<NUM_LIT:0>] = value<EOL>
expression : TYPE PTR SEGMENT COLOM LBRAKET expression RBRAKET