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
commite111a79564d724eede3f7ba4a94e18431ed3cc7a (patch)
tree2f5f754a7f8b2a68ea3fee1c65cd1ea115e5f095
parent2c3c587e6cf68a727ab54e7e7afce629960d2c29 (diff)
parent3d169d0e7302810f8bb50739fb4b96516724911d (diff)
downloadrules-cc-e111a79564d724eede3f7ba4a94e18431ed3cc7a.tar.gz
Merge subtree 'rules' into rules-cc
-rw-r--r--rules/CC/auto/EXPRESSIONS24
1 files changed, 2 insertions, 22 deletions
diff --git a/rules/CC/auto/EXPRESSIONS b/rules/CC/auto/EXPRESSIONS
index ac19f7a..9520975 100644
--- a/rules/CC/auto/EXPRESSIONS
+++ b/rules/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"}}
}
}