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

View of /smlnj-lib/releases/release-110.69/HTML/html-error-sig.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3249 - (download) (annotate)
Wed Dec 31 02:30:31 2008 UTC (10 years, 6 months ago) by jriehl
File size: 1482 byte(s)
Release 110.69
(* 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