@@ -41,9 +41,12 @@ type OpTable = Map.Map String (Int, Assoc)
42type IParser a = ParsecT String OpTable (State SourcePos) a
42type IParser a = ParsecT String OpTable (State SourcePos) a
44+iParse :: IParser a -> String -> Either ParseError a
45+iParse = iParseWithTable "" Map.empty
44−iParse :: IParser a -> SourceName -> String -> Either ParseError a
47+iParseWithTable :: SourceName -> OpTable -> IParser a -> String -> Either ParseError a
45−iParse aParser source_name input =
48+iParseWithTable sourceName table aParser input =
46− runIndent source_name $ runParserT aParser () source_name input
49+ runIndent sourceName $ runParserT aParser table sourceName input
48backslashed :: IParser Char
51backslashed :: IParser Char
49backslashed = do { char '\\'; c <- anyChar
52backslashed = do { char '\\'; c <- anyChar