Index: tools/idl_parser/idl_parser.py |
diff --git a/tools/idl_parser/idl_parser.py b/tools/idl_parser/idl_parser.py |
index 8a682ea688b6821d8993f8c52c8e9dcf6b78cc44..401dc4b320427ec6a8920f65aa2b25084153f52f 100755 |
--- a/tools/idl_parser/idl_parser.py |
+++ b/tools/idl_parser/idl_parser.py |
@@ -434,6 +434,7 @@ class IDLParser(object): |
# [30] |
def p_AttributeOrOperation(self, p): |
"""AttributeOrOperation : STRINGIFIER StringifierAttributeOrOperation |
+ | StaticAttribute |
| Attribute |
| Operation""" |
if len(p) > 2: |
@@ -451,6 +452,13 @@ class IDLParser(object): |
else: |
p[0] = ListFromConcat(self.BuildAttribute('STRINGIFIER', p[1]), p[1]) |
+ # [31.1] FIXME: temporary production as part of moving |static| into |
+ # base parser |
+ def p_StaticAttribute(self, p): |
+ """StaticAttribute : STATIC Attribute""" |
+ p[2].AddChildren(self.BuildTrue('STATIC')) |
+ p[0] = p[2] |
+ |
# [32] |
def p_Attribute(self, p): |
"""Attribute : Inherit ReadOnly ATTRIBUTE Type identifier ';'""" |