Zulip Chat Archive
Stream: lean4
Topic: importing file with `#exit` in
Kevin Buzzard (Nov 26 2022 at 18:48):
If foo.lean
is just #exit
and bar.lean
imports foo
then this generates an error (not a warning). Is there any way I can continue with my workflow of "porting several files line by line simultaneously and #exiting files in the middle so one can import another without errors"?
Jireh Loreaux (Nov 26 2022 at 19:45):
Comment out until the end of the file?
James Gallicchio (Nov 26 2022 at 20:04):
I wonder if you could make a command like stop
for tactics, that consumes all commands after it in the file...
James Gallicchio (Nov 26 2022 at 21:31):
elab "#stop" command* : command => do
return
is enough to consume all commands so long as they parse, but I'm not sure if you're dealing with type errors or parse errors
Mario Carneiro (Nov 26 2022 at 22:55):
If you set_option warningAsError false
before #exit
you should be able to import it
Last updated: Dec 20 2023 at 11:08 UTC