]> git.ozlabs.org Git - petitboot/commitdiff
discover/grub2: Add support for for-loops
authorJeremy Kerr <jk@ozlabs.org>
Fri, 24 Jan 2014 06:40:46 +0000 (14:40 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 30 Jan 2014 13:59:10 +0000 (21:59 +0800)
GRUB2 syntax allows for for-loops; this change adds supoprt in the
parser grammar and script execution code to implement them. In the
execution code, we simply update the for-loop variable and re-execute
the body statements.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

No differences found