You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Prints inspection info of `input.lo` file in JSON format. Useful for IDE integrations.
241
240
>
242
241
> `<stdout>` - JSON object with inspection results
242
+
> NOTE: during inspection errors are reported in JSON format as well so stderr will be empty
243
243
244
244
Inspection object schema is defined as `DiagnisticItem` in [VSCode extension sources](../vscode-ext/src/extension.ts)
245
245
246
-
### Pretty Printing
246
+
### Formatting
247
247
248
248
> NOTE: this formats a single file at a time, imported files are not formatted
249
249
250
250
Usage:
251
251
252
252
```bash
253
-
lo input.lo --pretty-print
253
+
lo format input.lo
254
254
```
255
255
256
256
> Formats `input.lo` using non-configurable formatting style
@@ -262,19 +262,19 @@ lo input.lo --pretty-print
262
262
Usage:
263
263
264
264
```bash
265
-
lo input.lo --eval
265
+
lo evalinput.lo
266
266
```
267
267
268
268
> Compiles `input.lo` and interprets the WASM module built (without producing any intermediate files). Supports a subset of WASI. Entrypoint is either `_start` or `main`.
269
269
>
270
270
> `<stdout>` - Interpreted program output (if any). In case of `main` entrypoint the function's result is printed.
271
271
272
-
### (experimental) Interpreting WASM modules
272
+
### (experimental) Interpreting WASM modules (supports small WASI subset)
273
273
274
274
Usage:
275
275
276
276
```bash
277
-
lo input.wasm --eval-wasm
277
+
lo wasi input.wasm
278
278
```
279
279
280
280
> Parses and interprets `input.wasm`. Supports a subset of WASI. Entrypoint is either `_start` or `main`.
0 commit comments