435
|
1 |
"{ Package: 'stx:goodies/petitparser/parsers/java' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
PJExpressionNode subclass:#PJInfixOperationNode
|
|
6 |
instanceVariableNames:'left operator right'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'PetitJava-AST'
|
|
10 |
!
|
|
11 |
|
|
12 |
PJInfixOperationNode comment:'This node is a STUB!!!!!!!!
It''s being used for each node that consists of 2 expressions and some operation in between e.g.: +, -, =, +=, ==...'
|
|
13 |
!
|
|
14 |
|
|
15 |
!PJInfixOperationNode methodsFor:'accessing'!
|
|
16 |
|
|
17 |
left
|
|
18 |
^ left
|
|
19 |
!
|
|
20 |
|
|
21 |
left: anObject
|
|
22 |
left := anObject
|
|
23 |
!
|
|
24 |
|
|
25 |
operator
|
|
26 |
^ operator
|
|
27 |
!
|
|
28 |
|
|
29 |
operator: anObject
|
|
30 |
operator := anObject
|
|
31 |
!
|
|
32 |
|
|
33 |
right
|
|
34 |
^ right
|
|
35 |
!
|
|
36 |
|
|
37 |
right: anObject
|
|
38 |
right := anObject
|
|
39 |
! !
|
|
40 |
|
|
41 |
!PJInfixOperationNode methodsFor:'visiting'!
|
|
42 |
|
|
43 |
acceptVisitor: aVisitor
|
|
44 |
|
|
45 |
^ aVisitor visitInfixOperationNode: self
|
|
46 |
! !
|
|
47 |
|