Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the Symbol class.
 /// </summary>
 /// <param name="literalSymbol">The text of the Symbol.</param>
 public Symbol(string literalSymbol) : base(SymbolAliasMap.FromAlias(literalSymbol))
 {
     LiteralCharacter = Text.Length == 1 ? Text[0] : '\0';
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the Punctuator class.
 /// </summary>
 /// <param name="punctuation">The single character string which comprises the Punctuator"</param>
 public Punctuator(string punctuation) : base(punctuation)
 {
     AliasString = SymbolAliasMap.ToAlias(LiteralCharacter);
 }