560,561c560,561
< "statement : ENQUEUE '(' var ',' type pairs ')' statements"
< p[0] = ast.EnqueueStatementAST(self, p[3], p[5], p[6], p[8])
---
> "statement : ENQUEUE '(' var ',' type ')' statements"
> p[0] = ast.EnqueueStatementAST(self, p[3], p[5], None, p[7])
562a563,566
> def p_statement__enqueue_latency(self, p):
> "statement : ENQUEUE '(' var ',' type ',' expr ')' statements"
> p[0] = ast.EnqueueStatementAST(self, p[3], p[5], p[7], p[9])
>
579,586d582
< def p_statement__static_cast(self, p):
< "aexpr : STATIC_CAST '(' type ',' expr ')'"
< p[0] = ast.StaticCastAST(self, p[3], "ref", p[5])
<
< def p_statement__static_cast_ptr(self, p):
< "aexpr : STATIC_CAST '(' type ',' STRING ',' expr ')'"
< p[0] = ast.StaticCastAST(self, p[3], p[5], p[7])
<
607a604,611
> def p_expr__static_cast(self, p):
> "aexpr : STATIC_CAST '(' type ',' expr ')'"
> p[0] = ast.StaticCastAST(self, p[3], "ref", p[5])
>
> def p_expr__static_cast_ptr(self, p):
> "aexpr : STATIC_CAST '(' type ',' STRING ',' expr ')'"
> p[0] = ast.StaticCastAST(self, p[3], p[5], p[7])
>