diff options
author | Jaben Carsey <jaben.carsey@intel.com> | 2018-11-16 23:40:04 +0800 |
---|---|---|
committer | BobCF <bob.c.feng@intel.com> | 2018-12-06 17:11:24 +0800 |
commit | bc39c5cbea30b53c35a32150431bb7ea05a3238d (patch) | |
tree | 78fd7f91b47f437c4f7b78be4ebaa35c50f116d5 /BaseTools/Source/Python/Common/Expression.py | |
parent | ea55e37c369ac5b9dc1a6fcc647bd3fa20cb05b1 (diff) | |
download | edk2-bc39c5cbea30b53c35a32150431bb7ea05a3238d.tar.gz edk2-bc39c5cbea30b53c35a32150431bb7ea05a3238d.tar.bz2 edk2-bc39c5cbea30b53c35a32150431bb7ea05a3238d.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python/Common/Expression.py')
-rw-r--r-- | BaseTools/Source/Python/Common/Expression.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/Common/Expression.py b/BaseTools/Source/Python/Common/Expression.py index a21ab5daa7..db1310d534 100644 --- a/BaseTools/Source/Python/Common/Expression.py +++ b/BaseTools/Source/Python/Common/Expression.py @@ -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):
|