##// END OF EJS Templates
Working on text scanner
Working on text scanner

File last commit:

r172:92d5278d1b10 ref20160224
r173:ecfece82ca11 ref20160224
Show More
ByteAlphabet.cs
29 lines | 711 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;
}
cin
Working on text scanner
r172 public override byte GetSymbolByIndex(int index) {
return (byte)index;
}
cin
Almost complete DFA refactoring
r164 public IEnumerable<byte> InputSymbols {
get {
return Enumerable.Range(byte.MinValue, byte.MaxValue).Cast<byte>();
}
}
#endregion
}
}