package coq-core

  1. Overview
  2. Docs
The Coq Proof Assistant -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.19.1.tar.gz
md5=13d2793fc6413aac5168822313e4864e
sha512=ec8379df34ba6e72bcf0218c66fef248b0e4c5c436fb3f2d7dd83a2c5f349dd0874a67484fcf9c0df3e5d5937d7ae2b2a79274725595b4b0065a381f70769b42

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

Names of tokens, used in Grammar error messages

Sourceval token_text : 'c p -> 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.