blob: d1994bb6f46b41ce2e2253af43e176cac6465c65 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
extern crate syntex;
extern crate syntex_syntax;
mod ext;
#[path="../../src/definitions.rs"]
pub mod definitions;
use std::path::Path;
fn main() {
let src = &Path::new("../src/table.rs.in");
let dst = &Path::new("../src/table.rs");
let mut registry = syntex::Registry::new();
ext::register(&mut registry);
registry.expand("state_table", src, dst);
}
|