Define CLI interface

master
Araozu 2023-12-09 20:04:44 -05:00
parent cae07fcc49
commit 0337e4f5ff
2 changed files with 40 additions and 1 deletions

View File

@ -2,7 +2,7 @@
## TODO
- Parse binary operators
- Parse __more__ binary operators
- Parse more complex bindings
- Watch mode
- Improve error messages
@ -12,6 +12,22 @@
- Namespace identifiers in the symbol table
- Stdlib
- Document code
- Watch mode
- Formatter
- Simple language server
## v0.0.10
- [ ] Typecheck current AST
## v0.0.9
- [ ] Hand made CLI, remove clap
- [ ] Compile a single file
- [ ] Implement code generation for ast nodes implemented as of now
- [ ] Display error messages during compilation
- [ ] Improve errro messages
## v0.0.8

23
CLI.md Normal file
View File

@ -0,0 +1,23 @@
The THP compiler & formatter, v0.0.1
Usage: `thp [command] [options]`
## Commands
c _file_ Compiles `file` in-place
f _file_ Formats `file`
r Starts the REPL
init Initializes a new project in the current directory
build, b Builds the project
fmt Formats all files in the project
watch Starts compilation of the project in watch mode
help, h Print this message & exit
## General options
-h, --help Print command-specific usage