parser.py (7839:9e556fb25900) parser.py (7922:7532067f818e)
1# Copyright (c) 2009 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 145 unchanged lines hidden (view full) ---

154 'action' : 'ACTION',
155 'transition' : 'TRANS',
156 'structure' : 'STRUCT',
157 'external_type' : 'EXTERN_TYPE',
158 'enumeration' : 'ENUM',
159 'peek' : 'PEEK',
160 'stall_and_wait' : 'STALL_AND_WAIT',
161 'wake_up_dependents' : 'WAKE_UP_DEPENDENTS',
1# Copyright (c) 2009 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 145 unchanged lines hidden (view full) ---

154 'action' : 'ACTION',
155 'transition' : 'TRANS',
156 'structure' : 'STRUCT',
157 'external_type' : 'EXTERN_TYPE',
158 'enumeration' : 'ENUM',
159 'peek' : 'PEEK',
160 'stall_and_wait' : 'STALL_AND_WAIT',
161 'wake_up_dependents' : 'WAKE_UP_DEPENDENTS',
162 'wake_up_all_dependents' : 'WAKE_UP_ALL_DEPENDENTS',
162 'enqueue' : 'ENQUEUE',
163 'copy_head' : 'COPY_HEAD',
164 'check_allocate' : 'CHECK_ALLOCATE',
165 'check_stop_slots' : 'CHECK_STOP_SLOTS',
166 'static_cast' : 'STATIC_CAST',
167 'if' : 'IF',
168 'is_valid' : 'IS_VALID',
169 'is_invalid' : 'IS_INVALID',

--- 386 unchanged lines hidden (view full) ---

556 def p_statement__stall_and_wait(self, p):
557 "statement : STALL_AND_WAIT '(' var ',' var ')' SEMI"
558 p[0] = ast.StallAndWaitStatementAST(self, p[3], p[5])
559
560 def p_statement__wake_up_dependents(self, p):
561 "statement : WAKE_UP_DEPENDENTS '(' var ')' SEMI"
562 p[0] = ast.WakeUpDependentsStatementAST(self, p[3])
563
163 'enqueue' : 'ENQUEUE',
164 'copy_head' : 'COPY_HEAD',
165 'check_allocate' : 'CHECK_ALLOCATE',
166 'check_stop_slots' : 'CHECK_STOP_SLOTS',
167 'static_cast' : 'STATIC_CAST',
168 'if' : 'IF',
169 'is_valid' : 'IS_VALID',
170 'is_invalid' : 'IS_INVALID',

--- 386 unchanged lines hidden (view full) ---

557 def p_statement__stall_and_wait(self, p):
558 "statement : STALL_AND_WAIT '(' var ',' var ')' SEMI"
559 p[0] = ast.StallAndWaitStatementAST(self, p[3], p[5])
560
561 def p_statement__wake_up_dependents(self, p):
562 "statement : WAKE_UP_DEPENDENTS '(' var ')' SEMI"
563 p[0] = ast.WakeUpDependentsStatementAST(self, p[3])
564
565 def p_statement__wake_up_all_dependents(self, p):
566 "statement : WAKE_UP_ALL_DEPENDENTS '(' ')' SEMI"
567 p[0] = ast.WakeUpAllDependentsStatementAST(self)
568
564 def p_statement__peek(self, p):
565 "statement : PEEK '(' var ',' type pairs ')' statements"
566 p[0] = ast.PeekStatementAST(self, p[3], p[5], p[6], p[8], "peek")
567
568 def p_statement__copy_head(self, p):
569 "statement : COPY_HEAD '(' var ',' var pairs ')' SEMI"
570 p[0] = ast.CopyHeadStatementAST(self, p[3], p[5], p[6])
571

--- 168 unchanged lines hidden ---
569 def p_statement__peek(self, p):
570 "statement : PEEK '(' var ',' type pairs ')' statements"
571 p[0] = ast.PeekStatementAST(self, p[3], p[5], p[6], p[8], "peek")
572
573 def p_statement__copy_head(self, p):
574 "statement : COPY_HEAD '(' var ',' var pairs ')' SEMI"
575 p[0] = ast.CopyHeadStatementAST(self, p[3], p[5], p[6])
576

--- 168 unchanged lines hidden ---