Beluga_parser.TokenToken definition for lexing.
type t = | LPAREN(
| HASH_LPAREN#(
| DOLLAR_LPAREN$(
| RPAREN)
| LBRACK[
| HASH_LBRACK#[
| DOLLAR_LBRACK$[
| RBRACK]
| LBRACE{
| RBRACE}
| LANGLE<
| RANGLE>
| COMMA,
| DOUBLE_COLON::
| COLON:
| SEMICOLON;
| PIPE|
| TURNSTILE|-
| TURNSTILE_HASH|-#
| DOTS..
| BACKARROW<-
| ARROW->
| THICK_ARROW=>
| HAT^
| DOT.
| LAMBDA\
| STAR*
| EQUALS=
| SLASH/
| UNDERSCORE_
| HASH#
| DOLLAR$
| PLUS+
| KW_ANDand
| KW_BLOCKblock
| KW_CASEcase
| KW_IFif
| KW_THENthen
| KW_ELSEelse
| KW_IMPOSSIBLEimpossible
| KW_LETlet
| KW_INin
| KW_OFof
| KW_RECrec
| KW_SCHEMAschema
| KW_SOMEsome
| KW_FNfn
| KW_MLAMmlam
| KW_MODULEmodule
| KW_STRUCTstruct
| KW_ENDend
| KW_TOTALtotal
| KW_TRUSTtrust
| KW_TYPEtype
| KW_CTYPEctype
| KW_PROPprop
| KW_INDUCTIVEinductive
| KW_COINDUCTIVEcoinductive
| KW_STRATIFIEDstratified
| KW_LFLF
| KW_FUNfun
| KW_TYPEDEFtypedef
| KW_PROOFproof
| KW_BYby
| KW_ASas
| KW_SUFFICESsuffices
| KW_TOSHOWtoshow
| STRING of stringSTRING s is a string literal "\"" ^ String.escaped s ^ "\"".
| IDENT of stringIDENT x is an identifier x that may represent an operator, a variable, etc..
| PRAGMA of stringPRAGMA p is --p.
| DOT_IDENT of stringDOT_IDENT x is a dot followed by x.
| DOT_INTLIT of intDOT_INTLIT n is a dot followed by n.
| HASH_IDENT of stringHASH_IDENT x is x where x starts with #.
| DOLLAR_IDENT of stringDOLLAR_IDENT x is x where x starts with $.
| HASH_BLANK#_
| DOLLAR_BLANK$_
| HOLE of string optionHOLE x is ?x.
| INTLIT of intINTLIT i is the integer literal i.
| BLOCK_COMMENT of stringA block comment of the form %{{ ... }}%
Tokens
include Support.Eq.EQ with type t := tequal a b is true if and only if a and b are equal. This should satisfy the following properties:
equal a a = trueequal a b is equivalent to equal b aequal a b = true and equal b c = true, then equal a c = trueinclude Support.Show.SHOW with type t := tval pp : Support.Format.formatter -> t -> unitpp ppf t emits t pretty-printed to ppf.
val show : t -> stringshow t pretty-prints t to a string.