view Implab/Parsing/Alphabet.cs @ 58:1710dcda34bb

Added JSONXmlReader
author cin
date Tue, 17 Jun 2014 19:40:43 +0400
parents c0bf853aa04f
children 21611344d366
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.Parsing {
    public class Alphabet: AlphabetBase<char> {

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

        public override IEnumerable<char> InputSymbols {
            get { return Enumerable.Range(char.MinValue, char.MaxValue).Select(x => (char)x); }
        }

        protected override int MapSize {
            get { return char.MaxValue + 1; }
        }
    }
}