Skip to content

carolynzech/paralegal-compiler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paralegal-compiler

A compiler for Paralegal's Controlled Natural Language (CNL) policies.

By default this generates a Rust namespace (mod) that contains a function check which, when called, enforces your policy. You should use the framework in paralegal_policy to create a suitable binary that calls this function. It depends on the crates paralegal_policy and anyhow.

Alternatively you may use the --bin argument, which will instead create a Rust source file with a main function and necessary boilerplate to call the policy. The file created with this method additionally depends on the clap crate with the derive feature enabled.

Usage

Install the compiler with cargo install, then run it as paralegal-compiler.

For more information use --help.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 91.2%
  • Handlebars 5.5%
  • Shell 3.3%