summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-24 15:23:43 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-24 15:23:43 +0200
commit3d169d0e7302810f8bb50739fb4b96516724911d (patch)
treecf937075747d9f2ef11f477e082876b73eea7b5b
parent010692514a9bf01cd088902558e764965cc3c378 (diff)
parent177354f60872b465a1471683d41617e856940160 (diff)
downloadrules-cc-3d169d0e7302810f8bb50739fb4b96516724911d.tar.gz
Merge branch 'just-rules' into rules
-rw-r--r--CC/auto/EXPRESSIONS24
1 files changed, 2 insertions, 22 deletions
diff --git a/CC/auto/EXPRESSIONS b/CC/auto/EXPRESSIONS
index ac19f7a..9520975 100644
--- a/CC/auto/EXPRESSIONS
+++ b/CC/auto/EXPRESSIONS
@@ -1,32 +1,12 @@
{ "last_list_entry":
{ "vars": ["list"]
, "expression":
- { "type": "foldl"
- , "range": {"type": "var", "name": "list"}
- , "start": null
- , "body": {"type": "var", "name": "_"}
- }
+ {"type": "[]", "index": -1, "list": {"type": "var", "name": "list"}}
}
, "first_list_entry":
{ "vars": ["list"]
, "imports": {"last": "last_list_entry"}
, "expression":
- { "type": "let*"
- , "bindings":
- [ [ "list"
- , { "type": "foldl"
- , "range": {"type": "var", "name": "list", "default": []}
- , "start": null
- , "body":
- { "type": "if"
- , "cond": {"type": "var", "name": "$1"}
- , "then": {"type": "var", "name": "$1"}
- , "else": [{"type": "var", "name": "_"}]
- }
- }
- ]
- ]
- , "body": {"type": "CALL_EXPRESSION", "name": "last"}
- }
+ {"type": "[]", "index": 0, "list": {"type": "var", "name": "list"}}
}
}