diff options
Diffstat (limited to 'ABC/Assembler.dcl')
-rw-r--r-- | ABC/Assembler.dcl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ABC/Assembler.dcl b/ABC/Assembler.dcl index 6b0a585..281190d 100644 --- a/ABC/Assembler.dcl +++ b/ABC/Assembler.dcl @@ -1,5 +1,6 @@ definition module ABC.Assembler +from StdOverloaded import class toString from ABC.Machine.Def import ::Arity, ::Name, ::NrArgs, ::ArgNr, ::Instruction, ::State from ABC.Machine.AStack import ::ASrc, ::ADst from ABC.Machine.BStack import ::BSrc, ::BDst @@ -75,4 +76,7 @@ from ABC.Machine.GraphStore import ::Desc | MulI | SubI +instance toString Assembler +instance toString Statement + assemble :: Assembler -> ([Instruction], [Desc]) |