discover/grub2: Handle var tokens in lexer
authorJeremy Kerr <jk@ozlabs.org>
Fri, 13 Sep 2013 06:50:19 +0000 (14:50 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 24 Sep 2013 05:14:59 +0000 (13:14 +0800)
commitfb5a2b71f85614114663c86dbba62c5c491a11b9
treeecacb9cc23f8507441b716da5431d59f0752e631
parent44e9d1d04a3120476ac50a14bfa34fbd091190c9
discover/grub2: Handle var tokens in lexer

Rather than post-processing to expand variables, use the lexer to
identify variable tokens as a type of grub2_word.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/grub2/grub2.h
discover/grub2/lexer.l
discover/grub2/parser-api.c
discover/grub2/script.c