- [x] Handle startloop and endloop in rules.
- Successfully parsed example scripts.