Skip to content

Commit

Permalink
Use original data structure of Tiger types
Browse files Browse the repository at this point in the history
  • Loading branch information
perezzini committed Oct 11, 2017
1 parent 489f9d2 commit 100849b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tigertips.sml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ struct
type unique = unit ref
datatype Tipo = TUnit
| TNil
| TInt
| TString
| TArray of Tipo * unique
| TRecord of (string * Tipo * int) list * unique
| TFunc of Tipo list * Tipo
| TTipo of string * Tipo option ref

| TInt (* primitive, RW *)
| TString (* primitive *)
| TArray of Tipo ref * unique
| TRecord of (string * Tipo ref * int) list * unique (* int es la pos del id dentro del record *)
| TTipo of string
end

0 comments on commit 100849b

Please sign in to comment.