Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /tests/trunk/bugs/tests.post-110.63/bug197/bug197.sml
ViewVC logotype

View of /tests/trunk/bugs/tests.post-110.63/bug197/bug197.sml

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2463 - (download) (annotate)
Sat Apr 28 21:19:47 2007 UTC (12 years ago) by gkuan
File size: 587 byte(s)
missing bug tests subdirectories
(* bug.197 *)
(* exportFn image size *)

use "load.sml";
open ParseGen;

fun main (argv, env) =
    let val argc = length argv
        val prog = hd argv
     in if (argc <> 2) then
            outputc std_out ("Usage: " ^ prog ^ " file\n")
        else let val file = hd (tl argv)
              in parseGen file
                  handle Io s =>
                      outputc std_out
                          (prog ^ ": Couldn't open file: "
                           ^ file ^ "\n")
             outputc std_out "\n")

exportFn ("smlyacc", main);

ViewVC Help
Powered by ViewVC 1.0.0