annotate Implab/Automaton/ByteAlphabet.cs @ 162:0526412bbb26 ref20160224

DFA refactoring
author cin
date Wed, 24 Feb 2016 08:39:53 +0300
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
162
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
1 using System;
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
2
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
3 namespace Implab.Automaton {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
4 public class ByteAlphabet : IndexedAlphabetBase<byte> {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
5 public ByteAlphabet() : base(byte.MaxValue + 1){
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
6 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
7
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
8 #region implemented abstract members of IndexedAlphabetBase
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
9
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
10 public override int GetSymbolIndex(byte symbol) {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
11 return (int)symbol;
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
12 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
13
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
14 public override System.Collections.Generic.IEnumerable<byte> InputSymbols {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
15 get {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
16 throw new NotImplementedException();
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
17 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
18 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
19
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
20 #endregion
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
21 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
22 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
23