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 'state_declaration' : 'STATE_DECL', 160 'peek' : 'PEEK', 161 'stall_and_wait' : 'STALL_AND_WAIT', |
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', --- 401 unchanged lines hidden (view full) --- 571 def p_statement__enqueue(self, p): 572 "statement : ENQUEUE '(' var ',' type pairs ')' statements" 573 p[0] = ast.EnqueueStatementAST(self, p[3], p[5], p[6], p[8]) 574 575 def p_statement__stall_and_wait(self, p): 576 "statement : STALL_AND_WAIT '(' var ',' var ')' SEMI" 577 p[0] = ast.StallAndWaitStatementAST(self, p[3], p[5]) 578 |
579 def p_statement__peek(self, p): 580 "statement : PEEK '(' var ',' type pairs ')' statements" 581 p[0] = ast.PeekStatementAST(self, p[3], p[5], p[6], p[8], "peek") 582 583 def p_statement__copy_head(self, p): 584 "statement : COPY_HEAD '(' var ',' var pairs ')' SEMI" 585 p[0] = ast.CopyHeadStatementAST(self, p[3], p[5], p[6]) 586 --- 168 unchanged lines hidden --- |