summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lahfa2024-04-17 14:30:27 +0200
committerRyan Lahfa2024-04-17 14:30:27 +0200
commitf0262bf843c8ef6ca2ad4d12ee6f82c8032e6857 (patch)
tree1a388b326b364145e6a05f814f10db7b84a91e1d
parent23da71768c03d955c916635bfc5c9d5806a80187 (diff)
fix(backends/lean): `as` is a keyword
`as` is a reserved keyword and cannot be used as a variable name. Fixes #139. Signed-off-by: Ryan Lahfa <ryan.lahfa@inria.fr>
-rw-r--r--compiler/ExtractBase.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/ExtractBase.ml b/compiler/ExtractBase.ml
index 656d2f27..718325d2 100644
--- a/compiler/ExtractBase.ml
+++ b/compiler/ExtractBase.ml
@@ -915,6 +915,7 @@ let keywords () =
]
| Lean ->
[
+ "as";
"by";
"class";
"decreasing_by";