Overview  Index  Help 
SMLDoc

Parser


structure Parser : PARSER =
struct
  type context = annotationContext
  val emptyContext : context
  val addInfix : string * context -> context
  val parseFile
      : DocumentGenerationParameter.parameter ->
          context -> string -> AnnotatedAst.compileUnit
end

Author:
YAMATODANI Kiyoshi
Version:
$Id: StrParser.html,v 1.9 2007/02/17 07:01:58 kiyoshiy Exp $

 
Type detail

context

type context = annotationContext

context

     
Value detail

emptyContext

val emptyContext : context

empty context


addInfix

fun addInfix (name, context) : string * context -> context

utility function exported

Parameters:
name
the ID of infix
context
Returns:
new context extended with the name

parseFile

fun parseFile parameter context fileName
    : DocumentGenerationParameter.parameter ->
        context -> string -> AnnotatedAst.compileUnit

parses a file.

Parameters:
parameter
general parameter
context
a initial context
fileName
name of the source file
Returns:
annotated ASTs

 


Overview  Index  Help 
SMLDoc: Documentation generator for SML