【发布时间】:2011-06-15 04:57:34
【问题描述】:
我需要创建一个绑定到标准输入流的 lexer 的新实例。
但是,当我输入
val lexer = makeLexer( fn n => inputLine( stdIn ) );
我收到一个我不明白的错误:
stdIn:1.5-11.13 Error: operator and operand don't agree [tycon mismatch]
operator domain: int -> string
operand: int -> string option
in expression:
(makeLexer 是我源代码中的函数名)
【问题讨论】: