File tree 3 files changed +4
-6
lines changed
3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
# module system
2
2
3
- Mod -- has loader
4
3
Place and Transition -- has modId
5
4
6
5
Mod has definitions: Map<string, Definition>
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ export function createMod(options: {
9
9
url : URL
10
10
// text: string
11
11
// stmts: Array<Stmt>
12
- // loader: Loader
12
+ loader : Loader
13
13
} ) : Mod {
14
14
const mod = {
15
- // loader: options.loader,
15
+ loader : options . loader ,
16
16
url : options . url ,
17
17
// text: options.text,
18
18
// stmts: options.stmts,
Original file line number Diff line number Diff line change 1
1
import { Fetcher } from "../fetcher"
2
2
// import { execute } from "../lang/execute"
3
- import { Mod } from "../lang/mod"
4
- import { createMod } from "../lang/mod/createMod"
3
+ import { Mod , createMod } from "../lang/mod"
5
4
// import { parseStmts } from "../lang/syntax"
6
5
7
6
export class Loader {
@@ -27,7 +26,7 @@ export class Loader {
27
26
28
27
// const stmts = parseStmts(text)
29
28
const mod = createMod ( {
30
- // loader: this,
29
+ loader : this ,
31
30
url,
32
31
// text,
33
32
// stmts,
You can’t perform that action at this time.
0 commit comments