[Parser] Adding framework for outer-loops in flow-statements
[Core] Added device::waitFor(tag)