-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It is now possible to consume zigSelf as a package using the Zig build system. main.zig and the test harness dogfood this.
- Loading branch information
Showing
7 changed files
with
59 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) 2024, sin-ack <sin-ack@protonmail.com> | ||
// | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
//! Tokenizer and parser for zigSelf. | ||
|
||
pub const ast = @import("language/ast.zig"); | ||
pub const ASTPrinter = @import("language/ASTPrinter.zig"); | ||
pub const Location = @import("language/Location.zig"); | ||
pub const LocationRange = @import("language/LocationRange.zig"); | ||
pub const Parser = @import("language/Parser.zig"); | ||
pub const Range = @import("language/Range.zig"); | ||
pub const Script = @import("language/Script.zig"); | ||
pub const Token = @import("language/Token.zig"); | ||
pub const Tokenizer = @import("language/Tokenizer.zig"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2024, sin-ack <sin-ack@protonmail.com> | ||
// | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
//! zigSelf's runtime facilities, including the virtual machine, | ||
//! bytecode compiler, garbage collector, and primitives. | ||
|
||
pub const Activation = @import("runtime/Activation.zig"); | ||
pub const Actor = @import("runtime/Actor.zig"); | ||
pub const ByteArray = @import("runtime/ByteArray.zig"); | ||
pub const Heap = @import("runtime/Heap.zig"); | ||
pub const SourceRange = @import("runtime/SourceRange.zig"); | ||
pub const VirtualMachine = @import("runtime/VirtualMachine.zig"); | ||
pub const bytecode = @import("runtime/bytecode.zig"); | ||
pub const interpreter = @import("runtime/interpreter.zig"); | ||
pub const map = @import("runtime/map.zig"); | ||
pub const object = @import("runtime/object.zig"); | ||
pub const value = @import("runtime/value.zig"); | ||
pub const primitives = @import("runtime/primitives.zig"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) 2024, sin-ack <sin-ack@protonmail.com> | ||
// | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
//! zigSelf is an implementation of the Self programming language in Zig. | ||
//! Below is the (currently-unstable) public API surface. | ||
//! | ||
//! See src/main.zig for an example of how to use the zigSelf virtual machine. | ||
|
||
pub const language = @import("language.zig"); | ||
pub const runtime = @import("runtime.zig"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters