1 //
2 // Copyright (c) 2010-2018 Antmicro
3 // Copyright (c) 2011-2015 Realtime Embedded
4 //
5 // This file is licensed under the MIT License.
6 // Full license text is available in 'licenses/MIT.txt'.
7 //
8 using System;
9 
10 namespace Antmicro.Renode.UserInterface.Tokenizer
11 {
12     public class CommentToken : Token
13     {
CommentToken(string value)14         public CommentToken(string value):base(value)
15         {
16             Value = value.TrimStart('#');
17         }
18 
19         public string Value { get; private set; }
20 
GetObjectValue()21         public override object GetObjectValue()
22         {
23             return Value;
24         }
25 
ToString()26         public override string ToString()
27         {
28             return string.Format("[CommentToken: Value={0}]", Value);
29         }
30     }
31 
32 }
33 
34