File: install_parser.doc

package info (click to toggle)
hol-light 20131026-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 26,264 kB
  • ctags: 4,620
  • sloc: ml: 400,325; cpp: 438; java: 279; lisp: 261; makefile: 256; sh: 190; yacc: 108; perl: 78; ansic: 57; sed: 39
file content (21 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
\DOC install_parser

\TYPE {install_parser : string * (lexcode list -> preterm * lexcode list) -> unit}

\SYNOPSIS
Install a user parser.

\DESCRIBE
HOL Light allows user parsing functions to be installed, and will try them on
all terms during parsing before the usual parsers. The call
{install_parser(s,p)} installs the parser {p} among the user parsers to try in
this way. The string {s} is there so that the parser can conveniently be
deleted again.

\FAILURE
Never fails.

\SEEALSO
delete_parser, installed_parsers, try_user_parser.

\ENDDOC