diff options
author | Son HO | 2024-04-19 08:22:19 +0200 |
---|---|---|
committer | GitHub | 2024-04-19 08:22:19 +0200 |
commit | caedb227fcf018a5e9e6f5627144a9bf0b5484c3 (patch) | |
tree | 466e3049b92b586dd887b6138f7272ca66372fb2 /compiler | |
parent | 8cd6090128397dd9dccf5bb7c27dd85f318aa3c5 (diff) | |
parent | 00fb0b9dee66a5ba012170c3313454934c976d5e (diff) |
Merge pull request #146 from RaitoBezarius/main
fix(backends/lean): add a significant amount of keywords
Diffstat (limited to '')
-rw-r--r-- | compiler/ExtractBase.ml | 72 |
1 files changed, 69 insertions, 3 deletions
diff --git a/compiler/ExtractBase.ml b/compiler/ExtractBase.ml index 8080e08c..f2686cc6 100644 --- a/compiler/ExtractBase.ml +++ b/compiler/ExtractBase.ml @@ -915,38 +915,104 @@ let keywords () = ] | Lean -> [ + "Pi"; + "Prop"; + "Sort"; + "Type"; + "abbrev"; + "alias"; + "as"; + "at"; + "attribute"; + "axiom"; + "axioms"; + "begin"; + "break"; "by"; + "calc"; + "catch"; "class"; + "const"; + "constant"; + "constants"; + "continue"; "decreasing_by"; "def"; + "definition"; "deriving"; "do"; "else"; "end"; + "example"; + "exists"; + "export"; + "extends"; "for"; + "forall"; + "from"; + "fun"; "have"; + "hiding"; "if"; + "import"; + "in"; + "include"; "inductive"; + "infix"; + "infixl"; + "infixr"; "instance"; - "import"; + "lemma"; "let"; + "local"; "macro"; + "macro_rules"; "match"; + "mut"; + "mutual"; "namespace"; + "noncomputable"; + "notation"; + "omit"; "opaque"; + "opaque_defs"; "open"; + "override"; + "parameter"; + "parameters"; + "partial"; + "postfix"; + "precedence"; + "prefix"; + "prelude"; + "private"; + "protected"; + "raw"; + "record"; + "reduce"; + "renaming"; + "replacing"; + "reserve"; "run_cmd"; + "section"; "set_option"; "simp"; "structure"; "syntax"; "termination_by"; "then"; - "Type"; + "theorem"; + "theory"; + "universe"; + "universes"; + "unless"; "unsafe"; + "using"; + "using_well_founded"; + "variable"; + "variables"; "where"; "with"; - "opaque_defs"; ] | HOL4 -> [ |