| Crates.io | pythonic |
| lib.rs | pythonic |
| version | 0.3.0 |
| created_at | 2016-06-03 18:14:17.975579+00 |
| updated_at | 2016-06-03 20:38:56.680056+00 |
| description | pythonic is a Rust AST builder that generates Python |
| homepage | |
| repository | https://git.cmacinfo.com/chris/pythonic |
| max_upload_size | |
| id | 5275 |
| size | 44,075 |
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")