1 (* Externally visible aspects
of the lexer
and parser
*)
8 val init_line
: unit
-> unit
9 val next_line
: unit
-> unit
10 val error
: string * pos
* pos
-> unit
15 end (* signature INTERFACE
*)
17 functor Interface () : INTERFACE
=
22 fun init_line () = (line
:= 1)
23 fun next_line () = (line
:= !line
+ 1)
24 fun error (errmsg
,line
:pos
,_
) =
25 TextIO.output(TextIO.stdOut
,"Line " ^
(Int.toString line
) ^
": " ^ errmsg ^
"\n")
31 end (* functor INTERFACE
*)