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 HexToken : DecimalIntegerToken
13     {
HexToken(string value)14         public HexToken(string value):base(Convert.ToInt64(value.Split('x')[1], 16).ToString())
15         {
16         }
17 
ToString()18         public override string ToString()
19         {
20             return string.Format("[HexToken: Value={0}]", Value);
21         }
22     }
23 }
24 
25