public string TokToString(Tok t) { var result = t.ToString(); switch (t) { case Tok.ID: result += ' ' + LexText; break; case Tok.INUM: result += ' ' + LexValue.ToString(); break; } return(result); }