Add scanner to bindings

This commit is contained in:
Bruno BELANYI 2022-06-03 22:30:48 +02:00
parent c4af009a8d
commit 10dae1ab92
2 changed files with 1 additions and 3 deletions

View file

@ -9,7 +9,7 @@
"sources": [
"bindings/node/binding.cc",
"src/parser.c",
# If your language uses an external scanner, add it here.
"src/scanner.c",
],
"cflags_c": [
"-std=c99",

View file

@ -13,11 +13,9 @@ fn main() {
// 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());