Hivetime is a straightforward interpreter and calculator designed for short-time syntax, primarily used in Jira work logs.
To install Hivetime REPL, you need to build the REPL yourself. Follow these steps:
- Navigate to the
repl
directory. - Run the
cargo build
command. - Once the build is complete, you can start using Hivetime.
You can perform calculations using the following syntax:
42m + 18m
The result will be displayed as 1h or (60m).
Alternatively, you can also use the following syntax:
42 minutes + 18 minutes
Hivetime provides error handling in the lexer, parser, and calculator components, ensuring that any errors occurring during the interpretation and calculation process are appropriately handled and reported. However, please note that error handling is currently not implemented in the REPL itself.