Mercurial > pub > ImplabNet
diff Implab/Formats/ByteAlphabet.cs @ 190:1c2a16d071a7 v2
Слияние с ref20160224
author | cin |
---|---|
date | Fri, 22 Apr 2016 13:08:08 +0300 |
parents | a0ff6a0e9c44 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Implab/Formats/ByteAlphabet.cs Fri Apr 22 13:08:08 2016 +0300 @@ -0,0 +1,23 @@ +using System.Collections.Generic; +using System.Linq; +using Implab.Automaton; + +namespace Implab.Formats { + public class ByteAlphabet : IndexedAlphabetBase<byte> { + + #region implemented abstract members of IndexedAlphabetBase + + public override int GetSymbolIndex(byte symbol) { + return (int)symbol; + } + + public IEnumerable<byte> InputSymbols { + get { + return Enumerable.Range(byte.MinValue, byte.MaxValue).Cast<byte>(); + } + } + + #endregion + } +} +