summaryrefslogtreecommitdiff
path: root/src/Main.hs
blob: 0356fee88c4140951270219c1647ecf8efb59886 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- vim: et ts=2 sw=2 ai:
module Main where

import Prelude hiding(lex)

import SPL.Syntax
import SPL.Lex

main :: IO ()
main = do
  contents <- readFile "test/example1.spl"
  putStrLn $ (show . result) contents
  where
    result :: String -> Maybe [Token]
    result = lex