Ejemplo n.º 1
0
 public char GetCharacter()
 {
     Debug.Assert(Type == TokenType.Character);
     if (Value.Length == 3)
     {
         return(System.Convert.ToChar(Value[2]));
     }
     else
     {
         var c = (char)0;
         if (CharType.NameToCharacter(Value, out c))
         {
             return(c);
         }
         throw SchemeError.SyntaxError("get-character", "improperly formed char value", this);
     }
 }