Esempio n. 1
0
        public override bool Parse(string aLine)
        {
            bool ret = false;
            //
            Match m = KSimpleSymbolRegEx.Match(aLine);

            if (m.Success)
            {
                ret = ExtractFromMatch(m);
            }
            //
            return(ret);
        }
Esempio n. 2
0
        public static BasicSymbol Parse(string aLine)
        {
            BasicSymbol ret = null;
            //
            Match m = KSimpleSymbolRegEx.Match(aLine);

            if (m.Success)
            {
                BasicSymbol symbol = new BasicSymbol();

                symbol.iAddress = uint.Parse(m.Groups["Address"].Value, System.Globalization.NumberStyles.HexNumber);
                symbol.iSize    = uint.Parse(m.Groups["Size"].Value, System.Globalization.NumberStyles.HexNumber);

                string symbolAndObject = m.Groups["SymbolAndObject"].Value;
                ParseSymbolText(symbolAndObject, out symbol.iName, out symbol.iObject);

                ret = symbol;
            }
            //
            return(ret);
        }