[][src]Crate zamm

ZAMM is a literate programming tool to help with Yin and Yang development. It can be used as a binary or as a library. To have it run automatically as a part of the regular Cargo build process, put this in your Cargo.toml:

[build-dependencies]
zamm = "0.1.1"

Then define your build.rs as such:

use zamm::generate_default_code;

fn main() {
    generate_default_code("yin.md").unwrap();
}

Modules

commands

Running commandline commands.

intermediate_build

Creating the intermediate build binary.

parse

Finding and parsing the input files.

Structs

CodegenConfig

Runtime options for code generation. Copied from Yang.

Functions

generate_code

Generates an intermediate binary from the given file and runs it. If no file is specified, then it will search for a yin.md file in the current directory.

generate_default_code

Generates an intermediate binary from the given file and runs it with default codegen settings. Recommended for automatic Cargo builds.

generate_yin_code

Generates code specifically for Yin.