Beispiel #1
0
        private string GetValueBase(string expectedType)
        {
            AddContext(expectedType);

            if (!SkipAhead())
            {
                throw ParsingException.LineEnd(currentContext, RealLineIndex);
            }

            return(GetSection());
        }
Beispiel #2
0
        protected string GetStrValue()
        {
            AddContext("string");

            if (!SkipAhead())
            {
                var newContext = new List <string>(currentContext);
                RemoveContext();
                throw ParsingException.LineEnd(newContext, RealLineIndex);
            }

            RemoveContext();

            return(GetStrValueUnderhood());
        }