]> Joshua Wise's Git repositories - snipe.git/blobdiff - parse/parse.sml
Initial import of l4c
[snipe.git] / parse / parse.sml
index aa701c41c89903b298b0f40d0c8aae4d3fb544d0..3786421ef2388a9f3e6b9c1e1c52fa7d548651e1 100644 (file)
@@ -1,4 +1,4 @@
-(* L3 Compiler
+(* L4 Compiler
  * Parsing
  * Author: Kaustuv Chaudhuri <kaustuv+@cs.cmu.edu>
  * Modified: Frank Pfenning <fp@cs.cmu.edu>
@@ -17,10 +17,10 @@ end
 structure Parse :> PARSE =
 struct 
 
-  structure L3LrVals = L3LrValsFn (structure Token = LrParser.Token)
-  structure L3Lex = L3LexFn (structure Tokens = L3LrVals.Tokens)
-  structure L3Parse = Join (structure ParserData = L3LrVals.ParserData
-                            structure Lex = L3Lex
+  structure L4LrVals = L4LrValsFn (structure Token = LrParser.Token)
+  structure L4Lex = L4LexFn (structure Tokens = L4LrVals.Tokens)
+  structure L4Parse = Join (structure ParserData = L4LrVals.ParserData
+                            structure Lex = L4Lex
                             structure LrParser = LrParser)
 
   (* Main parsing function *)
@@ -31,9 +31,9 @@ struct
          val _ = ParseState.setfile filename (* start at position 0 in filename *)
          fun parseerror (s, p1, p2) = ErrorMsg.error (ParseState.ext (p1,p2)) s
          val lexer = LrParser.Stream.streamify
-                         (L3Lex.makeLexer (fn _ => TextIO.input instream))
+                         (L4Lex.makeLexer (fn _ => TextIO.input instream))
          (* 0 = no error correction, 15 = reasonable lookahead for correction *)
-         val (absyn, _) = L3Parse.parse(0, lexer, parseerror, ())
+         val (absyn, _) = L4Parse.parse(0, lexer, parseerror, ())
           val _ = if !ErrorMsg.anyErrors
                  then raise ErrorMsg.Error
                  else ()
This page took 0.023219 seconds and 4 git commands to generate.