File: parse_inductive_type_specification.doc

package info (click to toggle)
hol-light 20190729-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 42,676 kB
  • sloc: ml: 637,078; cpp: 439; makefile: 301; lisp: 286; java: 279; sh: 239; yacc: 108; perl: 78; ansic: 57; sed: 39; python: 13
file content (21 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
\DOC parse_inductive_type_specification

\TYPE {parse_inductive_type_specification : string -> (hol_type * (string * hol_type list) list) list}

\SYNOPSIS
Parses the specification for an inductive type into a structured format.

\DESCRIBE
The underlying function {define_type_raw} used inside {define_type} expects the
inductive type specification in a more structured format. The function
{parse_inductive_type_specification} parses the usual string form as handed to
{define_type} and yields this structured form. In fact, {define_type} is just
the composition of {define_type_raw} and {parse_inductive_type_specification}.

\FAILURE
Fails if there is a parsing error in the inductive type specification.

\SEEALSO
define_type, define_type_raw.

\ENDDOC