CharAlphabet.cs
16 lines
| 434 B
| text/x-csharp
|
CSharpLexer
|
|
r165 | using System.Collections.Generic; | ||
|
|
r164 | using System.Linq; | ||
|
|
r165 | using Implab.Automaton; | ||
|
|
r164 | |||
|
|
r165 | namespace Implab.Formats { | ||
|
|
r164 | public class CharAlphabet: IndexedAlphabetBase<char> { | ||
| public override int GetSymbolIndex(char symbol) { | ||||
| return symbol; | ||||
| } | ||||
|
|
r176 | public IEnumerable<char> InputSymbols { | ||
|
|
r164 | get { return Enumerable.Range(char.MinValue, char.MaxValue).Cast<char>(); } | ||
| } | ||||
| } | ||||
| } | ||||
