Ejemplo n.º 1
0
        private ExpressionStr scanAllTextUntilEquals()
        {
            ExpressionStr result = null;
            string        temp   = "";

            if (variablesString.ContainsKey(token))
            {
                result = new AcessString(token, variablesString);
                scan();
            }
            else
            {
                while (!(token == "=" || token == "<>" || token == "><"))
                {
                    temp += token + " ";
                    scan();
                }
                if (temp[temp.Length - 1] == ' ')
                {
                    temp.Remove(temp.Length - 1);
                }
                result = new ConstStr(temp);
            }
            return(result);
        }
Ejemplo n.º 2
0
        private ExpressionStr scanAllTextUntilNextLine()
        {
            ExpressionStr result = null;

            if (variablesString.ContainsKey(token.Trim()))
            {
                result = new AcessString(token, variablesString);
            }
            else
            {
                scanForEol();
                result = new ConstStr(token);
            }
            return(result);
        }