Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor rule parser #91

Merged
merged 4 commits into from
Dec 2, 2016
Merged

Refactor rule parser #91

merged 4 commits into from
Dec 2, 2016

Conversation

dinoboff
Copy link
Collaborator

@dinoboff dinoboff commented Dec 1, 2016

All type inferring code was grouped in "scope.js" and most evaluation code was grouped in "rule.js". Now that type inferring is some times delayed until runtime evaluation, it doesn't make sense to separate them; they have been merged.

The parser code have been split by expression type instead; it would have been too long in one script.

To update the parser/evaluator rules against Firebase specs, it also add a script to record rule parsing and evaluation on Firebase. Each rule get deployed; it then attempt to read a path that will trigger the rule evaluation and save the result. If the result is false it will insure it didn't evaluate to false because of a runtime error.

Fix #89 #63

All type inferring was grouped in "scope.js" and most evaluation code was grouped in "rule.js". Now that type inferring is some time delayed until runtime evaluation, it doesn't make sense to separate them; they have been merged.

The parser code have been split by expression type instead; it would have been too long in one script.
@dinoboff dinoboff added this to the 3.0 milestone Dec 1, 2016
We save live firebase evaluation in a JSON file (and commit it) and run test against them. The alternative of running targaryen and live test in parallel would take too long.

The cron job should be run everyday to make sure Firebase evaluation hasn’t change (TODO).
@dinoboff dinoboff merged commit 87eccec into goldibex:next Dec 2, 2016
@dinoboff dinoboff deleted the refactor-parser branch December 2, 2016 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant