2023-10-18 21:52:56 +00:00
|
|
|
==================
|
|
|
|
Transform Loop
|
|
|
|
==================
|
|
|
|
|
|
|
|
transform i in [1, 2, 3] {
|
|
|
|
(output i)
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(transform
|
|
|
|
(identifier)
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(list
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer))))))
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(expression
|
2023-10-21 17:19:01 +00:00
|
|
|
(tool
|
2023-10-18 21:52:56 +00:00
|
|
|
(expression
|
|
|
|
(identifier))))))))))
|
|
|
|
|
|
|
|
==================
|
|
|
|
Transform Loop Assignment
|
|
|
|
==================
|
|
|
|
|
|
|
|
list = transform i in ["one", "two", "three"] {
|
|
|
|
(output i)
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(assignment
|
|
|
|
(identifier)
|
|
|
|
(assignment_operator)
|
|
|
|
(statement
|
|
|
|
(transform
|
|
|
|
(identifier)
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(list
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(string)))
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(string)))
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(string))))))
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(expression
|
2023-10-21 17:19:01 +00:00
|
|
|
(tool
|
2023-10-18 21:52:56 +00:00
|
|
|
(expression
|
|
|
|
(identifier))))))))))))
|