ByteAlphabet.cs
23 lines
| 553 B
| text/x-csharp
|
CSharpLexer
cin
|
r162 | using System; | ||
namespace Implab.Automaton { | ||||
public class ByteAlphabet : IndexedAlphabetBase<byte> { | ||||
public ByteAlphabet() : base(byte.MaxValue + 1){ | ||||
} | ||||
#region implemented abstract members of IndexedAlphabetBase | ||||
public override int GetSymbolIndex(byte symbol) { | ||||
return (int)symbol; | ||||
} | ||||
public override System.Collections.Generic.IEnumerable<byte> InputSymbols { | ||||
get { | ||||
throw new NotImplementedException(); | ||||
} | ||||
} | ||||
#endregion | ||||
} | ||||
} | ||||