aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-03-10 18:02:08 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-03-10 18:02:08 +0100
commitf671ecc40626e9fbac452981a87636b6f00d7e15 (patch)
tree45c8e77df49016b50ef5b5b66fd80071a6d17821
parent225cd164c8307d39d6e7f4881253ef1de66469b6 (diff)
downloadsylt-f671ecc40626e9fbac452981a87636b6f00d7e15.tar.gz
rename main
-rw-r--r--src/compiler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index e83c269..0754a1e 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -1781,7 +1781,7 @@ impl Compiler {
}
pub(crate) fn compile(&mut self, name: &str, file: &Path, functions: &[(String, RustFunction)]) -> Result<Prog, Vec<Error>> {
- let main = Variable::new("/main/", false, Type::Void);
+ let main = Variable::new("/preamble", false, Type::Void);
let slot = self.define(main).unwrap();
self.frame_mut().stack[slot].read = true;