Beispiel #1
0
        void OnComparisonExpression(Token token)
        {
            switch (token.Type)
            {
            case TokenType.T_EQ: generator_.OnComparisonEqual(); break;

            case TokenType.T_GE: generator_.OnComparisonGreaterOrEqual(); break;

            case TokenType.T_GT: generator_.OnComparisonGreater(); break;

            case TokenType.T_LE: generator_.OnComparisonLesserOrEqual(); break;

            case TokenType.T_LT: generator_.OnComparisonLesser(); break;

            case TokenType.T_NE: generator_.OnComparisonNotEqual(); break;

            default:
                System.Diagnostics.Debug.Assert(false);
                throw new NotSupportedException();
            }
        }