Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/libraries/parsec/examples/Henk/Main.hs

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


----------------------------------------------------------------
-- Henk
-- Copyright 2000, Jan-Willem Roorda
----------------------------------------------------------------
module Main where

import Text.ParserCombinators.Parsec

import HenkParser


welcome = "__   __ ______ __   __ ____   __________________________________________\n"++
          "||   || ||  || ||\\  || ||//   Henk 2000: Based on Pure Type Systems     \n"++
          "||___|| ||_|   ||\\\\ || ||\\\\                                             \n"++
          "||---|| ||-|__ || \\\\||        WWW http://www.students.cs.uu.nl/~jwroorda\n"++
          "||   || ||__||                Report bugs to: jwroorda@math.uu.nl       \n"++
          "||   || Version: Jan 2000     __________________________________________\n\n"



test fname     
        = do{ putStr welcome          
            ; result <- parseFromFile program (root ++ fname ++ ".h")
            ; case result of              
                Left err -> do{ putStr "parse error at: "
                              ; print err
                              }
                Right x  -> print x          
            }
        where
          root = ""


main = test "test"

 

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.