##// END OF EJS Templates
Added initial JSON support...
Added initial JSON support +JSONParser +JSONWriter

File last commit:

r55:c0bf853aa04f default
r55:c0bf853aa04f default
Show More
Alphabet.cs
23 lines | 598 B | text/x-csharp | CSharpLexer
cin
Added initial JSON support...
r55 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; }
}
}
}