package coq

  1. Overview
  2. Docs
Formal proof management system

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.14.1.tar.gz
sha256=3cbfc1e1a72b16d4744f5b64ede59586071e31d9c11c811a0372060727bfd9c3

doc/coq-core.parsing/Tok/index.html

Module TokSource

The type of token for the Coq lexer and parser

Sourcetype 'c p =
  1. | PKEYWORD : string -> string p
  2. | PPATTERNIDENT : string option -> string p
  3. | PIDENT : string option -> string p
  4. | PFIELD : string option -> string p
  5. | PNUMBER : NumTok.Unsigned.t option -> NumTok.Unsigned.t p
  6. | PSTRING : string option -> string p
  7. | PLEFTQMARK : unit p
  8. | PBULLET : string option -> string p
  9. | PQUOTATION : string -> string p
  10. | PEOI : unit p
Sourceval pattern_strings : 'c p -> string * string option
Sourcetype t =
  1. | KEYWORD of string
  2. | PATTERNIDENT of string
  3. | IDENT of string
  4. | FIELD of string
  5. | NUMBER of NumTok.Unsigned.t
  6. | STRING of string
  7. | LEFTQMARK
  8. | BULLET of string
  9. | QUOTATION of string * string
  10. | EOI
Sourceval equal_p : 'a p -> 'b p -> ('a, 'b) Util.eq option
Sourceval equal : t -> t -> bool
Sourceval extract_string : bool -> t -> string
Sourceval trim_quotation : string -> char option * string

Utility function for the test returned by a QUOTATION token: It returns the delimiter parenthesis, if any, and the text without delimiters. Eg `{{ text

}

}

` -> Some '{', ` text `

Sourceval match_pattern : 'c p -> t -> 'c

for camlp5, eg GRAMMAR EXTEND ..... IDENT "x" -> .... END is a pattern (PIDENT (Some "x"))

OCaml

Innovation. Community. Security.