mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
allocators and type aliases
This commit is contained in:
parent
60c743d656
commit
f05e5520f3
16 changed files with 283 additions and 121 deletions
13
src/index.ts
13
src/index.ts
|
|
@ -13,9 +13,14 @@ import { GlobalContext, parseArgs } from "./context";
|
|||
import { loadCrate } from "./loader";
|
||||
|
||||
const INPUT = `
|
||||
type A = { a: Int };
|
||||
type A = struct { a: Int };
|
||||
|
||||
type What = What;
|
||||
|
||||
type Uwu = (Int, Int);
|
||||
|
||||
function main() = (
|
||||
let a: What = 0;
|
||||
uwu();
|
||||
);
|
||||
|
||||
|
|
@ -28,7 +33,7 @@ function uwu() = (
|
|||
/*-1*/
|
||||
);
|
||||
|
||||
type B = {
|
||||
type B = struct {
|
||||
a: (Int, Int, Int, Int, Int),
|
||||
};
|
||||
|
||||
|
|
@ -59,7 +64,9 @@ function main() {
|
|||
() => {
|
||||
const start = Date.now();
|
||||
|
||||
gcx.crateLoader(gcx, "std", Span.startOfFile(file));
|
||||
if (packageName !== "std") {
|
||||
gcx.crateLoader(gcx, "std", Span.startOfFile(file));
|
||||
}
|
||||
|
||||
const tokens = tokenize(file);
|
||||
if (debug.has("tokens")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue