private object ParseMatch(HexParser hexParser, Match match)
 {
     if (match.Value == "+")
     {
         return(MathOperator.PLUS);
     }
     if (match.Value == "-")
     {
         return(MathOperator.MINUS);
     }
     if (match.Value == "*")
     {
         return(MathOperator.TIMES);
     }
     if (match.Value == "/")
     {
         return(MathOperator.DIVIDED_BY);
     }
     if (hexParser.TryByteParse(match.Value, out var hexByte))
     {
         return(hexByte);
     }
     if (hexParser.TryUShortParse(match.Value, out var hexWord))
     {
         return(hexWord);
     }
     if (int.TryParse(match.Value, out var parsedInt))
     {
         return(parsedInt);
     }
     return(match.Value);
 }