Skip to content

icerpc/slicec

The Slice compiler (slicec)

CI License

Targets

This crate has two targets, a library and a binary (both named slicec).

slicec Library

The slicec library contains all the code for parsing and validating Slice definitions, taking either strings or files, and converting them into a typed AST. It also exposes APIs for traversing and searching this AST, as well as retrieving any warnings / errors discovered in the parsed Slice definitions.

Crates can include the slicec library by listing it as a dependency:

slicec = "0.3.3"

slicec Binary

The slicec binary is a command-line tool which accepts Slice files (in addition to other flags), parses them into an AST using the library, then writes a Slice-encoded version of the AST to stdout, for other tools to consume.

The slicec binary can be installed with:

cargo install slicec

It can also be run directly from source with:

cargo run

About

The Slice compiler library

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 5

Languages