public TemplateToken ExpectType(Type Type) { if (!CurrentIsType(Type)) throw (new Exception(String.Format("Expected token {0} but obtained {1}('{2}')", Type, Current.GetType(), Current.Text))); return Current; }