Code:
InputPin VAR GPIO.0
Qout      VAR GPIO.1
Q_out    VAR GPIO.2

Qout=0
Q_out=1

start:
while InputPin=0
wend

Toggle Qout
Toggle Q_out

while InputPin
wend

goto start