Mercurial > pub > ImplabNet
annotate Implab/Parsing/AltToken.cs @ 159:5558e43c79bb v2
minor fix
author | cin |
---|---|
date | Thu, 18 Feb 2016 16:06:14 +0300 |
parents | 97fbbf816844 |
children |
rev | line source |
---|---|
156
97fbbf816844
Promises: SignalXXX methods merged into SignalHandler method.
cin
parents:
55
diff
changeset
|
1 using System; |
55 | 2 |
3 namespace Implab.Parsing { | |
4 public class AltToken: BinaryToken { | |
5 public AltToken(Token left, Token right) | |
6 : base(left, right) { | |
7 } | |
8 | |
9 public override void Accept(IVisitor visitor) { | |
10 Safe.ArgumentNotNull(visitor, "visitor"); | |
11 visitor.Visit(this); | |
12 } | |
13 public override string ToString() { | |
14 return String.Format(Right is BinaryToken ? "{0}|({1})" : "{0}|{1}", Left, Right); | |
15 } | |
16 } | |
17 } |