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', |
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 |
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 --- |