Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spec: add a formal definition of the source language #100

Merged
merged 12 commits into from
Dec 30, 2024
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ jobs:
run: bin/passtool verify passes lang30

- name: "Check the source language grammar"
run: bin/passtool verify spec spec
run: bin/passtool verify spec specification
4 changes: 2 additions & 2 deletions koch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ proc generateModules(dir: string) =
# generate the modules:
require run(passtool, "gen-checks", "passes", "lang30", "passes/spec",
dir / "*_checks.nim")
require run(passtool, "gen-checks", "spec", "spec", "passes/spec_source",
dir / "source_checks.nim")
require run(passtool, "gen-checks", "spec", "specification",
"passes/spec_source", dir / "source_checks.nim")

proc buildSingle(args: string): bool

Expand Down
3 changes: 3 additions & 0 deletions spec/spec.md → spec/spec_old.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Phy Specification

> Note: this document is outdated an no longer authoritative. It's kept around
> for some of it's ideas/directions that haven't been formalized yet.

This document describes the semantics of the source language.

A *program* consists of a single *module*. A *module* consists of zero or more
Expand Down
Loading