##// END OF EJS Templates
JSON moved to Formats namespace...
JSON moved to Formats namespace Working in RegularDFA

File last commit:

r162:0526412bbb26 ref20160224
r163:419aa51b04fd ref20160224
Show More
CharAlphabet.cs
23 lines | 594 B | text/x-csharp | CSharpLexer
cin
DFA refactoring
r162 using Implab;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Implab.Automaton {
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); }
}
}
}