72 lines
1.4 KiB
Plaintext
72 lines
1.4 KiB
Plaintext
==================
|
|
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
|
|
(tool
|
|
(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
|
|
(tool
|
|
(expression
|
|
(identifier))))))))))))
|