80 lines
1.6 KiB
Plaintext
80 lines
1.6 KiB
Plaintext
|
==================
|
||
|
Find Loop
|
||
|
==================
|
||
|
|
||
|
find i in [1, 2, 3] {
|
||
|
i <= 3
|
||
|
}
|
||
|
|
||
|
---
|
||
|
|
||
|
(root
|
||
|
(item
|
||
|
(statement
|
||
|
(find
|
||
|
(identifier)
|
||
|
(expression
|
||
|
(value
|
||
|
(list
|
||
|
(expression
|
||
|
(value
|
||
|
(integer)))
|
||
|
(expression
|
||
|
(value
|
||
|
(integer)))
|
||
|
(expression
|
||
|
(value
|
||
|
(integer))))))
|
||
|
(item
|
||
|
(statement
|
||
|
(expression
|
||
|
(logic
|
||
|
(expression
|
||
|
(identifier))
|
||
|
(logic_operator)
|
||
|
(expression
|
||
|
(value
|
||
|
(integer)))))))))))
|
||
|
|
||
|
==================
|
||
|
Find Loop Assignment
|
||
|
==================
|
||
|
|
||
|
found = find i in ["one", "two", "three"] {
|
||
|
i == "three"
|
||
|
}
|
||
|
|
||
|
---
|
||
|
|
||
|
(root
|
||
|
(item
|
||
|
(statement
|
||
|
(assignment
|
||
|
(identifier)
|
||
|
(assignment_operator)
|
||
|
(statement
|
||
|
(find
|
||
|
(identifier)
|
||
|
(expression
|
||
|
(value
|
||
|
(list
|
||
|
(expression
|
||
|
(value
|
||
|
(string)))
|
||
|
(expression
|
||
|
(value
|
||
|
(string)))
|
||
|
(expression
|
||
|
(value
|
||
|
(string))))))
|
||
|
(item
|
||
|
(statement
|
||
|
(expression
|
||
|
(logic
|
||
|
(expression
|
||
|
(identifier))
|
||
|
(logic_operator)
|
||
|
(expression
|
||
|
(value
|
||
|
(string)))))))))))))
|