Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis15/src/compiler/cxx-util/gen-exec-util.sml
ViewVC logotype

View of /branches/vis15/src/compiler/cxx-util/gen-exec-util.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3916 - (download) (annotate)
Sat May 28 12:01:02 2016 UTC (2 years, 9 months ago) by jhr
File size: 897 byte(s)
  Working on merge: code generation
(* gen-exec-util.sml
 *
 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
 *
 * COPYRIGHT (c) 2016 The University of Chicago
 * All rights reserved.
 *)

structure GenExecUtil : sig

  (* generate the header part of the C++ source file for standalone executables *)
    val execHead : CodeOutput.t * (string * string) list -> unit

  (* generate the footer part of the C++ source file for standalone executables *)
    val execFoot : CodeOutput.t * (string * string) list -> unit

  end = struct

    structure Out = CodeOutput
    structure CL = CLang

    fun execHead (outS, substitutions) = (
	  Out.decl outS (CL.verbatimDcl [Fragments.execHead] substitutions);
	  Out.decl outS (CL.verbatimDcl [Fragments.nrrdSaveHelper] substitutions))

    fun execFoot (outS, substitutions) =
	  Out.decl outS (CL.verbatimDcl [Fragments.execFoot] substitutions)

  end

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