summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/idl_parser/idl_parser.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/idl_parser/idl_parser.py b/tools/idl_parser/idl_parser.py
index 8a682ea..401dc4b 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 ';'"""