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 /sml/trunk/src/cm/smlfile/skeleton.sml
ViewVC logotype

View of /sml/trunk/src/cm/smlfile/skeleton.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (download) (annotate)
Thu Jun 1 18:34:03 2000 UTC (19 years, 3 months ago) by monnier
File size: 1301 byte(s)
bring revisions from the vendor branch to the trunk
(*
 * SML source skeletons.
 *
 *   Copyright (c) 1999 by Bell Laboratories, Lucent Technologies
 *
 *   The idea of skeletons is taken from the original SC (where they were
 *   called "decl"s after one of the datatypes involved).
 *   The new definitions used here are a lot simpler than the original ones;
 *   they allow for a more succinct dependency analysis, and are easier to
 *   pickle/unpickle.  Moreover, the ast->skeleton converter has been made
 *   smarter -- resulting in smaller skeletons.
 *
 * author: Matthias Blume (blume@cs.princeton.edu)
 *
 * The copyright notices of the earlier versions are:
 *   Copyright (c) 1995 by AT&T Bell Laboratories
 *   Copyright (c) 1993 by Carnegie Mellon University,
 *                         School of Computer Science
 *                         contact: Gene Rollins (rollins+@cs.cmu.edu)
 *)
structure Skeleton = struct

    type symbol = Symbol.symbol
    type sympath = GenericVC.SymPath.path

    datatype decl =
	Bind of symbol * modExp
      | Local of decl * decl
      | Par of decl list
      | Seq of decl list
      | Open of modExp
      | Ref of SymbolSet.set

    and modExp =
	Var of sympath
      | Decl of decl list		(* implicit Seq *)
      | Let of decl list * modExp	(* implicit Seq *)
      | Ign1 of modExp * modExp
end

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