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
ast/compile: 'every' rewriting steps #4231
ast/compile: 'every' rewriting steps #4231
Commits on Jan 29, 2022
-
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/visit: skip 'Every' Body when skipping closures
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/parser_ext: add MustParseModuleWithOpts, MustParseBodyWithOpts
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile: 'every' rewriting (dynamic, declared vars)
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile: simplify every rewriting (key/val are vars)
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile: deal with wildcard cases
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile: add missing stack.Pop()
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile_test: fix indentation
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile: fix output vars of 'every' body
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile: safety check vars in every.Body
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile_test: add nested case for every rewriting
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compiler: rewrite prints in 'every' bodies
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile_test: add "rewrite dynamics" tests for "every"
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile: expand "every" domain
There's one broken test that I haven't figured out how to fix yet. From the perspective of topdown, this change felt right, it will simplify evaluation. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile: outputVarsForExpr: don't return vars from "Every" body
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile: fix safety reordering for every
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast: rename (Every).Vars() -> (Every).KeyValueVars()
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile: use VarVisitor for KeyValueVars()
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile: add ContainsClosures
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
-
ast/compile_test: add unused assigned var in "every" body case
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>