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