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 ExecutionToken : Token 13 { ExecutionToken(string value)14 public ExecutionToken(string value) : base(value) 15 { 16 if(value.StartsWith("`", StringComparison.Ordinal)) 17 { 18 Value = value.Substring(1, value.Length - 2); 19 } 20 else 21 { 22 Value = value; 23 } 24 } 25 public string Value {get;set;} 26 GetObjectValue()27 public override object GetObjectValue() 28 { 29 return Value; 30 } 31 ToString()32 public override string ToString() 33 { 34 return string.Format("[ExecutionToken: Value={0}]", Value); 35 } 36 } 37 } 38 39