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.obsolete/bug631.sml
ViewVC logotype

View of /tests/trunk/bugs/tests.obsolete/bug631.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2460 - (download) (annotate)
Sat Apr 28 20:18:10 2007 UTC (12 years, 1 month ago) by gkuan
File size: 476 byte(s)
(* bug631.sml *)
(* PrintVal can't print a value of the Ast type *)

structure Interface = struct
  local
    open Compiler.Compile Compiler.Environment
  in fun ast name =
	 let val f = TextIO.openIn name
	     val source = Compiler.Source.newSource (name,0,f,false,
                             Compiler.ErrorMsg.defaultConsumer())
	       
	  in parse source
	 end
  end
end;

				(* return ast of this file *)
Interface.ast "/home/sml/Dev/tests/bugs/tests/bug631.sml";  


root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0