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

6
.gitignore vendored
View file

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

View file

@ -22,6 +22,8 @@ impl Codegen {
} }
pub fn gen(&mut self, irs: Vec<IR>) { 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 { for module in MODULE_INCLUDES {
self.emit(format!("#include {}\n", module)); self.emit(format!("#include {}\n", module));
} }