Skip to content

Commit

Permalink
fix: Removed fmt and tree from clap params
Browse files Browse the repository at this point in the history
  • Loading branch information
giann committed May 16, 2024
1 parent 8e66570 commit 58de312
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Unreleased

## Added
- Tail call optimization (https://github.com/buzz-language/buzz/issues/9)
- REPL (https://github.com/buzz-language/buzz/issues/17) available by running buzz without any argument
- WASM build (https://github.com/buzz-language/buzz/issues/142) and [web REPL](https://buzz-lang.dev/repl.html)
- Tracing JIT (https://github.com/buzz-language/buzz/issues/134): will look for hot loops and compile them
- Tail call optimization (https://github.com/buzz-language/buzz/issues/9)
- Function argument names and object property names can be omitted if the provided value is a named variable with the same name (https://github.com/buzz-language/buzz/issues/204)
```buzz
object Person {
Expand Down Expand Up @@ -48,7 +49,6 @@ var value = from {
- `myrange.toList()` transforms a range into a list of integers
- `myrange.low` and `myrange.high` to get a range bounds
- works with `foreach`
- Tracing JIT (https://github.com/buzz-language/buzz/issues/134): will look for hot loops and compile them
- `list.fill`
- `std.panic` will panic and print current stack trace
- Loop can have _labels_ that you can `break` or `continue` to (https://github.com/buzz-language/buzz/issues/199)
Expand Down
6 changes: 0 additions & 6 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ pub fn main() u8 {
\\-h, --help Show help and exit
\\-t, --test Run test blocks in provided script
\\-c, --check Check script for error without running it
\\-f, --fmt Format script
\\-a, --tree Dump AST as JSON
\\-v, --version Print version and exit
\\-L, --library <str>... Add search path for external libraries
\\<str>...
Expand Down Expand Up @@ -301,10 +299,6 @@ pub fn main() u8 {
.Check
else if (res.args.@"test" == 1)
.Test
else if (res.args.fmt == 1)
.Fmt
else if (res.args.tree == 1)
.Ast
else if (res.positionals.len == 0)
.Repl
else
Expand Down
2 changes: 1 addition & 1 deletion tests/038-fibers.buzz
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ test "Wrapping call inside complex expressions" {
};

std.assert(resolve &map["hello"]?() == "hello world", message:"Could warp function call in a complex expression");
}
}

0 comments on commit 58de312

Please sign in to comment.