view Implab/Automaton/ByteAlphabet.cs @ 163:419aa51b04fd ref20160224

JSON moved to Formats namespace Working in RegularDFA
author cin
date Wed, 24 Feb 2016 20:12:52 +0300
parents 0526412bbb26
children
line wrap: on
line source

using System;

namespace Implab.Automaton {
    public class ByteAlphabet : IndexedAlphabetBase<byte> {
        public ByteAlphabet() : base(byte.MaxValue + 1){
        }

        #region implemented abstract members of IndexedAlphabetBase

        public override int GetSymbolIndex(byte symbol) {
            return (int)symbol;
        }

        public override System.Collections.Generic.IEnumerable<byte> InputSymbols {
            get {
                throw new NotImplementedException();
            }
        }

        #endregion
    }
}