##// END OF EJS Templates
rewritten the text scanner
rewritten the text scanner

File last commit:

r176:0c3c69fe225b ref20160224
r176:0c3c69fe225b ref20160224
Show More
CharAlphabet.cs
19 lines | 480 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() {
}
public override int GetSymbolIndex(char symbol) {
return symbol;
}
public IEnumerable<char> InputSymbols {
get { return Enumerable.Range(char.MinValue, char.MaxValue).Cast<char>(); }
}
}
}