Skip to content

Commit aecd078

Browse files
committed
Mod -- has text
1 parent fba2bed commit aecd078

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

TODO.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
[net] TransitionEntry -- has `subnet`
2-
31
# stmt
42

53
DefinePlace
@@ -25,6 +23,10 @@ run {
2523
}
2624
```
2725

26+
# net
27+
28+
[net] TransitionEntry -- has `subnet`
29+
2830
# exp
2931

3032
BlockStmt -- LetPlace

src/lang/mod/Mod.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ import { Definition } from "../definition"
22

33
export type Mod = {
44
url: URL
5+
text: string
56
definitions: Map<string, Definition>
67
}

src/lang/mod/createMod.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import { Mod } from "./Mod"
77

88
export function createMod(options: {
99
url: URL
10-
// text: string
10+
text: string
1111
// stmts: Array<Stmt>
1212
loader: Loader
1313
}): Mod {
1414
const mod = {
1515
loader: options.loader,
1616
url: options.url,
17-
// text: options.text,
17+
text: options.text,
1818
// stmts: options.stmts,
1919
definitions: new Map(),
2020
// builtins: new Map(),

0 commit comments

Comments
 (0)