##// END OF EJS Templates
DFA refactoring, rx based dfa.
DFA refactoring, rx based dfa.

File last commit:

r165:e227e78d72e4 ref20160224
r170:181119ef3b39 ref20160224
Show More
ByteAlphabet.cs
25 lines | 609 B | text/x-csharp | CSharpLexer
cin
DFA refactoring
r165 using System.Collections.Generic;
cin
Almost complete DFA refactoring
r164 using System.Linq;
cin
DFA refactoring
r165 using Implab.Automaton;
cin
Almost complete DFA refactoring
r164
cin
DFA refactoring
r165 namespace Implab.Formats {
cin
Almost complete DFA refactoring
r164 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 IEnumerable<byte> InputSymbols {
get {
return Enumerable.Range(byte.MinValue, byte.MaxValue).Cast<byte>();
}
}
#endregion
}
}