summaryrefslogtreecommitdiff
path: root/source/compiler/aslrules.y
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/aslrules.y')
-rw-r--r--source/compiler/aslrules.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/compiler/aslrules.y b/source/compiler/aslrules.y
index 79accf4dd2e03..f8329e9cb1c44 100644
--- a/source/compiler/aslrules.y
+++ b/source/compiler/aslrules.y
@@ -427,6 +427,7 @@ String
CompilerDirective
: IncludeTerm {}
+ | IncludeEndTerm {}
| ExternalTerm {}
;
@@ -1033,14 +1034,13 @@ IfTerm
;
IncludeTerm
- : PARSEOP_INCLUDE '(' {$<n>$ = TrCreateLeafNode (PARSEOP_INCLUDE);}
- String ')' {TrLinkChildren ($<n>3,1,$4);FlOpenIncludeFile ($4);}
- TermList
- IncludeEndTerm {$$ = TrLinkPeerNodes (3,$<n>3,$7,$8);}
+ : PARSEOP_INCLUDE '('
+ String ')' {$$ = TrUpdateNode (PARSEOP_INCLUDE, $3);
+ FlOpenIncludeFile ($3);}
;
IncludeEndTerm
- : PARSEOP_INCLUDE_END {$$ = TrCreateLeafNode (PARSEOP_INCLUDE_END);}
+ : PARSEOP_INCLUDE_END {$<n>$ = TrCreateLeafNode (PARSEOP_INCLUDE_END); TrSetCurrentFilename ($$);}
;
IncTerm