Skip to content

Commit

Permalink
Revert "change naming convention of files -- back to lisp-case"
Browse files Browse the repository at this point in the history
This reverts commit 2ef4bc5.
  • Loading branch information
xieyuheng committed Jan 7, 2025
1 parent 16bfb41 commit 5be5c49
Show file tree
Hide file tree
Showing 22 changed files with 132 additions and 145 deletions.
2 changes: 1 addition & 1 deletion examples/builtin/run-only-top-port.i
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "../datatypes/nat.i"
require "../datatypes/Nat.i"

one one add
one one add
Expand Down
2 changes: 1 addition & 1 deletion examples/datatypes/bin.i → examples/datatypes/Bin.i
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ end
import
Nat, zero, add1,
natErase, natDup
from "./nat.i"
from "./Nat.i"

node natDouble
Nat :target!
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "./bin.i"
require "./Bin.i"

bend b1 b1 b0 // = 0b110 = 4+2 = 6
zero add1 add1 add1 add1 add1 add1 add1 ntob // 8 Nat -> 8 Bin
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "list.i"
require "List.i"

// Concatenation of lists is performed in linear time
// with respect to its first argument.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "diff-list.i"
require "trivial.i"
require "DiffList.i"
require "Trivial.i"

claim oneTwoSoles -- Trivial DiffList end

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "list.i"
require "trivial.i"
require "List.i"
require "Trivial.i"

claim sixSoles -- Trivial List end

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "nat.i"
require "nat.i"
require "nat.i" // multiple `require` is fine.
require "Nat.i"
require "Nat.i"
require "Nat.i" // Multiple `require` is fine.

zero zero add @inspect @run @inspect
two @inspect @run @inspect
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/module/define-rule-for-non-own-node.error.i
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Nat, zero, add1, add from "../datatypes/nat.i"
import Nat, zero, add1, add from "../datatypes/Nat.i"

rule zero add
(add)-addend
Expand Down
6 changes: 3 additions & 3 deletions examples/module/define-rule-for-non-own-node.error.i.err
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[checkRuleIsAboutOwnNode] To define a rule, one of the node must be owned by this module.

loading module url: examples/module/define-rule-for-non-own-node.error.i
first node module url: examples/datatypes/nat.i
second node module url: examples/datatypes/nat.i
first node module url: examples/datatypes/Nat.i
second node module url: examples/datatypes/Nat.i

[DefineRule.execute] I fail to define rule.

rule nodes: zero add

1 |import Nat, zero, add1, add from "../datatypes/nat.i"
1 |import Nat, zero, add1, add from "../datatypes/Nat.i"
2 |
3 |rule zero add
4 | (add)-addend
Expand Down
2 changes: 1 addition & 1 deletion examples/module/import.i
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import zero, one, add from "../datatypes/nat.i"
import zero, one, add from "../datatypes/Nat.i"

zero one add @inspect @run @inspect
2 changes: 1 addition & 1 deletion examples/module/require-already-defined.error.i
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
type Nat -- @Type end

require "../datatypes/nat.i"
require "../datatypes/Nat.i"
4 changes: 2 additions & 2 deletions examples/module/require-already-defined.error.i.err
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

[Require.execute] I fail to require module.

path: "../datatypes/nat.i"
path: "../datatypes/Nat.i"

1 |type Nat -- @Type end
2 |
3 |require "../datatypes/nat.i"
3 |require "../datatypes/Nat.i"
4 |
2 changes: 1 addition & 1 deletion examples/module/require.i
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
require "../datatypes/nat.i"
require "../datatypes/Nat.i"

zero one add @inspect @run @inspect
Loading

0 comments on commit 5be5c49

Please sign in to comment.