File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,24 @@ Pickling is quite efficient:
118
118
* file sizes are generally small, but see https://github.com/digama0/leangz if compression is
119
119
desirable
120
120
121
+ ## Using the REPL from another project
122
+
123
+ Set up your project as usual using ` lake new ` or ` lake init `
124
+ (or the interactive setup GUI available via the VSCode extension under the ` ∀ ` menu).
125
+
126
+ In that project, add ` require ` statements in the ` lakefile.lean ` for any dependencies you need
127
+ (e.g. Mathlib). (You probably should verify that ` lake build ` works as expected in that project.)
128
+
129
+ Now you can run the REPL as:
130
+ ``` shell
131
+ lake env ../path/to/repl/.lake/build/bin/repl < commands.in
132
+ ```
133
+ (Here ` ../path/to/repl/ ` represents the path to your checkout of this repository,
134
+ in which you've already run ` lake build ` .)
135
+
136
+ The ` lake env ` prefix sets up the environment associated to your local project, so that the REPL
137
+ can find needed imports.
138
+
121
139
## Future work
122
140
123
141
* Replay tactic scripts from tactic mode back into the original ` sorry ` .
You can’t perform that action at this time.
0 commit comments