Should be T_INVALID not T_OP_INVALID
Rename map_from_str to map_from_fields
tok should be a bool
Add getop (get an operator)
Fixup map_from_str to work correctly with list qualifiers