refactor: split Init.Meta in preparation for meta semantics restrictions (#10343)
This commit is contained in:
parent
5c06c79c15
commit
73c85b177e
3 changed files with 1685 additions and 1672 deletions
1674
src/Init/Meta.lean
1674
src/Init/Meta.lean
File diff suppressed because it is too large
Load diff
1679
src/Init/Meta/Defs.lean
Normal file
1679
src/Init/Meta/Defs.lean
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -11,12 +11,12 @@ options get_default_options() {
|
|||
opts = opts.update({"debug", "terminalTacticsAsSorry"}, false);
|
||||
// switch to `true` for ABI-breaking changes affecting meta code;
|
||||
// see also next option!
|
||||
opts = opts.update({"interpreter", "prefer_native"}, false);
|
||||
opts = opts.update({"interpreter", "prefer_native"}, true);
|
||||
// switch to `false` when enabling `prefer_native` should also affect use
|
||||
// of built-in parsers in quotations; this is usually the case, but setting
|
||||
// both to `true` may be necessary for handling non-builtin parsers with
|
||||
// builtin elaborators
|
||||
opts = opts.update({"internal", "parseQuotWithCurrentStage"}, true);
|
||||
opts = opts.update({"internal", "parseQuotWithCurrentStage"}, false);
|
||||
// changes to builtin parsers may also require toggling the following option if macros/syntax
|
||||
// with custom precheck hooks were affected
|
||||
opts = opts.update({"quotPrecheck"}, true);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue