annotate Implab/Formats/CharAlphabet.cs @ 205:8200ab154c8a v2

Added ResetState to RunnableComponent to reset in case of failure Added StateChanged event to IRunnable Renamed Promise.SUCCESS -> Promise.Success Added Promise.FromException Renamed Bundle -> PromiseAll in PromiseExtensions
author cin
date Tue, 25 Oct 2016 17:40:33 +0300
parents a0ff6a0e9c44
children 6fa235c5a760
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
165
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
1 using System.Collections.Generic;
164
ec35731ae299 Almost complete DFA refactoring
cin
parents:
diff changeset
2 using System.Linq;
165
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
3 using Implab.Automaton;
164
ec35731ae299 Almost complete DFA refactoring
cin
parents:
diff changeset
4
165
e227e78d72e4 DFA refactoring
cin
parents: 164
diff changeset
5 namespace Implab.Formats {
164
ec35731ae299 Almost complete DFA refactoring
cin
parents:
diff changeset
6 public class CharAlphabet: IndexedAlphabetBase<char> {
ec35731ae299 Almost complete DFA refactoring
cin
parents:
diff changeset
7
ec35731ae299 Almost complete DFA refactoring
cin
parents:
diff changeset
8 public override int GetSymbolIndex(char symbol) {
ec35731ae299 Almost complete DFA refactoring
cin
parents:
diff changeset
9 return symbol;
ec35731ae299 Almost complete DFA refactoring
cin
parents:
diff changeset
10 }
ec35731ae299 Almost complete DFA refactoring
cin
parents:
diff changeset
11
176
0c3c69fe225b rewritten the text scanner
cin
parents: 172
diff changeset
12 public IEnumerable<char> InputSymbols {
164
ec35731ae299 Almost complete DFA refactoring
cin
parents:
diff changeset
13 get { return Enumerable.Range(char.MinValue, char.MaxValue).Cast<char>(); }
ec35731ae299 Almost complete DFA refactoring
cin
parents:
diff changeset
14 }
ec35731ae299 Almost complete DFA refactoring
cin
parents:
diff changeset
15 }
ec35731ae299 Almost complete DFA refactoring
cin
parents:
diff changeset
16 }