Skip to content

Commit

Permalink
Stmt
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Nov 15, 2023
1 parent aecd078 commit 3934f1c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 22 deletions.
21 changes: 0 additions & 21 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,7 @@
# stmt

DefinePlace

DefineTransition

Run

```
run {
place input: Complaint = [{}, {}, ...]
(input) -> [register] -> (c1, c2)
(c1) -> [sendQuestionnaire] -> (c3)
(c3) -> [processQuestionnaire] -> (c5)
(c3) -> [timeout] -> (c5)
(c5, c6) -> [archive] -> (output)
(c2) -> <evaluate> -> (c6, c7)
(c5, c7) -> [processComplaint] -> (c5, c8)
(c8) -> <checkProcessing> -> (c6, c7)
}
```

# net

[net] TransitionEntry -- has `subnet`
Expand Down
7 changes: 7 additions & 0 deletions src/lang/stmt/Stmt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export type Stmt =
| DefineTransition

export type DefineTransition = {
"@type": "Stmt"
"@kind": "DefineTransition"
}
1 change: 1 addition & 0 deletions src/lang/stmt/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Stmt"
2 changes: 1 addition & 1 deletion src/loader/Loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class Loader {
const mod = createMod({
loader: this,
url,
// text,
text,
// stmts,
})

Expand Down

0 comments on commit 3934f1c

Please sign in to comment.