##// END OF EJS Templates
Working on regular DFA
Working on regular DFA

File last commit:

r165:e227e78d72e4 ref20160224
r171:0f70905b4652 ref20160224
Show More
CharAlphabet.cs
20 lines | 528 B | text/x-csharp | CSharpLexer
using System.Collections.Generic;
using System.Linq;
using Implab.Automaton;
namespace Implab.Formats {
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>(); }
}
}
}