Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Mark Cohen
/
thesis
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Merge Requests
0
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e4e38e72
authored
Jun 03, 2019
by
Mark Cohen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: rename trait, impl to class, instance
parent
bf7dbea6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
compiler/trait.sml → compiler/class.sml
compiler/impl.sml → compiler/instance.sml
compiler/sources.cm
compiler/
trait
.sml
→
compiler/
class
.sml
View file @
e4e38e72
File moved
compiler/i
mpl
.sml
→
compiler/i
nstance
.sml
View file @
e4e38e72
structure
I
mpl
:
sig
structure
I
nstance
:
sig
type
i
mpl
=
{
type
i
nstance
=
{
name
:
string
,
alpha
:
Ty
.
ty
,
self
:
Ty
.
ty
,
binds
:
(
string
*
AST
.
term
)
list
}
val
i
mplExpr
:
Scan
.
token
list
->
(
impl
*
Scan
.
token
list
)
Attempt
.
attempt
val
i
nstanceExpr
:
Scan
.
token
list
->
(
instance
*
Scan
.
token
list
)
Attempt
.
attempt
end
=
struct
type
i
mpl
=
{
type
i
nstance
=
{
name
:
string
,
alpha
:
Ty
.
ty
,
self
:
Ty
.
ty
,
...
...
@@ -32,8 +32,8 @@ end = struct
infix
1
\/
fun
i
mpl
Expr
ts
=
(
litKey
"i
mpl"
>>
fun
i
nstance
Expr
ts
=
(
litKey
"i
nstance"
>>
identifier
>>=
(
fn
name
=>
TyExpr
.
tyExpr
(
Scan
.
Keyword
"for"
)
>>=
(
fn
alpha
=>
litKey
"for"
>>
...
...
compiler/sources.cm
View file @
e4e38e72
...
...
@@ -18,8 +18,8 @@ Group
structure ParseUtil
structure TyExpr
structure
Trait
structure I
mpl
structure
Class
structure I
nstance
structure Parse
structure LetReduce
...
...
@@ -53,8 +53,8 @@ is
parse-util.sml
tyexpr.sml
trait
.sml
i
mpl
.sml
class
.sml
i
nstance
.sml
parse.sml
letreduce.sml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment