Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /smlnj-lib/trunk/HTML/html-error-sig.sml
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2144 - (view) (download)

1 : monnier 2 (* html-error-sig.sml
2 :     *
3 :     * COPYRIGHT (c) 1996 AT&T Research.
4 :     *
5 :     * This is the interface of the error functions supplied to the lexer
6 :     * (and transitively, to HTMLElemnts).
7 :     *)
8 :    
9 :     signature HTML_ERROR =
10 :     sig
11 :    
12 :     type context = {file : string option, line : int}
13 :    
14 :     val badStartTag : context -> string -> unit
15 :     (* called on unrecognized start tags; the string is the tag name *)
16 :     val badEndTag : context -> string -> unit
17 :     (* called on unrecognized end tags, or end tags for empty elements;
18 :     * the string is the tag name.
19 :     *)
20 :     val badAttrVal : context -> (string * string) -> unit
21 :     (* called on ill-formed attribute values; the first string is the
22 :     * attribute name, and the second is the value.
23 :     *)
24 :     val lexError : context -> string -> unit
25 :     (* called on other lexical errors; the string is an error message. *)
26 :     val syntaxError : context -> string -> unit
27 :     (* called on syntax errors; the string is an error message. *)
28 :     val missingAttrVal : context -> string -> unit
29 :     (* called when an attribute name is given without a value *)
30 :     val missingAttr : context -> string -> unit
31 :     (* called on a missing required attribute; the string is the attribute
32 :     * name.
33 :     *)
34 :     val unknownAttr : context -> string -> unit
35 :     (* called on unknown attributes; the string is the attribute name. *)
36 :     val unquotedAttrVal : context -> string -> unit
37 :     (* called when the attribute value should have been quoted, but wasn't;
38 :     * the string is the attribute name.
39 :     *)
40 :    
41 :     end

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