Exemplo n.º 1
0
        private string GetValueBase(string expectedType)
        {
            AddContext(expectedType);

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

            return(GetSection());
        }
Exemplo n.º 2
0
        protected string GetStrValue()
        {
            AddContext("string");

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

            RemoveContext();

            return(GetStrValueUnderhood());
        }