Parsing data with Parsec and omitting comments
问题 I am trying to write a Haksell Parsec Parser that parses input data from a file into the LogLine datatype as follows: --Final parser that holds the indvidual parsers. final :: Parser [LogLine] final = do{ logLines <- sepBy1 logLine eol ; return logLines } --The logline token declaration logLine :: Parser LogLine logLine = do name <- plainValue -- parse the name (identifier) many1 space -- parse and throw away a space args1 <- bracketedValue -- parse the first arguments many1 space -- throw