comparison Implab/Automaton/RegularExpressions/BinaryToken.cs @ 162:0526412bbb26 ref20160224

DFA refactoring
author cin
date Wed, 24 Feb 2016 08:39:53 +0300
parents
children a0ff6a0e9c44
comparison
equal deleted inserted replaced
161:2a8466f0cb8a 162:0526412bbb26
1 using Implab;
2
3 namespace Implab.Automaton.RegularExpressions {
4 public abstract class BinaryToken<TTag> : Token<TTag> {
5 readonly Token<TTag> m_left;
6 readonly Token<TTag> m_right;
7
8 public Token<TTag> Left {
9 get { return m_left; }
10 }
11
12 public Token<TTag> Right {
13 get { return m_right; }
14 }
15
16 protected BinaryToken(Token<TTag> left, Token<TTag> right) {
17 Safe.ArgumentNotNull(m_left = left, "left");
18 Safe.ArgumentNotNull(m_right = right, "right");
19 }
20 }
21 }