##// END OF EJS Templates
DFA refactoring
DFA refactoring

File last commit:

r158:130781364799 v2
r161:2a8466f0cb8a v2
Show More
CharAlphabet.cs
23 lines | 592 B | text/x-csharp | CSharpLexer
cin
refactoring, code cleanup
r158 using Implab;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Implab.Parsing {
public class CharAlphabet: IndexedAlphabetBase<char> {
public CharAlphabet()
: 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); }
}
}
}