Skip to content

Commit

Permalink
[new-syntax] std/ -- type no need : @Type
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Sep 19, 2023
1 parent 5188707 commit 660b8b3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# new-syntax

[new-syntax] `std/` -- `type` no need `: @Type`
[new-syntax] `std/` -- `rule` use pattern matching

[new-syntax] `Exp` -- `Block` has `body` and `ret`
Expand Down
2 changes: 1 addition & 1 deletion std/datatype/DiffList.i
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require "List.i"
// plugging the front of the second argument
// at the back of the first one.

type DiffList(@Type): @Type
type DiffList(Element: @Type)

node diff(
front: List('A),
Expand Down
2 changes: 1 addition & 1 deletion std/datatype/List.i
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type List: @Type
type List(Element: @Type)

node null(
--------
Expand Down
2 changes: 1 addition & 1 deletion std/datatype/Nat.i
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type Nat: @Type
type Nat

node zero(
------
Expand Down
2 changes: 1 addition & 1 deletion std/datatype/Trivial.i
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type Trivial: @Type
type Trivial

node sole(
--------
Expand Down

0 comments on commit 660b8b3

Please sign in to comment.