diff options
author | Greg Watson <jarrah@users.sourceforge.net> | 2003-06-24 17:37:02 +0000 |
---|---|---|
committer | Greg Watson <jarrah@users.sourceforge.net> | 2003-06-24 17:37:02 +0000 |
commit | cd5382651f5aa8adbd31cde4db934f5dca15608d (patch) | |
tree | 6254f6f34c4809919e11adebec966e3130755c6f /util/newconfig | |
parent | 2366020f23fa92e3b69e885b1f4a08630ff89195 (diff) |
ifs now have elses
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@905 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/newconfig')
-rw-r--r-- | util/newconfig/config.g | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util/newconfig/config.g b/util/newconfig/config.g index 6fff45722c..e67ffdb53c 100644 --- a/util/newconfig/config.g +++ b/util/newconfig/config.g @@ -934,6 +934,7 @@ parser Config: token DEP: 'dep' token DIR: 'dir' token DRIVER: 'driver' + token ELSE: 'else' token END: '$|end' token EQ: '=' token EXPORT: 'export' @@ -1040,7 +1041,7 @@ parser Config: # needs to be C and ID, but nested if's are, we hope, not going to # happen. IF so, possibly ID && C could be used. rule iif<<C>>: IF ID {{ c = lookup(ID) }} - (stmt<<c>>)* END + (stmt<<c>>)* [ ELSE (stmt<<not c>>)* ] END rule depsacts<<ID, C>>: ( DEP STR {{ if (C): adddep(ID, STR) }} @@ -1098,7 +1099,7 @@ parser Config: rule option<<C>>: OPTION ID EQ value {{ if (C): setoptionstmt(ID, value) }} rule opif: IF ID {{ c = lookup(ID) }} - (option<<c>>)* END + (option<<c>>)* [ ELSE (option<<not c>>)* ] END rule opstmt: option<<1>> | opif |