def fp_single_op_instr(self, p): self.lineno = p.lineno if p.operand.type() == "Expression": op = expr.AddrIndex(None, p.operand) elif p.operand.type() == "BinaryExpression": op = expr.AddrIndex(None, p.operand) else: op = p.operand return stmt.KeywordStmt(self.lineno, p.FP_SINGLE_OP_KEYWORD, op)
def keyword_statement(self, p): self.lineno = p.lineno if p.operand.type() == "Expression": op = expr.AddrIndex(None, p.operand) elif p.operand.type() == "BinaryExpression": op = expr.AddrIndex(None, p.operand) else: op = p.operand return stmt.KeywordStmt(self.lineno, p.SINGLE_OP_KEYWORD, op)
def keyword_statement(self, p): self.lineno = p.lineno tmp = p.expression if p.expression.type() == "Expression": op = expr.AddrIndex(None, p.expression) elif p.expression.type() == "BinaryExpression": op = expr.AddrIndex(None, p.expression) else: op = p.expression return stmt.KeywordStmt(self.lineno, p[0], op)
def fp_double_op_instr(self, p): self.lineno = p.lineno if p.operand0.type() == "Expression": op0 = expr.AddrIndex(None, p.operand0) elif p.operand0.type() == "BinaryExpression": op0 = expr.AddrIndex(None, p.operand0) else: op0 = p.operand0 if p.operand1.type() == "Expression": op1 = expr.AddrIndex(None, p.operand1) elif p.operand1.type() == "BinaryExpression": op1 = expr.AddrIndex(None, p.operand1) else: op1 = p.operand1 return stmt.KeywordStmt(self.lineno, p.FP_DOUBLE_OP_KEYWORD, op0, op1)
def keyword_statement(self, p): self.lineno = p.lineno if p.operand0.type() == "Expression": op0 = expr.AddrIndex(None, p.operand0) elif p.operand0.type() == "BinaryExpression": op0 = expr.AddrIndex(None, p.operand0) else: op0 = p.operand0 if p.operand1.type() == "Expression": op1 = expr.AddrIndex(None, p.operand1) elif p.operand1.type() == "BinaryExpression": op1 = expr.AddrIndex(None, p.operand1) else: op1 = p.operand1 return stmt.KeywordStmt(self.lineno, p.DOUBLE_OP_KEYWORD, op0, op1)
def fp_instr(self, p): self.lineno = p.lineno return stmt.KeywordStmt(self.lineno, p.FP_SIMPLE_KEYWORD)
def keyword_statement(self, p): self.lineno = p.lineno return stmt.KeywordStmt(self.lineno, p.SIMPLE_KEYWORD)