From eff2a22018a16ddc8841f1850a7b8789debc065b Mon Sep 17 00:00:00 2001 From: Able Date: Thu, 5 Dec 2024 11:03:07 -0600 Subject: [PATCH] begin work on hblang2 --- sysdata/programs/hblang2/README.md | 5 +++++ sysdata/programs/hblang2/meta.toml | 11 +++++++++++ sysdata/programs/hblang2/src/main.hb | 5 +++++ 3 files changed, 21 insertions(+) create mode 100644 sysdata/programs/hblang2/README.md create mode 100644 sysdata/programs/hblang2/meta.toml create mode 100644 sysdata/programs/hblang2/src/main.hb diff --git a/sysdata/programs/hblang2/README.md b/sysdata/programs/hblang2/README.md new file mode 100644 index 00000000..76c4c85b --- /dev/null +++ b/sysdata/programs/hblang2/README.md @@ -0,0 +1,5 @@ +# hblang² +The hblang² or hblang2 compiler is intended to compile hblang to hbvm bytecode while also being written in hblang. + +This is the first step in bootstrapping ableOS. + diff --git a/sysdata/programs/hblang2/meta.toml b/sysdata/programs/hblang2/meta.toml new file mode 100644 index 00000000..44ac57de --- /dev/null +++ b/sysdata/programs/hblang2/meta.toml @@ -0,0 +1,11 @@ +[package] +name = "hblang2" +authors = [""] + +[dependants.libraries] + +[dependants.binaries] +hblang.version = "1.0.0" + +[build] +command = "hblang src/main.hb" diff --git a/sysdata/programs/hblang2/src/main.hb b/sysdata/programs/hblang2/src/main.hb new file mode 100644 index 00000000..8401ebbc --- /dev/null +++ b/sysdata/programs/hblang2/src/main.hb @@ -0,0 +1,5 @@ +stn := @use("stn") + +main := fn(): int { + return 0 +}