Mercurial > pub > ImplabNet
view Implab/Formats/CharAlphabet.cs @ 164:ec35731ae299 ref20160224
Almost complete DFA refactoring
author | cin |
---|---|
date | Thu, 25 Feb 2016 02:11:13 +0300 |
parents | |
children | e227e78d72e4 |
line wrap: on
line source
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>(); } } } }