1 // 2 // Copyright (c) 2010-2024 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.Collections.Generic; 9 using System.IO; 10 using System.Linq; 11 12 namespace Antmicro.Renode.UserInterface.Tokenizer 13 { 14 public class PathToken : StringToken 15 { PathToken(string value)16 public PathToken(string value) : base(value) 17 { 18 Value = value.TrimStart('@').Replace(@"\ ", " "); 19 } 20 GetObjectValue()21 public override object GetObjectValue() 22 { 23 return Value; 24 } 25 ToString()26 public override string ToString() 27 { 28 return string.Format("[PathToken: Value={0}]", Value); 29 } 30 } 31 } 32 33