1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00

generate comment

This commit is contained in:
Natapat Samutpong 2022-03-12 10:38:18 +07:00
parent 2035dd115d
commit a19f118510
2 changed files with 7 additions and 1 deletions

4
.gitignore vendored
View file

@ -8,3 +8,7 @@ target/
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
# Generated by the compiler
/*.cpp
/*.out

View file

@ -22,6 +22,8 @@ impl Codegen {
}
pub fn gen(&mut self, irs: Vec<IR>) {
self.emit(format!("// Auto-generated by hazure compiler version {}\n", env!("CARGO_PKG_VERSION")));
for module in MODULE_INCLUDES {
self.emit(format!("#include {}\n", module));
}