File: dest_string.doc

package info (click to toggle)
hol-light 20230128-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 45,636 kB
  • sloc: ml: 688,681; cpp: 439; makefile: 302; lisp: 286; java: 279; sh: 251; yacc: 108; perl: 78; ansic: 57; sed: 39; python: 13
file content (25 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
\DOC dest_string

\TYPE {dest_string : term -> string}

\SYNOPSIS
Produces OCaml string corresponding to object-level string.

\DESCRIBE
{dest_string t} where {t} is a literal string in the HOL object logic of type
{string} (which is an abbreviation for {char list}), produces the corresponding
OCaml string.

\FAILURE
Fails if the term is not a literal term of type {string}

\EXAMPLE
{
  # dest_string `"HOL"`;;
  val it : string = "HOL"
}

\SEEALSO
dest_char, dest_list, mk_char, mk_list, mk_string.

\ENDDOC