Exemple #1
0
        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);
        }
Exemple #2
0
 public token_t(token_id_t id)
 {
     m_type  = token_type.TOKEN;
     m_id    = id.id();
     m_token = id.name();
 }
Exemple #3
0
 public token_t(token_type type, string str)
 {
     m_type  = type;
     m_id    = npos;
     m_token = str;
 }
Exemple #4
0
 public token_t(token_type type)
 {
     m_type  = type;
     m_id    = npos;
     m_token = "";
 }
Exemple #5
0
 public bool is_type(token_type type)
 {
     return(m_type == type);
 }
Exemple #6
0
 public token_t(token_id_t id, string str)
 {
     m_type  = token_type.TOKEN;
     m_id    = id.id();
     m_token = str;
 }