pythonic 0.3.0

pythonic is a Rust AST builder that generates Python
Documentation
  • Coverage
  • 0%
    0 out of 76 items documented0 out of 35 items with examples
  • Size
  • Source code size: 44.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 5.1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ChrisMacNaughton

Pythonic

Usage

Creating Hello, world in Py thon is fairly simple, although a bit verbose:

let mut program = Block::new();
program.add_statement(
  Statement::FunctionCall(
    FunctionCall::new("print", vec![
      Statement::Argument(Argument::bare("Hello, world")
    ])
  )
)

println!("{}", program);

The above Rust would print:

print("Hello, world")