Add usage message. Add example program. Update copyright year.
Chris Pressey
10 years ago
4 | 4 |
|
5 | 5 |
-----------------------------------------------------------------------------
|
6 | 6 |
|
7 | |
Copyright (c)2008-2012 Chris Pressey, Cat's Eye Technologies.
|
|
7 |
Copyright (c)2008-2015 Chris Pressey, Cat's Eye Technologies.
|
8 | 8 |
All rights reserved.
|
9 | 9 |
|
10 | 10 |
The authors intend this Report to belong to the entire Quylthulg
|
|
21 | 21 |
|
22 | 22 |
-----------------------------------------------------------------------------
|
23 | 23 |
|
24 | |
Copyright (c)2008-2012 Chris Pressey, Cat's Eye Technologies.
|
|
24 |
Copyright (c)2008-2015 Chris Pressey, Cat's Eye Technologies.
|
25 | 25 |
All rights reserved.
|
26 | 26 |
|
27 | 27 |
Redistribution and use in source and binary forms, with or without
|
|
0 |
{*[SQR][*{X}*{X}*]}{*[X][5]}{SQR}
|
3 | 3 |
import Qlzqqlzuup
|
4 | 4 |
|
5 | 5 |
main = do
|
6 | |
[fileName] <- getArgs
|
7 | |
c <- readFile fileName
|
8 | |
putStr $ showRun c
|
|
6 |
args <- getArgs
|
|
7 |
case args of
|
|
8 |
[fileName] -> do
|
|
9 |
c <- readFile fileName
|
|
10 |
putStrLn $ showRun c
|
|
11 |
return ()
|
|
12 |
_ -> do
|
|
13 |
putStrLn "Usage: qlzqqlzuup <filename.quylthulg>"
|
0 | 0 |
--
|
1 | |
-- Copyright (c)2008-2012 Chris Pressey, Cat's Eye Technologies.
|
|
1 |
-- Copyright (c)2008-2015 Chris Pressey, Cat's Eye Technologies.
|
2 | 2 |
-- All rights reserved.
|
3 | 3 |
--
|
4 | 4 |
-- Redistribution and use in source and binary forms, with or without
|
|
30 | 30 |
--
|
31 | 31 |
|
32 | 32 |
--
|
33 | |
-- Qlzqqlzuup.hs v2011.0517
|
|
33 |
-- Qlzqqlzuup.hs revision 2015.0101
|
34 | 34 |
--
|
35 | 35 |
-- 'Qlzqqlzuup, the Lord of Flesh': Reference interpreter for
|
36 | 36 |
-- The Quylthulg Programming Language
|