If the 'for' is used both as a command and as "the English word":
for_statement: 'for' ...
id: 'for'
| ID
;
ID: ...
right? My problem is how to differentiate the two cases. For example for_statement is only possible beginning of a line (only if preceded by ' ' or '\t').
For example:
echo for print example
for i in {0..10..2}
do
echo "Welcome $i times"
done
Sample outputs:
for print example
Welcome 0 times
Welcome 2 times
Welcome 4 times
Welcome 6 times
Welcome 8 times
Welcome 10 times
Thanks.