Mercurial > pub > ImplabNet
view Implab/Formats/CharAlphabet.cs @ 166:b84cdbe82e7f ref20160224
sync
author | cin |
---|---|
date | Mon, 29 Feb 2016 18:41:01 +0300 |
parents | e227e78d72e4 |
children | 92d5278d1b10 |
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() : 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>(); } } } }