Mercurial > pub > ImplabNet
view Implab/Formats/CharAlphabet.cs @ 176:0c3c69fe225b ref20160224
rewritten the text scanner
author | cin |
---|---|
date | Tue, 22 Mar 2016 18:58:40 +0300 |
parents | 92d5278d1b10 |
children | a0ff6a0e9c44 |
line wrap: on
line source
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>(); } } } }