annotate Implab/Automaton/RegularExpressions/BinaryToken.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 a0ff6a0e9c44
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
162
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
1 using Implab;
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
2
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
3 namespace Implab.Automaton.RegularExpressions {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
4 public abstract class BinaryToken<TTag> : Token<TTag> {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
5 readonly Token<TTag> m_left;
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
6 readonly Token<TTag> m_right;
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
7
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
8 public Token<TTag> Left {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
9 get { return m_left; }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
10 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
11
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
12 public Token<TTag> Right {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
13 get { return m_right; }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
14 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
15
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
16 protected BinaryToken(Token<TTag> left, Token<TTag> right) {
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
17 Safe.ArgumentNotNull(m_left = left, "left");
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
18 Safe.ArgumentNotNull(m_right = right, "right");
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
19 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
20 }
0526412bbb26 DFA refactoring
cin
parents:
diff changeset
21 }