summaryrefslogtreecommitdiff
path: root/source/compiler/aslhelpers.y
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/aslhelpers.y')
-rw-r--r--source/compiler/aslhelpers.y9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/compiler/aslhelpers.y b/source/compiler/aslhelpers.y
index f99650605697..f200bf2b0e78 100644
--- a/source/compiler/aslhelpers.y
+++ b/source/compiler/aslhelpers.y
@@ -330,6 +330,15 @@ OptionalResourceType
| ',' ResourceTypeKeyword {$$ = $2;}
;
+/* Same as above except default is producer */
+OptionalProducerResourceType
+ : {$$ = TrCreateLeafNode (
+ PARSEOP_RESOURCETYPE_PRODUCER);}
+ | ',' {$$ = TrCreateLeafNode (
+ PARSEOP_RESOURCETYPE_PRODUCER);}
+ | ',' ResourceTypeKeyword {$$ = $2;}
+ ;
+
OptionalSlaveMode
: ',' {$$ = NULL;}
| ',' SlaveModeKeyword {$$ = $2;}