![]() Supersedes #35. The syntax for these elements isn't "set in stone"; in the sense that it is unspecified in [input-output-hk/plutus](https://github.com/input-output-hk/plutus). There's no visible plan from IOG to extend the Haskell parser to support this syntax, though there are samples of imagined syntax in the code. Thus, we can lead the way and simply choose a suitable syntax and let the Haskell implementation align to it later. This syntax is thus inspired from input-output-hk/plutus' samples, with only a small change: we use `<` and `>` for encapsulating type declaration instead of `(`, `)`. There are already enough parentheses in the UPLC syntax, adding more reduces visibility. Doing this, I've also added a lot more test cases for the UPLC parser. There could be more, but this is a good start. Here are some example programs (taken from test cases) utilizing this syntax: ``` (program 0.0.0 (con list<bytestring> [#00, #01])) ``` ``` (program 0.0.0 (con pair <integer, integer> [14, 42] ) ) ``` ``` (program 0.0.0 (con pair<string, list<integer>> ["foo", [14, 42]]) ) ``` _(Note that this was mainly done as an exercise to get more familiar with Rust and parts of Aiken.)_ |
||
---|---|---|
.github | ||
assets | ||
book | ||
crates | ||
examples | ||
.editorconfig | ||
.gitignore | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md | ||
bonnie.toml |
README.md
QuickStart
Prerequisites
For now you'll need rust installed, see rustup.
Getting started
$ cargo install aiken
$ aiken --help
How to use
For more information please see the user manual.
Roadmap
Aiken defines its roadmap using Github Milestones. The roadmap isn't set in stone, but gives a high-level overview of where the project is headed for.
Contributing
Want to contribute? See CONTRIBUTING.md to know how.
Acknowledgment
We'd like to give a special thanks to @nkz for creating the logo and giving us the idea to name the project Aiken.
Note
The name comes from Howard Aiken, an American physicist and a pioneer in computing.