-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type variable -> var variable: Type closes #310
- Loading branch information
Showing
14 changed files
with
563 additions
and
687 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
namespace debug; | ||
|
||
|| Dump any value to stdout | ||
export extern fun dump(any value) > void; | ||
export extern fun dump(value: any) > void; | ||
|
||
| Parse `source` and return the abstract syntax tree in JSON | ||
| @param source the buzz source | ||
| @param script name (used to fetch eventual extern functions) | ||
| @return AST as JSON | ||
| TODO: reactivate | ||
| export extern fun ast(str source, str scriptName) > str !> CompileError; | ||
| export extern fun ast(source: str, scriptName: str) > str !> CompileError; |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
namespace ffi; | ||
|
||
export fun cstr(str string) => "{string}\0"; | ||
export fun cstr(string: str) => "{string}\0"; | ||
|
||
export object FFITypeMismatchError { | ||
str message = "Provided buzz value type does not match expected FFI type", | ||
message: str = "Provided buzz value type does not match expected FFI type", | ||
} | ||
|
||
export object FFIZigTypeParseError { | ||
str message = "Could not parse zig type", | ||
message: str = "Could not parse zig type", | ||
} | ||
|
||
export extern fun alignOf(str zigType) > int; | ||
export extern fun alignOf(zigType: str) > int; | ||
|
||
export extern fun sizeOf(str zigType) > int; | ||
export extern fun sizeOf(zigType: str) > int; | ||
|
||
export extern fun sizeOfStruct(type structType) > int; | ||
export extern fun sizeOfStruct(structType: type) > int; | ||
|
||
export extern fun alignOfStruct(type structType) > int; | ||
export extern fun alignOfStruct(structType: type) > int; |
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
Oops, something went wrong.