Parsec ã®ä½¿ãæ¹ã®å®ä¾ããªããã¨æ¤ç´¢ãã¦ããããã¤ãã®ãã¼ã¸ãè¦ã¤ããã Simple Parsec Example: HTMangL Parsec ã使ã£ã¦ Haskell ã® Birs-style ã®ææ¸ã®ãã¡ãã³ã¼ãé¨åã« HTML ã®ã¿ã°ãã¤ããæ´ã«ç¹æ®æåãã¨ã¹ã±ã¼ã表ç¾ã«ç½®ãæããã¨ããããã°ã©ã ã ãParsec ã®åºæ¬çãªä½¿ãæ¹ããããä¸ã«ããããããªãã¯ããã¯ãæ´è½ã¦ãã¦é¢ç½ãã å®ã¯ãååã¾ã§ã®æ°ååã®è¨äºã¯ããã®ããã°ã©ã ãèªã¿ããªãããã®æºåã ã£ãã ã³ã¼ãé¨åã ããæãåºãããã®ã次ã«ç¤ºãã module Main where import Text.ParserCombinators.Parsec eol = newline <|> (eof >> return '\n') tilEOL = manyTill (noneOf "\n") eol codeLi
{{#tags}}- {{label}}
{{/tags}}