annotate Implab/Parsing/BinaryToken.cs @ 159:5558e43c79bb v2

minor fix
author cin
date Thu, 18 Feb 2016 16:06:14 +0300
parents c0bf853aa04f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
55
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
1 using Implab;
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
2 using System;
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
3 using System.Collections.Generic;
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
4 using System.Linq;
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
5 using System.Text;
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
6 using System.Threading.Tasks;
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
7
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
8 namespace Implab.Parsing {
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
9 public abstract class BinaryToken : Token {
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
10 Token m_left;
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
11 Token m_right;
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
12
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
13 public Token Left {
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
14 get { return m_left; }
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
15 }
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
16
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
17 public Token Right {
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
18 get { return m_right; }
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
19 }
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
20
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
21 protected BinaryToken(Token left, Token right) {
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
22 Safe.ArgumentNotNull(m_left = left, "left");
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
23 Safe.ArgumentNotNull(m_right = right, "right");
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
24 }
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
25 }
c0bf853aa04f Added initial JSON support
cin
parents:
diff changeset
26 }