view Implab/Parsing/Alphabet.cs @ 104:5f10d54b45df v2

renamed Promise.Last -> Promise.On Promise.On doesn't changes Promise.IsExclusive property
author cin
date Sun, 09 Nov 2014 23:03:45 +0300
parents 21611344d366
children
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 Alphabet()
            : 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).Select(x => (char)x); }
        }
    }
}