comparison Implab/Parsing/Alphabet.cs @ 55:c0bf853aa04f

Added initial JSON support +JSONParser +JSONWriter
author cin
date Sun, 15 Jun 2014 19:39:11 +0400
parents
children 21611344d366
comparison
equal deleted inserted replaced
51:2c332a9c64c0 55:c0bf853aa04f
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 }