ngx-metaui / rules

One Framework to build a highly declarative and customizable UI without using templates.
Other
39 stars 8 forks source link

Runtime Compiler for OSS #41

Closed fkolar closed 5 years ago

fkolar commented 5 years ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:

Current behavior

When you want run application and you define your rules you need to always run offline compiler that takes OSS and transform it into JS literal object so it can be read by rule engine. this is not really DX friendly as we cannot make any dynamic updates.

As part of the OSS next stage where we need to be able to registr rules on the fly from the backend server there needs to be compiler written in JS

Expected behavior

Implement JS compiler that is able to process BNF grammer and read current rules. Once we have this it will allow us to also have Decorators.

fkolar commented 5 years ago

Lexer, AST tree Done, now implementing a parser that is able to put everything together.

fkolar commented 5 years ago

860860db2194e1edc3c7def9bfc787d165faab69 introduce runtime support for OSS as well as extends this for support of decorators, which is built on top of OSS compiler.