Lines Matching refs:group
343 self._MacroDict[Match.group(1)] = Match.group(2)
347 self._MacroDict[Match.group(1)] = ''
458 if Match.group(1).lower() == "Defines".lower():
460 if Match.group(1).lower() == "PcdsFeatureFlag".lower():
462 elif Match.group(1).lower() == "PcdsDynamicVpd.Upd".lower():
496 Result = self.EvaulateIfdef (Match.group(2))
497 if Match.group(1) == 'ifndef':
504 Result = self.EvaluateExpress(Match.group(2))
505 if Match.group(1) == "if":
524 IncludeFilePath = Match.group(1)
555 self._MacroDict[Match.group(1)] = Match.group(2)
557 print "INFO : DEFINE %s = [ %s ]" % (Match.group(1), Match.group(2))
563 self._PcdsDict[Match.group(1)] = Match.group(2)
565 print "INFO : PCD %s = [ %s ]" % (Match.group(1), Match.group(2))
569 Remaining = Match.group(2)
570 if Match.group(1) == '!BSF' or Match.group(1) == '@Bsf':
574 PageList = Match.group(1).split(',')
578 self._CfgPageDict[Match.group(1)] = Match.group(2)
582 self._CfgBlkDict['name'] = Match.group(1)
583 self._CfgBlkDict['ver'] = Match.group(2)
588 … if Key in ['NAME', 'HELP', 'OPTION'] and Match.group(1).startswith('+'):
589 ConfigDict[Key.lower()] += Match.group(1)[1:]
591 ConfigDict[Key.lower()] = Match.group(1)
596 ConfigDict[Key.lower()] = Match.group(1)
600 ConfigDict['name'] = Match.group(1)
604 if Match.group(2).strip() in self._BuidinOption:
605 ConfigDict['option'] = Match.group(2).strip()
607 OptionValueList = Match.group(2).split(',')
608 OptionStringList = Match.group(3).split(',')
620 if "0x" in Match.group(2) or "0x" in Match.group(3):
621 … ConfigDict['type'] = "EditNum, HEX, (%s,%s)" % (Match.group(2), Match.group(3))
623 … ConfigDict['type'] = "EditNum, DEC, (%s,%s)" % (Match.group(2), Match.group(3))
627 ConfigDict['help'] = Match.group(1)
635 ConfigDict['space'] = Match.group(1)
636 ConfigDict['cname'] = Match.group(2)
637 ConfigDict['offset'] = int (Match.group(3), 16)
644 Value = Match.group(5).strip()
645 if Match.group(4).startswith("0x"):
646 Length = int (Match.group(4), 16)
648 Length = int (Match.group(4))
650 Value = Match.group(4)
657 Value = Match.group(1)
663 if Match.group(1) in self._MacroDict:
664 Value = self._MacroDict[Match.group(1)]
694 if (Match.group(4) == None) or (Match.group(4) == 'B'):
696 elif Match.group(4) == 'b':
701 SubCfgDict['cname'] = Match.group(2)
702 SubCfgDict['bitlength'] = int (Match.group(3)) * UnitBitLen
943 if MatchComment.group(1) == 'FSP_UPD_HEADER':
948 CommentLine = " " + MatchComment.group(2) + "\n"
954 Line = Match.group(4)
955 if Match.group(1) == 'FSP_UPD_HEADER':
960 if Match and Match.group(3) == 'START':
963 StructName = Match.group(1)
964 VariableName = Match.group(2)
967 Offset = int(MatchOffset.group(1), 16)
979 if Match and Match.group(3) == 'END':
980 if (StructName != Match.group(1)) or (VariableName != Match.group(2)):
981 print "Unmatched struct name '%s' and '%s' !" % (StructName, Match.group(1))
1030 if MatchComment and MatchComment.group(1) == Region[0]:
1031 CommentLine = " " + MatchComment.group(2) + "\n"
1036 … TxtBody.append("/** Fsp " + Match.group(1) + " UPD Configuration\n**/\n")
1148 if Match.group(2) == "BEGIN" and Match.group(1) == UpdRegionCheck[item]:
1170 …pdRegionCheck[item] in Match.group(1) or UpdConfigCheck[item] in Match.group(1)) and (ExcludedSpec…
1216 …if Match and (UpdSignatureCheck[item] in Match.group(1) or UpdSignatureCheck[item] in Match.group(…
1249 DefaultValue = Match.group(1).strip()
1279 … BsfFd.write(' EditNum $%s, "%s", %s,\n' % (PcdName, Item['name'], Match.group(1)))
1310 … BsfFd.write(' "Valid range: %s ~ %s"\n' % (Match.group(2), Match.group(3)))