124,125d123
< 'THIS' : 'THIS',
< 'CHIP' : 'CHIP',
622,642d619
< # globally access a local chip component and call a method
< def p_expr__local_chip_method(self, p):
< "aexpr : THIS DOT var '[' expr ']' DOT var DOT ident '(' exprs ')'"
< p[0] = ast.LocalChipMethodAST(self, p[3], p[5], p[8], p[10], p[12])
<
< # globally access a local chip component and access a data member
< def p_expr__local_chip_member(self, p):
< "aexpr : THIS DOT var '[' expr ']' DOT var DOT field"
< p[0] = ast.LocalChipMemberAST(self, p[3], p[5], p[8], p[10])
<
< # globally access a specified chip component and call a method
< def p_expr__specified_chip_method(self, p):
< "aexpr : CHIP '[' expr ']' DOT var '[' expr ']' DOT var DOT ident '(' exprs ')'"
< p[0] = ast.SpecifiedChipMethodAST(self, p[3], p[6], p[8], p[11], p[13],
< p[15])
<
< # globally access a specified chip component and access a data member
< def p_expr__specified_chip_member(self, p):
< "aexpr : CHIP '[' expr ']' DOT var '[' expr ']' DOT var DOT field"
< p[0] = ast.SpecifiedChipMemberAST(self, p[3], p[6], p[8], p[11], p[13])
<
721,724d697
<
< def p_field(self, p):
< "field : ident"
< p[0] = p[1]