private string lookup() { token_type ttok = tok; int tpos = pos; int tline = line; int tcolumn = column; var str = lex(); pos = tpos; line = tline; column = tcolumn; return(str); }
public token_t(token_id_t id) { m_type = token_type.TOKEN; m_id = id.id(); m_token = id.name(); }
public token_t(token_type type, string str) { m_type = type; m_id = npos; m_token = str; }
public token_t(token_type type) { m_type = type; m_id = npos; m_token = ""; }
public bool is_type(token_type type) { return(m_type == type); }
public token_t(token_id_t id, string str) { m_type = token_type.TOKEN; m_id = id.id(); m_token = str; }