diff options
-rw-r--r-- | Fractran/Parser.hs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Fractran/Parser.hs b/Fractran/Parser.hs new file mode 100644 index 0000000..7cbea11 --- /dev/null +++ b/Fractran/Parser.hs @@ -0,0 +1,19 @@ +module Parser ( + FractranProgram(..), + + parseFractran + ) where + + +import Text.Combinators.Parsec + + + +data FractranProgram = FractranProgram { fractions :: [(Int,Int)] } + + + +parseFractran :: String -> Either ParseError FractranProgram +parseFractran = parse fractran "error" + + |