add scanner.c to build.rs
@@ -10,14 +10,9 @@ fn main() {
let parser_path = src_dir.join("parser.c");
c_config.file(&parser_path);
- // If your language uses an external scanner written in C,
- // then include this block of code:
-
- /*
let scanner_path = src_dir.join("scanner.c");
c_config.file(&scanner_path);
println!("cargo:rerun-if-changed={}", scanner_path.to_str().unwrap());
- */
c_config.compile("parser");
println!("cargo:rerun-if-changed={}", parser_path.to_str().unwrap());
