Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
zaoqi committed Jul 2, 2018
1 parent babbcd2 commit 8bb88cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
TypeFloat TypeDouble)}
{define-type TypeVar (U IdU String)}
{define (TypeVar? x) (or (IdU? x) (string? x))}
{define-type TypeSimple {Refine [t : Type] (not (or (: t TypeTypeVar) (: t TypeStructUnion) (: t TypeU)))}}
{define-type TypeSimple {Refine [t : Type] (not (or (: t TypeTypeVar) (: t TypeStructUnion) (: t TypeU)))}} ; 非嚴謹
{define-data Type
(TypeArrow [args : (Maybe (Listof Type))] [result : Type]) ; Maybe=>類型推導
(TypeIdC [IdC : IdC])
Expand Down Expand Up @@ -135,6 +135,7 @@
{define (compile _L_)
{with-new-LFC-ID
'||
;此處Type=>TypeSimple
{define heads '("")}
{define decls '("")}
{define globals '("")}
Expand Down

0 comments on commit 8bb88cd

Please sign in to comment.