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/HTML/html-error-sig.sml
ViewVC logotype

View of /smlnj-lib/trunk/HTML/html-error-sig.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2144 - (download) (annotate)
Thu Nov 2 16:23:11 2006 UTC (12 years, 11 months ago) by blume
File size: 1482 byte(s)
moved smlnj-lib to toplevel
(* html-error-sig.sml
 *
 * COPYRIGHT (c) 1996 AT&T Research.
 *
 * This is the interface of the error functions supplied to the lexer
 * (and transitively, to HTMLElemnts).
 *)

signature HTML_ERROR =
  sig

    type context = {file : string option, line : int}

    val badStartTag : context -> string -> unit
	(* called on unrecognized start tags; the string is the tag name *)
    val badEndTag : context -> string -> unit
	(* called on unrecognized end tags, or end tags for empty elements;
	 * the string is the tag name.
	 *)
    val badAttrVal : context -> (string * string) -> unit
	(* called on ill-formed attribute values; the first string is the
	 * attribute name, and the second is the value.
	 *)
    val lexError : context -> string -> unit
	(* called on other lexical errors; the string is an error message. *)
    val syntaxError : context -> string -> unit
	(* called on syntax errors; the string is an error message. *)
    val missingAttrVal : context -> string -> unit
	(* called when an attribute name is given without a value *)
    val missingAttr : context -> string -> unit
	(* called on a missing required attribute; the string is the attribute
	 * name.
	 *)
    val unknownAttr : context -> string -> unit
	(* called on unknown attributes; the string is the attribute name. *)
    val unquotedAttrVal : context -> string -> unit
	(* called when the attribute value should have been quoted, but wasn't;
	 * the string is the attribute name.
	 *)

  end

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