55
|
1 using Implab;
|
|
2 using System;
|
|
3 using System.Collections.Generic;
|
|
4 using System.Linq;
|
|
5 using System.Text;
|
|
6 using System.Threading.Tasks;
|
|
7
|
|
8 namespace Implab.Parsing {
|
|
9 public class Alphabet: AlphabetBase<char> {
|
|
10
|
|
11 public override int GetSymbolIndex(char symbol) {
|
|
12 return symbol;
|
|
13 }
|
|
14
|
|
15 public override IEnumerable<char> InputSymbols {
|
|
16 get { return Enumerable.Range(char.MinValue, char.MaxValue).Select(x => (char)x); }
|
|
17 }
|
|
18
|
|
19 protected override int MapSize {
|
|
20 get { return char.MaxValue + 1; }
|
|
21 }
|
|
22 }
|
|
23 }
|