diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/newconfig/config.g | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/newconfig/config.g b/util/newconfig/config.g index 0b96569889..e6a3787f62 100644 --- a/util/newconfig/config.g +++ b/util/newconfig/config.g @@ -955,6 +955,7 @@ parser Config: token OPTION: 'option' token PAYLOAD: 'payload' token PMC: 'pmc' + token PRINT: 'print' token REGISTER: 'register' token SOUTHBRIDGE: 'southbridge' token SUPERIO: 'superio' @@ -1084,6 +1085,7 @@ parser Config: | dir<<C>> {{ return dir}} | ldscript<<C>> {{ return ldscript}} | payload<<C>> {{ return payload}} + | pprint<<C>> {{ return pprint}} # ENTRY for parsing Config.lb file rule cfgfile: (uses<<1>>)* (stmt<<1>>)* @@ -1104,6 +1106,8 @@ parser Config: rule opstmt: option<<1>> | opif + # print clashes with a python keyword + rule pprint<<C>>: PRINT STR {{ if (C): print "%s\n"%STR}} # ENTRY for parsing a delayed value rule delexpr: "{" expr "}" {{ return expr }} |