📄 readme
字号:
This library provides support for parsing and pretty-printing HTML.The file html-sig.sml and html.sml define a parse-tree representationof HTML 3.2 (as defined in the January 14th 1997 specification).The HTML structure implements a collection of datatypesthat describe the syntax of HTML trees according to the 3.2 spec.The library provides support for parsing and printing thesedatatypes. The functor HTMLParserFn implements the parser andthe PrHTML structure provides printing of HTML trees. Also, thereis a structure called MakeHTML, which provides helper functions forconstructing HTML trees (mostly defaults of attribute values).Note that this is a fairly strict interpretation of the standard;non-standard tags and attributes will cause errors. To allow someflexibility, the parser is functorized over a collection of errorreporting functions (see html-error-sig.sml).The file test-parser.sml gives an example of how the parser part of thelibrary can be used.TODO LIST:The parser has trouble with white-space in the <HEAD>.The pretty-printer needs to be rewritten to deal with line breaks better.Some library support for entities (e.g., "<" should be provided). John Reppy Bell Labs, Lucent Technologies jhr@research.bell-labs.com
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -