2023-11-10 20:44:03 -05:00
|
|
|
================================================================================
|
2023-10-31 03:17:58 -04:00
|
|
|
Simple Remove
|
2023-11-10 20:44:03 -05:00
|
|
|
================================================================================
|
2023-10-18 21:50:45 -04:00
|
|
|
|
2023-10-31 01:09:29 -04:00
|
|
|
remove i from [1, 2, 3] {
|
2023-10-18 21:50:45 -04:00
|
|
|
i <= 2
|
|
|
|
}
|
|
|
|
|
2023-11-10 20:44:03 -05:00
|
|
|
--------------------------------------------------------------------------------
|
2023-10-18 21:50:45 -04:00
|
|
|
|
|
|
|
(root
|
2023-11-10 20:44:03 -05:00
|
|
|
(statement
|
|
|
|
(remove
|
|
|
|
(identifier)
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(list
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer))))))
|
|
|
|
(block
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(logic
|
2023-10-31 09:31:10 -04:00
|
|
|
(expression
|
2023-11-10 20:44:03 -05:00
|
|
|
(identifier))
|
|
|
|
(logic_operator)
|
2023-10-31 09:31:10 -04:00
|
|
|
(expression
|
|
|
|
(value
|
2023-11-10 20:44:03 -05:00
|
|
|
(integer))))))))))
|
2023-10-18 21:50:45 -04:00
|
|
|
|
2023-11-10 20:44:03 -05:00
|
|
|
================================================================================
|
2023-10-31 03:17:58 -04:00
|
|
|
Nested Remove
|
2023-11-10 20:44:03 -05:00
|
|
|
================================================================================
|
2023-10-18 21:50:45 -04:00
|
|
|
|
2023-10-31 13:04:22 -04:00
|
|
|
remove i from big_list {
|
2023-10-31 03:17:58 -04:00
|
|
|
remove j from i {
|
|
|
|
j != 42
|
|
|
|
}
|
2023-10-18 21:50:45 -04:00
|
|
|
}
|
|
|
|
|
2023-11-10 20:44:03 -05:00
|
|
|
--------------------------------------------------------------------------------
|
2023-10-18 21:50:45 -04:00
|
|
|
|
|
|
|
(root
|
2023-11-10 20:44:03 -05:00
|
|
|
(statement
|
|
|
|
(remove
|
|
|
|
(identifier)
|
|
|
|
(expression
|
|
|
|
(identifier))
|
|
|
|
(block
|
|
|
|
(statement
|
|
|
|
(remove
|
|
|
|
(identifier)
|
|
|
|
(expression
|
|
|
|
(identifier))
|
|
|
|
(block
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(logic
|
|
|
|
(expression
|
|
|
|
(identifier))
|
|
|
|
(logic_operator)
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))))))))))
|