Skip to content
A typed parser generator embedded in Rust code for Parsing Expression Grammars
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data/test
doc
grammars [Grammars] Add identifier and Rust keyword. Oct 12, 2015
runtime
src [back][bug] Clone the span mark which could be moved before use in ce… Jan 11, 2019
tests
.gitignore
.travis.yml
Cargo.toml [back][bug] Clone the span mark which could be moved before use in ce… Jan 11, 2019
LICENSE
README.md

README.md

Oak

ptal on Travis CI

Compiled on the nightly channel of Rust. Use rustup for managing compiler channels. You can download and set up the exact same version of the compiler used with rustup override add nightly-2018-11-09.

Please consult the Oak manual and this grammar for a more complete example.

Features

  • Grammar description as a Rust syntax extension.
  • Generation of both recognizer and parser functions for each rules.
  • Type inference for each parsing expressions. Simplify the AST construction.

Build local documentation

You might want to build the manual or code documentation from the repository because you need it to be synchronized with a specific version of Oak or simply for offline usage. Here how to do it!

Build the manual

You need the utility mdbook:

cargo install mdbook

Once installed, go inside oak/doc and execute mdbook build -o. The manual is generated inside a local folder named book and directly opened in your browser.

Build the code documentation

As a user of Oak, you will be interested by the runtime documentation.

cd oak/runtime
cargo doc

The documentation is then available in oak/runtime/target/doc.

To build the internal documentation of Oak, you can type this command at the root of the project:

cd oak
rustdoc --document-private-items --output=target/dev-doc src/liboak/lib.rs

The documentation will be available inside oak/target/dev-doc. It is useful to work on Oak :-)

You can’t perform that action at this time.