]> git.ozlabs.org Git - petitboot/commit
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)
commit1b272c7d47390077eee0a0638329b1a7df521329
tree43b348731a7db7585050ebc8140790f91232b01a
parente1b713b0c862a93cd3e8cea59070f469510d3c39
discover/grub2: Add support for for-loops

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>
discover/grub2/grub2.h
discover/grub2/parser.y
discover/grub2/script.c