Skip to content

Commit 1142ae5

Browse files
committed
move example code to examples
1 parent 07a5c9f commit 1142ae5

File tree

110 files changed

+39
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+39
-39
lines changed

README.md

+2-2

docs/articles/programming-with-interaction-nets.md

+5-5

docs/articles/反应网编程.md

+5-5
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/std/tests/module/circular-import-1.error.i.err examples/tests/module/circular-import-1.error.i.err

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[execute / Import] I can not do circular import.
22

3-
loading module url: docs/std/tests/module/circular-import-3.error.i
4-
importing module url: docs/std/tests/module/circular-import-1.error.i
3+
loading module url: examples/tests/module/circular-import-3.error.i
4+
importing module url: examples/tests/module/circular-import-1.error.i
55

66
[execute] I fail to execute a statement.
77

docs/std/tests/module/circular-import-2.error.i.err examples/tests/module/circular-import-2.error.i.err

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[execute / Import] I can not do circular import.
22

3-
loading module url: docs/std/tests/module/circular-import-1.error.i
4-
importing module url: docs/std/tests/module/circular-import-2.error.i
3+
loading module url: examples/tests/module/circular-import-1.error.i
4+
importing module url: examples/tests/module/circular-import-2.error.i
55

66
[execute] I fail to execute a statement.
77

docs/std/tests/module/circular-import-3.error.i.err examples/tests/module/circular-import-3.error.i.err

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[execute / Import] I can not do circular import.
22

3-
loading module url: docs/std/tests/module/circular-import-2.error.i
4-
importing module url: docs/std/tests/module/circular-import-3.error.i
3+
loading module url: examples/tests/module/circular-import-2.error.i
4+
importing module url: examples/tests/module/circular-import-3.error.i
55

66
[execute] I fail to execute a statement.
77

docs/std/tests/module/circular-require-1.error.i.err examples/tests/module/circular-require-1.error.i.err

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[execute / Require] I can not do circular require.
22

3-
loading module url: docs/std/tests/module/circular-require-3.error.i
4-
requiring module url: docs/std/tests/module/circular-require-1.error.i
3+
loading module url: examples/tests/module/circular-require-3.error.i
4+
requiring module url: examples/tests/module/circular-require-1.error.i
55

66
[execute] I fail to execute a statement.
77

docs/std/tests/module/circular-require-2.error.i.err examples/tests/module/circular-require-2.error.i.err

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[execute / Require] I can not do circular require.
22

3-
loading module url: docs/std/tests/module/circular-require-1.error.i
4-
requiring module url: docs/std/tests/module/circular-require-2.error.i
3+
loading module url: examples/tests/module/circular-require-1.error.i
4+
requiring module url: examples/tests/module/circular-require-2.error.i
55

66
[execute] I fail to execute a statement.
77

docs/std/tests/module/circular-require-3.error.i.err examples/tests/module/circular-require-3.error.i.err

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[execute / Require] I can not do circular require.
22

3-
loading module url: docs/std/tests/module/circular-require-2.error.i
4-
requiring module url: docs/std/tests/module/circular-require-3.error.i
3+
loading module url: examples/tests/module/circular-require-2.error.i
4+
requiring module url: examples/tests/module/circular-require-3.error.i
55

66
[execute] I fail to execute a statement.
77

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/std/tests/module/self-import.error.i.err examples/tests/module/self-import.error.i.err

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[execute / Import] I can not do circular import.
22

3-
loading module url: docs/std/tests/module/self-import.error.i
4-
importing module url: docs/std/tests/module/self-import.error.i
3+
loading module url: examples/tests/module/self-import.error.i
4+
importing module url: examples/tests/module/self-import.error.i
55

66
[execute] I fail to execute a statement.
77

docs/std/tests/module/self-require.error.i.err examples/tests/module/self-require.error.i.err

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[execute / Require] I can not do circular require.
22

3-
loading module url: docs/std/tests/module/self-require.error.i
4-
requiring module url: docs/std/tests/module/self-require.error.i
3+
loading module url: examples/tests/module/self-require.error.i
4+
requiring module url: examples/tests/module/self-require.error.i
55

66
[execute] I fail to execute a statement.
77

docs/std/tests/statement/rule-for-non-own-node.error.i.err examples/tests/statement/rule-for-non-own-node.error.i.err

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[checkRuleIsAboutOwnNode] To define a rule, one of the node must be owned by this module.
22

3-
loading module url: docs/std/tests/statement/rule-for-non-own-node.error.i
4-
first node module url: docs/std/datatype/Nat.i
5-
second node module url: docs/std/datatype/Nat.i
3+
loading module url: examples/tests/statement/rule-for-non-own-node.error.i
4+
first node module url: examples/datatype/Nat.i
5+
second node module url: examples/datatype/Nat.i
66

77
[execute] I fail to execute a statement.
88

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"build": "tsc",
1717
"build:watch": "tsc --watch",
1818
"test:ts": "vitest --dir src --run",
19-
"test:inet-parse": "test-runner test 'node ./bin/inet-js parse --no-color' 'docs/std/**/*.i'",
20-
"test:inet-format": "test-runner test 'node ./bin/inet-js format --no-color' 'docs/std/**/*.i'",
21-
"test:inet-run": "test-runner snapshot 'node ./bin/inet-js run --no-color' 'docs/std/**/*.i' --exclude 'docs/std/**/*.error.i'",
22-
"test:inet-run-error": "test-runner snapshot-error 'node ./bin/inet-js run --no-color' 'docs/std/**/*.error.i'",
19+
"test:inet-parse": "test-runner test 'node ./bin/inet-js parse --no-color' 'examples/**/*.i'",
20+
"test:inet-format": "test-runner test 'node ./bin/inet-js format --no-color' 'examples/**/*.i'",
21+
"test:inet-run": "test-runner snapshot 'node ./bin/inet-js run --no-color' 'examples/**/*.i' --exclude 'examples/**/*.error.i'",
22+
"test:inet-run-error": "test-runner snapshot-error 'node ./bin/inet-js run --no-color' 'examples/**/*.error.i'",
2323
"test": "npm run test:ts && npm run test:inet-run && npm run test:inet-run-error",
2424
"format": "prettier src docs --write"
2525
},

src/command-line/commands/Format.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class Format extends Command<Args, Opts> {
2727
return [
2828
`Format a file:`,
2929
``,
30-
blue(` ${runner.name} ${this.name} std/datatype/Nat.test.i`),
30+
blue(` ${runner.name} ${this.name} examples/datatype/Nat.test.i`),
3131
``,
3232
].join("\n")
3333
}

src/command-line/commands/Parse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class Parse extends Command<Args, Opts> {
2626
return [
2727
`Parse a file:`,
2828
``,
29-
blue(` ${runner.name} ${this.name} std/datatype/Nat.test.i`),
29+
blue(` ${runner.name} ${this.name} examples/datatype/Nat.test.i`),
3030
``,
3131
].join("\n")
3232
}

src/command-line/commands/Run.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ export class Run extends Command<Args, Opts> {
2626
return [
2727
`Run a file:`,
2828
``,
29-
blue(` ${runner.name} ${this.name} std/datatype/Nat.test.i`),
29+
blue(` ${runner.name} ${this.name} examples/datatype/Nat.test.i`),
3030
``,
3131
`Run a URL:`,
3232
``,
33-
blue(` ${runner.name} ${this.name} https://code-of-inet.xieyuheng.com/std/datatype/Nat.test.i`),
33+
blue(` ${runner.name} ${this.name} https://code-of-inet.xieyuheng.com/examples/datatype/Nat.test.i`),
3434

3535
``,
3636
].join("\n")

0 commit comments

Comments
 (0)