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

SCM Repository

[diderot] View of /branches/charisee/src/compiler/gen/opt/check-spec.sml
ViewVC logotype

View of /branches/charisee/src/compiler/gen/opt/check-spec.sml

Parent Directory Parent Directory | Revision Log Revision Log

Revision 1484 - (download) (annotate)
Sun Sep 4 14:35:20 2011 UTC (10 years, 1 month ago) by jhr
Original Path: trunk/src/compiler/gen/opt/check-spec.sml
File size: 725 byte(s)
  Created a compiler/gen directory to hold code for the generation tools.  Moved
  compiler/IL/gen to compiler/gen/il and created compiler/gen/opt for Charisee's tool.
(* check-spec.sml
 * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * All rights reserved.
 * This is a stub file that will eventually be replaced by a typechecker for the
 * rewrite rules.

structure CheckSpec =

    type var = Atom.atom
    type oper = Atom.atom

    datatype specification = datatype ParseTree.specification

    datatype rule = datatype ParseTree.rule

    datatype pattern = datatype ParseTree.pattern

    fun check (errStrm, spec) = spec

    val varToString = Atom.toString

    val sameOp = Atom.same
    val compareOp = Atom.compare
    val opToString = Atom.toString

  (* finite maps with variable keys *)
    structure VMap = AtomMap


ViewVC Help
Powered by ViewVC 1.0.0