Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Nov 1, 2024
1 parent 7370e50 commit ffcd2ee
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ eval @inspect(sixSoles())
[ [Goto The Playground](https://inet.xieyuheng.com/playground/aW1wb3J0IHsgTGlzdCB9IGZyb20gImh0dHBzOi8vY29kZS1vZi1pbmV0LWpzLmZpZGIuYXBwL3N0ZC9kYXRhdHlwZS9MaXN0LmkiCgovLyBDb25jYXRlbmF0aW9uIG9mIGxpc3RzIGlzIHBlcmZvcm1lZCBpbiBsaW5lYXIgdGltZQovLyB3aXRoIHJlc3BlY3QgdG8gaXRzIGZpcnN0IGFyZ3VtZW50LgovLyBDb25zdGFudCB0aW1lIGNvbmNhdGVuYXRpb24gaXMgcG9zc2libGUKLy8gd2l0aCBkaWZmZXJlbmNlLWxpc3RzOiB0aGUgaWRlYSBjb25zaXN0cyBpbgovLyBwbHVnZ2luZyB0aGUgZnJvbnQgb2YgdGhlIHNlY29uZCBhcmd1bWVudAovLyBhdCB0aGUgYmFjayBvZiB0aGUgZmlyc3Qgb25lLgoKdHlwZSBEaWZmTGlzdChFbGVtZW50OiBAVHlwZSkKCm5vZGUgZGlmZigKICBmcm9udDogTGlzdCgnQSksCiAgLS0tLS0tLQogIGJhY2s6IExpc3QoJ0EpLAogIHZhbHVlITogRGlmZkxpc3QoJ0EpLAopCgpub2RlIGRpZmZBcHBlbmQoCiAgdGFyZ2V0ITogRGlmZkxpc3QoJ0EpLAogIHJlc3Q6IERpZmZMaXN0KCdBKQogIC0tLS0tLS0tCiAgcmVzdWx0OiBEaWZmTGlzdCgnQSkKKQoKbm9kZSBkaWZmT3BlbigKICB0YXJnZXQhOiBEaWZmTGlzdCgnQSksCiAgbmV3QmFjazogTGlzdCgnQSkKICAtLS0tLS0tLS0tCiAgb2xkQmFjazogTGlzdCgnQSkKKQoKcnVsZSBkaWZmQXBwZW5kKHRhcmdldCEsIHJlc3QsIHJlc3VsdCkKICAgICBkaWZmKGZyb250LCBiYWNrLCB2YWx1ZSEpIHsKICBsZXQgbmV3QmFjaywgdmFsdWUgPSBkaWZmKGZyb250KQogIEBjb25uZWN0KHZhbHVlLCByZXN1bHQpCiAgZGlmZk9wZW4ocmVzdCwgbmV3QmFjaywgYmFjaykKfQoKcnVsZSBkaWZmT3Blbih0YXJnZXQhLCBuZXdCYWNrLCBvbGRCYWNrKQogICAgIGRpZmYoZnJvbnQsIGJhY2ssIHZhbHVlISkgewogIEBjb25uZWN0KGJhY2ssIG5ld0JhY2spCiAgQGNvbm5lY3QoZnJvbnQsIG9sZEJhY2spCn0KCi8vIFRFU1QKCmltcG9ydCB7IGNvbnMgfSBmcm9tICJodHRwczovL2NvZGUtb2YtaW5ldC1qcy5maWRiLmFwcC9zdGQvZGF0YXR5cGUvTGlzdC5pIgoKdHlwZSBUcml2aWFsCgpub2RlIHNvbGUoLS0gdmFsdWUhOiBUcml2aWFsKQoKZnVuY3Rpb24gdHdvVHdvU29sZXMoKTogRGlmZkxpc3QoVHJpdmlhbCkgewogIGxldCBmcm9udCwgYmFjaywgdmFsdWUxID0gZGlmZigpCiAgQGNvbm5lY3QoZnJvbnQsIGNvbnMoc29sZSgpLCBjb25zKHNvbGUoKSwgYmFjaykpKQogIGxldCBmcm9udCwgYmFjaywgdmFsdWUyID0gZGlmZigpCiAgQGNvbm5lY3QoZnJvbnQsIGNvbnMoc29sZSgpLCBjb25zKHNvbGUoKSwgYmFjaykpKQogIHJldHVybiBkaWZmQXBwZW5kKHZhbHVlMSwgdmFsdWUyKQp9CgpldmFsIEBpbnNwZWN0KEBydW4odHdvVHdvU29sZXMoKSkpCmV2YWwgQGluc3BlY3QodHdvVHdvU29sZXMoKSk) ]

```inet
import { List } from "https://code-of-inet-js.fidb.app/std/datatype/List.i"
import { List } from "https://code-of-inet-js.xieyuheng.com/std/datatype/List.i"
// Concatenation of lists is performed in linear time
// with respect to its first argument.
Expand Down Expand Up @@ -185,7 +185,7 @@ rule diffOpen(target!, newBack, oldBack)
// TEST
import { cons } from "https://code-of-inet-js.fidb.app/std/datatype/List.i"
import { cons } from "https://code-of-inet-js.xieyuheng.com/std/datatype/List.i"
type Trivial
Expand Down
10 changes: 5 additions & 5 deletions docs/articles/programming-with-interaction-nets.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ to import definitions from other module.
import {
Nat, zero, add1, add,
one, two, three,
} from "https://code-of-inet-js.fidb.app/std/datatype/Nat.i"
} from "https://code-of-inet-js.xieyuheng.com/std/datatype/Nat.i"
node natErase(
target!: Nat
Expand Down Expand Up @@ -794,7 +794,7 @@ rule append(target!, rest, result) cons(head, tail, value!) {
cons(head, append(tail, rest), result)
}
import { Nat, zero } from "https://code-of-inet-js.fidb.app/std/datatype/Nat.i"
import { Nat, zero } from "https://code-of-inet-js.xieyuheng.com/std/datatype/Nat.i"
function sixZeros(): List(Nat) {
return append(
Expand Down Expand Up @@ -836,7 +836,7 @@ the relationship between all nodes is symmetric.
[Goto the playground of `DiffList` and `(diffAppend)`](https://inet.xieyuheng.com/playground/aW1wb3J0IHsgTGlzdCB9IGZyb20gImh0dHBzOi8vY29kZS1vZi1pbmV0LWpzLmZpZGIuYXBwL3N0ZC9kYXRhdHlwZS9MaXN0LmkiCgp0eXBlIERpZmZMaXN0KEVsZW1lbnQ6IEBUeXBlKQoKbm9kZSBkaWZmKAogIGZyb250OiBMaXN0KCdBKSwKICAtLS0tLS0tCiAgYmFjazogTGlzdCgnQSksCiAgdmFsdWUhOiBEaWZmTGlzdCgnQSksCikKCm5vZGUgZGlmZkFwcGVuZCgKICB0YXJnZXQhOiBEaWZmTGlzdCgnQSksCiAgcmVzdDogRGlmZkxpc3QoJ0EpCiAgLS0tLS0tLS0KICByZXN1bHQ6IERpZmZMaXN0KCdBKQopCgpub2RlIGRpZmZPcGVuKAogIHR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inet-js.fidb.app/std/datatype/List.i"
import { List } from "https://code-of-inet-js.xieyuheng.com/std/datatype/List.i"
type DiffList(Element: @Type)
Expand Down Expand Up @@ -874,8 +874,8 @@ rule diffOpen(target!, newBack, oldBack)
@connect(front, oldBack)
}
import { Nat, zero } from "https://code-of-inet-js.fidb.app/std/datatype/Nat.i"
import { cons } from "https://code-of-inet-js.fidb.app/std/datatype/List.i"
import { Nat, zero } from "https://code-of-inet-js.xieyuheng.com/std/datatype/Nat.i"
import { cons } from "https://code-of-inet-js.xieyuheng.com/std/datatype/List.i"
function twoTwoZeros(): DiffList(Nat) {
let front, back, value1 = diff()
Expand Down
10 changes: 5 additions & 5 deletions docs/articles/反应网编程.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ eval max(two(), three())
import {
Nat, zero, add1, add,
one, two, three,
} from "https://code-of-inet-js.fidb.app/std/datatype/Nat.i"
} from "https://code-of-inet-js.xieyuheng.com/std/datatype/Nat.i"
node natErase(
target!: Nat
Expand Down Expand Up @@ -768,7 +768,7 @@ rule append(target!, rest, result) cons(head, tail, value!) {
cons(head, append(tail, rest), result)
}
import { Nat, zero } from "https://code-of-inet-js.fidb.app/std/datatype/Nat.i"
import { Nat, zero } from "https://code-of-inet-js.xieyuheng.com/std/datatype/Nat.i"
function sixZeros(): List(Nat) {
return append(
Expand Down Expand Up @@ -806,7 +806,7 @@ eval sixZeros()
[去 `DiffList` 与 `(diffAppend)` 的演算场](https://inet.xieyuheng.com/playground/aW1wb3J0IHsgTGlzdCB9IGZyb20gImh0dHBzOi8vY29kZS1vZi1pbmV0LWpzLmZpZGIuYXBwL3N0ZC9kYXRhdHlwZS9MaXN0LmkiCgp0eXBlIERpZmZMaXN0KEVsZW1lbnQ6IEBUeXBlKQoKbm9kZSBkaWZmKAogIGZyb250OiBMaXN0KCdBKSwKICAtLS0tLS0tCiAgYmFjazogTGlzdCgnQSksCiAgdmFsdWUhOiBEaWZmTGlzdCgnQSksCikKCm5vZGUgZG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5lY3QoZnJvbnQsIGNvbnMoemVybygpLCBjb25zKHplcm8oKSwgYmFjaykpKQogIHJldHVybiBkaWZmQXBwZW5kKHZhbHVlMSwgdmFsdWUyKQp9CgpldmFsIHR3b1R3b1plcm9zKCk)

```
import { List } from "https://code-of-inet-js.fidb.app/std/datatype/List.i"
import { List } from "https://code-of-inet-js.xieyuheng.com/std/datatype/List.i"
type DiffList(Element: @Type)
Expand Down Expand Up @@ -844,8 +844,8 @@ rule diffOpen(target!, newBack, oldBack)
@connect(front, oldBack)
}
import { Nat, zero } from "https://code-of-inet-js.fidb.app/std/datatype/Nat.i"
import { cons } from "https://code-of-inet-js.fidb.app/std/datatype/List.i"
import { Nat, zero } from "https://code-of-inet-js.xieyuheng.com/std/datatype/Nat.i"
import { cons } from "https://code-of-inet-js.xieyuheng.com/std/datatype/List.i"
function twoTwoZeros(): DiffList(Nat) {
let front, back, value1 = diff()
Expand Down
2 changes: 1 addition & 1 deletion src/command-line/commands/Run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Run extends Command<Args, Opts> {
``,
`Run a URL:`,
``,
blue(` ${runner.name} ${this.name} https://code-of-inet.fidb.app/std/datatype/Nat.test.i`),
blue(` ${runner.name} ${this.name} https://code-of-inet.xieyuheng.com/std/datatype/Nat.test.i`),

``,
].join("\n")
Expand Down

0 comments on commit ffcd2ee

Please sign in to comment.