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 /smlnj-lib/trunk/PP/devices/string-token.sml
ViewVC logotype

View of /smlnj-lib/trunk/PP/devices/string-token.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2144 - (download) (annotate)
Thu Nov 2 16:23:11 2006 UTC (13 years, 11 months ago) by blume
File size: 326 byte(s)
moved smlnj-lib to toplevel
(* string-token.sml
 *
 * COPYRIGHT (c) 1998 Bell Labs, Lucent Technologies.
 *
 * A trivial implementation of tokens as strings w/o style information.
 *)

structure StringToken : PP_TOKEN =
  struct
    type style = unit
    type token = string
    fun string s = s
    fun style _ = ()
    fun size s = String.size s
  end

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