Initial Commit

This commit is contained in:
SoraKatadzuma committed 2026-11-19 04:54:17 -06:00
commit f086abcea6
789 files changed
+149185

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
#! @file target.sakura
#! @author John Christman (sorakatadzuma@gmail.com)
#! @copyright Malunal Studios, LLC.
#! @license MIT
#!
#! Contains the intrinsics naming the platform the program was checked for, as
#! text.
#!
#! Code only for some platforms goes in `when os == linux { ... }`, or in a file
#! declared `module path when os == linux;`, since both leave out what other
#! platforms have. These give the same facts where code wants them as values.
module core;
#! The operating system the program was checked for.
#! @returns `linux`, `macos`, `windows`, `freebsd`, or `unknown`.
@intrinsic pub def os(): strview;
#! The processor the program was checked for.
#! @returns `x86_64`, `aarch64`, or `unknown`.
@intrinsic pub def arch(): strview;
#! How the program runs.
#! @returns `vm` when run by `sakura run`, or `native` as an executable.
@intrinsic pub def backend(): strview;