annotate Implab/Automaton/ByteAlphabet.cs @ 163:419aa51b04fd ref20160224

JSON moved to Formats namespace Working in RegularDFA
author cin
date Wed, 24 Feb 2016 20:12:52 +0300
parents 0526412bbb26
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