##// END OF EJS Templates
Almost complete DFA refactoring
Almost complete DFA refactoring

File last commit:

r164:ec35731ae299 ref20160224
r164:ec35731ae299 ref20160224
Show More
CharAlphabet.cs
23 lines | 586 B | text/x-csharp | CSharpLexer
using Implab;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Implab.Automaton {
public class CharAlphabet: IndexedAlphabetBase<char> {
public CharAlphabet()
: base(char.MaxValue + 1) {
}
public override int GetSymbolIndex(char symbol) {
return symbol;
}
public override IEnumerable<char> InputSymbols {
get { return Enumerable.Range(char.MinValue, char.MaxValue).Cast<char>(); }
}
}
}