BaseTools: create and use a standard shared variable for '*'
add a variable for the string '*' and then use it instead of lots of '*' Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by : Bob Feng <bob.c.feng@intel.com>
This commit is contained in:
@ -244,7 +244,7 @@ class ValueExpression(BaseExpression):
|
||||
'IN' : 'in'
|
||||
}
|
||||
|
||||
NonLetterOpLst = ['+', '-', '*', '/', '%', '&', '|', '^', '~', '<<', '>>', '!', '=', '>', '<', '?', ':']
|
||||
NonLetterOpLst = ['+', '-', TAB_STAR, '/', '%', '&', '|', '^', '~', '<<', '>>', '!', '=', '>', '<', '?', ':']
|
||||
|
||||
|
||||
SymbolPattern = re.compile("("
|
||||
@ -498,7 +498,7 @@ class ValueExpression(BaseExpression):
|
||||
|
||||
# A [ * B]*
|
||||
def _MulExpr(self):
|
||||
return self._ExprFuncTemplate(self._UnaryExpr, {"*", "/", "%"})
|
||||
return self._ExprFuncTemplate(self._UnaryExpr, {TAB_STAR, "/", "%"})
|
||||
|
||||
# [!]*A
|
||||
def _UnaryExpr(self):
|
||||
|
Reference in New Issue
Block a user