diff options
Diffstat (limited to 'stdlib/source/lux/tool/compiler/cli.lux')
-rw-r--r-- | stdlib/source/lux/tool/compiler/cli.lux | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/stdlib/source/lux/tool/compiler/cli.lux b/stdlib/source/lux/tool/compiler/cli.lux deleted file mode 100644 index e08c83c7e..000000000 --- a/stdlib/source/lux/tool/compiler/cli.lux +++ /dev/null @@ -1,43 +0,0 @@ -(.module: - [lux #* - [control - ["p" parser]] - ["." cli (#+ CLI)] - [world - [file (#+ Path)]]] - ## [/// - ## [importer (#+ Source)]] - ) - -(type: #export Configuration - {## #sources (List Source) - #sources (List Path) - #target Path - #module Text}) - -(type: #export Service - (#Compilation Configuration) - (#Interpretation Configuration)) - -(do-template [<name> <long>] - [(def: #export <name> - (CLI Text) - (cli.named <long> cli.any))] - - [source "--source"] - [target "--target"] - [module "--module"] - ) - -(def: #export configuration - (CLI Configuration) - ($_ p.and - (p.some ..source) - ..target - ..module)) - -(def: #export service - (CLI Service) - ($_ p.or - (p.after (cli.this "build") ..configuration) - (p.after (cli.this "repl") ..configuration))) |