Beispiel #1
0
        public static Expression Parse()
        {
            Expression result;

            if (piece == "(")
            {
                NextPiece();

                result = OperatorO.Parse();

                if (piece == null)
                {
                    throw new Exception("Sintax Error");
                }

                if (piece != ")")
                {
                    throw new Exception("Sintax Error");
                }

                NextPiece();
            }
            else
            {
                result = KeyWord.Parse();
            }

            return(result);
        }
Beispiel #2
0
        public static Expression Analize(string source)
        {
            Expression.source = source;
            index             = 0;
            NextPiece();

            return(OperatorO.Parse());
        }