Mercurial > pub > ImplabNet
annotate Implab/Parsing/AltToken.cs @ 156:97fbbf816844 v2
Promises: SignalXXX methods merged into SignalHandler method.
Components: RunnableComponent In progress
author | cin |
---|---|
date | Mon, 15 Feb 2016 04:22:15 +0300 |
parents | c0bf853aa04f |
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 } |