package rocq-runtime

  1. Overview
  2. Docs
The Rocq Prover -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

rocq-9.0.0.tar.gz
md5=8d522602d23e7a665631826dab9aa92b
sha512=f4f76a6a178e421c99ee7a331a2fd97a06e9c5d0168d7e60c44e3820d8e1a124370ea104ad90c7f87a9a1e9d87b2d0d7d2d387c998feeaed4a75ed04e176a4be

doc/rocq-runtime.parsing/Tok/index.html

Module TokSource

The type of token for the Rocq lexer and parser

Sourcetype 'c p =
  1. | PKEYWORD : string -> string p
  2. | PIDENT : string option -> string p
  3. | PFIELD : string option -> string p
  4. | PNUMBER : NumTok.Unsigned.t option -> NumTok.Unsigned.t p
  5. | PSTRING : string option -> string p
  6. | PLEFTQMARK : unit p
  7. | PBULLET : string option -> string p
  8. | PQUOTATION : string -> string p
  9. | PEOI : unit p
Sourceval pattern_strings : 'c p -> string * string option
Sourcetype t =
  1. | KEYWORD of string
  2. | IDENT of string
  3. | FIELD of string
  4. | NUMBER of NumTok.Unsigned.t
  5. | STRING of string
  6. | LEFTQMARK
  7. | BULLET of string
  8. | QUOTATION of string * string
  9. | 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.