Skip to content

Commit

Permalink
remove lang1
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Aug 5, 2024
1 parent 5e22213 commit 7ab0dcb
Show file tree
Hide file tree
Showing 52 changed files with 10 additions and 1,049 deletions.
16 changes: 1 addition & 15 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
将 explicit-substitution 从 lambda 中分离出来

# 有待验证的假设

在 explicit-substitution 中实验,然后开始 cicada。

-`assert-equal` 验证基于 `Exp` 的 definitional 等价关系。
- 验证基于 `Exp` 的递归函数之间的 definitional 等价关系。
- 验证基于 `Exp` 的 dependent type 类型检查器。
- 在实现 explicit-substitution 时避免全局的 `globalFreshen`

# lang1

[lang1] 支持 `(assert-equal)``(assert-not-equal)`
[lang1] 支持直接递归函数与相互递归函数,不能判断等价的地方就不判断。
rename lang0 to lang

# lang0

Expand Down
14 changes: 0 additions & 14 deletions docs/lang1/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions docs/lang1/examples/boolean.scm

This file was deleted.

10 changes: 0 additions & 10 deletions docs/lang1/examples/boolean.scm.out

This file was deleted.

Empty file removed docs/lang1/examples/cons.scm
Empty file.
28 changes: 0 additions & 28 deletions docs/lang1/examples/nat-church.scm

This file was deleted.

8 changes: 0 additions & 8 deletions docs/lang1/examples/nat-church.scm.out

This file was deleted.

3 changes: 0 additions & 3 deletions docs/lang1/tests/compose.scm

This file was deleted.

16 changes: 0 additions & 16 deletions docs/lang1/tests/import.scm

This file was deleted.

3 changes: 0 additions & 3 deletions docs/lang1/tests/import.scm.out

This file was deleted.

1 change: 0 additions & 1 deletion docs/lang1/tests/invalid-name.error.scm

This file was deleted.

5 changes: 0 additions & 5 deletions docs/lang1/tests/invalid-name.error.scm.err

This file was deleted.

2 changes: 0 additions & 2 deletions docs/lang1/tests/let.scm

This file was deleted.

1 change: 0 additions & 1 deletion docs/lang1/tests/let.scm.out

This file was deleted.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@
"build": "tsc",
"build:watch": "tsc --watch",
"test:node": "node --test",
"test:lang0:tests": "test-runner snapshot './bin/lambda.js lang0' 'docs/lang0/**/*.scm' --exclude 'docs/lang0/**/*.error.scm'",
"test:lang0:tests-error": "test-runner snapshot-error './bin/lambda.js lang0' 'docs/lang0/**/*.error.scm'",
"test:lang0:tests": "test-runner snapshot './bin/lambda.js run' 'docs/lang0/**/*.scm' --exclude 'docs/lang0/**/*.error.scm'",
"test:lang0:tests-error": "test-runner snapshot-error './bin/lambda.js run' 'docs/lang0/**/*.error.scm'",
"test:lang0": "npm run test:lang0:tests && npm run test:lang0:tests-error",
"test:lang1:tests": "test-runner snapshot './bin/lambda.js lang1' 'docs/lang1/**/*.scm' --exclude 'docs/lang1/**/*.error.scm'",
"test:lang1:tests-error": "test-runner snapshot-error './bin/lambda.js lang1' 'docs/lang1/**/*.error.scm'",
"test:lang1": "npm run test:lang1:tests && npm run test:lang1:tests-error",
"test": "npm run test:node && npm run test:lang0 && npm run test:lang1",
"test": "npm run test:node && npm run test:lang0",
"format": "prettier src docs --write"
},
"dependencies": {
Expand Down
57 changes: 0 additions & 57 deletions src/command-line/commands/Lang1Command.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import { run } from "../../lang0/run/index.js"
type Args = { file: string }
type Opts = {}

export class Lang0Command extends Command<Args, Opts> {
name = "lang0"
export class RunCommand extends Command<Args, Opts> {
name = "run"

description = "Run a lang0 file"
description = "Run a file"

args = { file: ty.string() }
opts = {}
Expand All @@ -20,7 +20,7 @@ export class Lang0Command extends Command<Args, Opts> {
const { blue } = this.colors

return [
`The ${blue(this.name)} command run a lang0 file.`,
`The ${blue(this.name)} command run a file.`,
``,
blue(` ${runner.name} ${this.name} <file>`),
``,
Expand Down
3 changes: 1 addition & 2 deletions src/command-line/commands/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "@xieyuheng/command-line/lib/commands/index.js"
export * from "./Lang0Command.js"
export * from "./Lang1Command.js"
export * from "./RunCommand.js"
6 changes: 1 addition & 5 deletions src/command-line/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import * as Commands from "./commands/index.js"
export function createCommandRunner(): CommandRunner {
return new CommandRunners.CommonCommandRunner({
defaultCommand: new Commands.CommonHelp(),
commands: [
new Commands.Lang0Command(),
new Commands.Lang1Command(),
new Commands.CommonHelp(),
],
commands: [new Commands.RunCommand(), new Commands.CommonHelp()],
})
}
8 changes: 0 additions & 8 deletions src/lang1/definition/Definition.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/lang1/definition/index.ts

This file was deleted.

81 changes: 0 additions & 81 deletions src/lang1/exp/Exp.ts

This file was deleted.

44 changes: 0 additions & 44 deletions src/lang1/exp/expFreeNames.ts

This file was deleted.

Loading

0 comments on commit 7ab0dcb

Please sign in to comment.