drools-mvel-parser

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
upgraded to 7.30.0-SNAPSHOT

  1. … 75 more files in changeset.
Upgraded version to 7.29.0.Final

  1. … 75 more files in changeset.
Upgraded version to 7.29.0.Final

  1. … 75 more files in changeset.
[DROOLS-4558] executable-model doesn't fully parse multi-line pattern (#2613)

  1. … 2 more files in changeset.
DROOLS-4666 Fix line separators (#2601)

upgraded to 7.29.0-SNAPSHOT

  1. … 75 more files in changeset.
Upgraded versions for release 7.28.0.Final

  1. … 75 more files in changeset.
[DROOLS-4558] executable-model doesn't fully parse multi-line pattern (#2561)

* Renamed newline in CompilerTest.java

* replace new lines in constraints

  1. … 3 more files in changeset.
DROOLS-4554 Port SonarCloud fixes from kogito-runtimes (#2547)

* DROOLS-4554 Port SonarCloud fixes from kogito-runtimes

* DROOLS-4554 Port SonarCloud fixes from kogito-runtimes

* DROOLS-4554 Port SonarCloud fixes from kogito-runtimes

* DROOLS-4554 Port SonarCloud fixes from kogito-runtimes

  1. … 100 more files in changeset.
upgraded to next SNAPSHOT version

  1. … 75 more files in changeset.
Upgraded versions for release 7.27.0.Final

  1. … 75 more files in changeset.
[KOGITO-259] Lambda expression in RHS of DRL does not compile if RHS contains modify keyword - backport from Kogito (#2537)

  1. … 1 more file in changeset.
DROOLS-4464 Fix || constraint with Windows line separator (#2517)

upgraded to next SNAPSHOT version

  1. … 75 more files in changeset.
upgraded to next SNAPSHOT version

  1. … 75 more files in changeset.
Upgraded versions for release 7.26.0.Final

  1. … 75 more files in changeset.
DROOLS-4462 Fix DroolsMvelParserTest, FactHandleSerializationTest on Windows (#2518)

* DROOLS-4462 Fix line endings in DroolsMvelParserTest

* DROOLS-4462 Fix testBinaryWithNewLine

* DROOLS-4462 Fix FactHandleSerializationTest on Windows

  1. … 1 more file in changeset.
upgraded to next SNAPSHOT version

  1. … 75 more files in changeset.
[DROOLS-4376] [DROOLS-4377] [DROOLS-4831] (#2490)

* CompilerTest.testMapAbbreviatedComparison

* New case for ExpressionTyper

* Refactor

* WithCast

* Removed author and javadoc for HalfBinary

* New test for simple half binary

* Avoid handcrafted parsing

* Avoid putting meaningless generic type into parameter

* Allow special comparison case to change the expression

* Default in findLelftLeafOfNameExpr

* Refactor PatternDSL

* Removed impl from Implementation causing OSGi to fail

* Fix rebase

* Avoid handcrafted parsing

* Allow special comparison case to change the expression

* test and first refactor

* Can coerce map

* added todo

* Fix ExpressionTyper test

* Coerce map expressions

* Better check

* Remove useless cast to object

* SonarLint

  1. … 11 more files in changeset.
Upgraded versions for release 7.25.0.Final

  1. … 75 more files in changeset.
Upgraded versions for release 7.25.0.Final

  1. … 75 more files in changeset.
bumped up version to 7.25.0-SNAPSHOT

  1. … 75 more files in changeset.
Upgraded versions for release 7.24.0.Final

  1. … 75 more files in changeset.
Upgraded versions for release 7.24.0.test

  1. … 75 more files in changeset.
Mvel parser: Support modify statement with new line (#2429)

* Mvel parser: Support modify statement with new line

* Failing test

* While extracting modified properties in a chain of methods, don't use the last getter

  1. … 4 more files in changeset.
upgraded to 7.24.0.t043

  1. … 75 more files in changeset.
DROOLS-4184 Fix first set of issues reported by SonarCloud (#2398)

* DROOLS-4181 Fix blocker issues reported by SonarCloud

* DROOLS-4181 Fix critical issues reported by SonarCloud

* DROOLS-4181 Fix first set of major issues reported by SonarCloud

* DROOLS-4181 Fix second set of major issues reported by SonarCloud

* DROOLS-4181 Fix third set of major issues reported by SonarCloud

* DROOLS-4181 Fix test related to SonarCloud fixes.

* DROOLS-4181 Fix downstream problems.

  1. … 144 more files in changeset.
[DROOLS-4104] Mvel-compiler (#2381)

* First commit

Some data type

First two phases

Some design

Rules of the game

Improved visitors

Copy and pasted solution

Removed inlinecast

Removed other classes

Algorithm explained

Other possible phases

Try to parse only types

First commit

Removed imperative assignment

Create type information phase

Subtyping!

toString

Test runnning

Removed phase

Moved packages

Moved packages

Moved context

FlattenExpressionPhase

FlattenExpressionPhase

New Phase

Refactor test

* New test

* Flatten phase

* Avoid flatten

* Inverted phase 2 and 3

* Process first node using the tree

* Navigating tree?

* JavaParser utilities

* Removed javaparser-utilities

* Removed javaparser-utilities

* Removed stream

* Only one phase, visiting the tree

* Moved error message

* Refactor

* Error message

* Reintroduced original grammar to support block

* Disabled comma expression in grammar, they should be only inside a modify block

* Variable declaration

* Multiple statements

* Refactor test

* Convert property access mixed

* Test modify

* Correct mvel modify syntax

* Renamed to DroolsConstraintParserTest.java

* New test in parser for modify

* Support MVEl modify statements

* Fix consequence

* Removed attach_pid files from git

* Modify is a statement, not an expression

* First draft of modify compiling

* testSetter

* StringLiteralExpressionT.java

* Removed duplicated test

* Method to find the stter

* Split among LHS and RHS

* String literal expression

* setter test passing, every other test failing

* Fixed property test

* Create a new declaration if missing

* Modify test

* Added transitive depedency

* Removed useless code

* Removed dependency from Drools Model Compiler

* Plugged in mvel compiler

* Refactor renaming

* Type is optional now

* Missing the scope from field accessors

* Public field accessor

* Pass scope instead of stack in context

* Refactor

* added todo

* Fix scope

* Refactor

* Uncompiled expression

* Plugged mvel compiler, found problems with modify and semicolons

* Added support for semicolon in mvel modify syntax

* Ignored test

* Added test

* Fix 7.20

* Preprocess methodcallexpr in modify statements

* sanitize single line scripts

* Plugged in compiler, removed validation of mvel scripts

* testAccessor ForArguments

* Better default method

* Fix testAccessorInArguments, broke other tests

* Fix all tests

* Removed println

* Better semicolons

* Semicolon sanitizier

* Also propagate errors

* Removed useless test

* Fix type in binary expressions

* Better sanitizier for modify

* Better sanitizer 2

* Do not append ; to empty strings

* Added modify object among modified properties

* Implement update with modify blocks

* Type resolver

* Better test

* Added trace of LHS

* Create new reference when missing

* Assume only one variable per decorator, removed declaration/declarator dualism

* testInitializerArrayAccess

* TypedExpression is an interface rather than an abstract class

* Map conversion

* testMixArrayMap and testMVELConsequenceWithMapsAndArray

* Test without semicolon

* Without semicolon test

* Fix rebase

* Fix hardcoded version

* Better test without semicolon

* simple test without semicolon

* Another test with method call

* Another test with method call

* Fix comment in GeneratedDrlConstraintParserTokenManagerBase.java

* Failing test with comment

* Test with comments passing

* Unignored test with comments

* New test for single line statement

* Single line block with comment with both and without semicolon

* Support empty statements with only new line

* All test passing

* Fix ModifyPreprocessPhase.java

* Fix first modify rewrite code, removed custom modify parsing

* Support new line in argument list

* Removed debug mode

* test property reactivity

* Fix modify empty block

* Fix new lines in argument list

* Removed SemicolonSanitizer.java

* Fix property reactivity

* Avoid processing nested methodCallExpr in modify setters

* fix NPE

* Refactor Mvel rewrite

* Removed mvel validation

* Removed unused import

* Fix AccumulateTest.testAccumulateMVELWithModify

* Fixed testNoLoopAccumulate

* Support target type when RHS type is missing

* Fix all AccumulaTest

* ImportsTest

* New test for EOL in BinaryExpr

* Support EOL after binary expr token

* Fix Nesting Test added new test for BinaryExpr with newLine

* Support variable declaration without initializer

* Fix StreamTest, correct drools scope

* Support arbitrary expressions in modify block

* Cep test, 4 tests left

* Better test

* Test for crashing pretty printer

* Fix rebase

* Added new test for new line expressions

* Added two new tests

* Fix typo

* Added negative test

* Formatting

* renamed test

* With statement support

* Constructor in with statement

* Correct implementation of with preprocessor

* Refactor

* Recurse over ModifyProcessor

* Fix MapInitializationDrools3800 by recursing the modify preprocessor

* Fix MapInitializationDrools3800 by recursing the modify preprocessor

* Use mvel compiler instead of ExpressionTyper during parsing of Mvel Accumulate Nodes

* Fix NPE

* Compilation after updating JP

* Fix mvel compiler dependency

* Fix version

* minimalized reproducer

* AST reproducer

* Compare reproducer with AssertJ

* Compare AST with diff, more similar

* Even more similar

* Avoid sharing static nodes that breaks the pretty printer

* Removed debugPrettyPrinter

* Reintroduced needed class generation

* Fix testPrettyPrinterCrashing

* Reverted model writer

* Revert packagemodel

* Reverted packageModel

* Removed PrettyPrinterTest.java

* Reverted ExpressionTyperTest.java

* Removed README.MD

* Duplication of removal of EmptyStmt

* Fixed ModifyCompilerTest

* Fix version

* Failing test for nested modify

* Recurse over blocks in consequence, new test for failing

* Fix ordering of with preprocessor

* Removed duplication in nested Modify preprocessor and fixed ordering

* Removed TODO

* Removed unused properties

* Public fields on LHS

* Removed another TODO

* Better type check

* Removed last todo

* Dependency in -boostrap

* Unsupported cases in DorolsConstraintParserTest

* Also support window EOL

* Renamed drools-constraint-parser to drools-mvel-parser

* Fix OSGI

* Assertj to test

* Removed ignore to 3505 test

* Fix typo

* Fix trace message

* Formatting

* Removed trace

* Added README.md of the module that explains how it works

* Fix typo

* Removed currying renamed method

* Renamed modified properties to used bindings

* Typo

* Removed drlconstraintparser

* Used consumer in test, reformatting

* Unused statement

* Added some documentation

* Improved documentation of the module

    • -0
    • +434
    ./src/main/java/org/drools/mvel/parser/TokenTypes.java
  1. … 144 more files in changeset.