Skip to content

Commit

Permalink
readme and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
lexa-diky committed Jun 12, 2024
1 parent 938dcb7 commit ede5909
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hexo"
version = "0.7.4"
version = "0.7.5"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/lexa-diky/hexo"
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,17 @@ Function arguments are referenced by their index: `$0`, `$1`, `$2`, ...
To call a function use glyph '#' fallowed by function name and arguments:

```hexo
// String functions
> #len('HelloWorld') // will emit length of 'HelloWorld' in bytes (0a)
> #pad_left(AA, 4) // will emit '00 00 00 AA'
> #pad_right(AA, 4) // will emit 'AA 00 00 00'
// OS functions
> #cmd(`ls`) // will emit result of command line 'ls' command
> #read_file('file.txt') // will emit content of 'file.txt'
// Padding functions
> #pad_left(AA, 4) // will emit '00 00 00 AA'
> #pad_right(AA, 4) // will emit 'AA 00 00 00'
> #pad('AA', left: 10x4, right: 10x8) // wil pad left by 4 bytes and right by 8 bytes
```

### Example
Expand Down

0 comments on commit ede5909

Please sign in to comment.