latex parser: token types, environments support