| @@ -1,7 +1,7 @@ |
| 1 | 1 | //! `tilc`: the tilcayo compiler driver. |
| 2 | 2 | //! |
| 3 | 3 | //! `check` resolves and type-checks, `build` compiles a program to a |
| 4 | | −//! native executable (through C, M5), `run` runs a program (interpreted by |
| 4 | +//! native executable (through C), `run` runs a program (interpreted by |
| 5 | 5 | //! default, or `--native`), `test` runs `@test` functions, `fmt` formats, |
| 6 | 6 | //! `bindgen` binds a C header, `parse` and `core` dump compiler stages, |
| 7 | 7 | //! `lsp` runs the language server. |
| @@ -60,13 +60,13 @@ enum Command { |
| 60 | 60 | }, |
| 61 | 61 | /// Print the concrete syntax tree of a file, then its syntax errors. |
| 62 | 62 | Parse { file: PathBuf }, |
| 63 | | − /// Run a program's `main`: a standalone file, or a package's |
| 64 | | − /// `src/main.til` (default: the package containing the current |
| 65 | | − /// directory). |
| 63 | + /// Run the `main` of a module: a file, or a package's `src/main.til` |
| 64 | + /// for a package directory (default: the package containing the |
| 65 | + /// current directory). |
| 66 | 66 | Run { |
| 67 | 67 | path: Option<PathBuf>, |
| 68 | | − /// Compile natively and run the executable (M5: programs without |
| 69 | | − /// `ctl`, `final ctl` or actors). The default is the interpreter. |
| 68 | + /// Compile natively and run the executable (networking needs it). |
| 69 | + /// The default is the interpreter. |
| 70 | 70 | #[arg(long, conflicts_with = "interp")] |
| 71 | 71 | native: bool, |
| 72 | 72 | /// Use the reference interpreter (the default). |
| @@ -77,7 +77,8 @@ enum Command { |
| 77 | 77 | /// compiler with `musttail`: clang 13+ or GCC 15+). |
| 78 | 78 | Build { |
| 79 | 79 | path: Option<PathBuf>, |
| 80 | | − /// The executable to write (default: the module's name). |
| 80 | + /// The executable to write (default: the package's name, or the |
| 81 | + /// file's). |
| 81 | 82 | #[arg(short, long)] |
| 82 | 83 | output: Option<PathBuf>, |
| 83 | 84 | /// Optimise the C code. |
| @@ -88,8 +89,8 @@ enum Command { |
| 88 | 89 | #[arg(long)] |
| 89 | 90 | timings: bool, |
| 90 | 91 | }, |
| 91 | | − /// Run the `@test` functions of a package (`src/` and `test/`), or of a |
| 92 | | − /// standalone file. |
| 92 | + /// Run the `@test` functions of a package (`src/` and `test/`) for a |
| 93 | + /// directory, or of one module for a file. |
| 93 | 94 | Test { |
| 94 | 95 | path: Option<PathBuf>, |
| 95 | 96 | /// Compile the tests natively (one executable; each test runs in |