예제 #1
0
 internal TerminalSymbol(UnifiedString identifier, Int32 Position, Int32 symbolNumber, Int64 enumValue)
     : base(identifier, Position, symbolNumber)
 {
     EnumValue = enumValue;
     _EmptyComputationResult = EmptyComputationResultEnum.NotEmpty; // Terminal symbols are never empty
     FlagName = MakeFlagIdentifier(EnumValue, identifier.ToString());
 }
예제 #2
0
 public override String ToString() => Identifier.ToString();
예제 #3
0
 internal void Append(StringBuilder sb)
 => sb.Append(TypeString.ToString())
 .Append(' ')
 .Append(NameString.ToString());