implicitt/lib/Raw/implicitt.cf
2023-01-26 21:13:51 +01:00

38 lines
964 B
CFEngine3
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

entrypoints [Def], Exp ;
token Id ((letter|digit|["[]_"])+) ;
comment "--" ;
comment "{-" "-}" ;
BE. BD ::= Id;
BI. BD ::= "{" Id "}";
separator nonempty BD "" ;
ExpPiE. Exp ::= "Π" "(" Id ":" Exp ")" Exp;
ExpPiI. Exp ::= "Π" "{" Id ":" Exp "}" Exp;
ExpSig. Exp ::= "Σ" "(" Id ":" Exp ")" Exp;
ExpLet. Exp ::= "let" Id ":" Exp "" Exp "in" Exp;
ExpLam. Exp ::= "λ" [BD] "." Exp;
ExpAppI. Exp1 ::= Exp1 "{" Exp "}";
ExpAppE. Exp1 ::= Exp1 Exp2;
ExpFst. Exp1 ::= "pr" Exp2;
ExpSnd. Exp1 ::= "pr" Exp2;
ExpSuc. Exp1 ::= "S" Exp2;
ExpVar. Exp2 ::= Id;
ExpT0. Exp2 ::= "";
ExpT1. Exp2 ::= "";
ExpT1tr. Exp2 ::= "";
ExpTNat. Exp2 ::= "";
ExpZero. Exp2 ::= "0";
ExpTBool. Exp2 ::= "𝔹";
ExpTrue. Exp2 ::= "T";
ExpFalse. Exp2 ::= "F";
ExpPair. Exp2 ::= "" Exp "," Exp "";
ExpHole. Exp2 ::= "?";
coercions Exp 2 ;
VarDef. Def ::= "def" Id ":" Exp "" Exp;
separator Def "" ;