author | Patrik Svestka <patrik.svestka@gmail.com> |
Wed, 14 Nov 2018 13:01:14 +0100 | |
changeset 642 | 77d5fddb6462 |
parent 435 | 3bc08fb90133 |
permissions | -rw-r--r-- |
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 |
||
642
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
435
diff
changeset
|
12 |
PJInfixOperationNode comment:'This node is a STUB!!!!!!!! |
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
435
diff
changeset
|
13 |
|
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
435
diff
changeset
|
14 |
It''s being used for each node that consists of 2 expressions and some operation in between e.g.: +, -, =, +=, ==...' |
435 | 15 |
! |
16 |
||
17 |
!PJInfixOperationNode methodsFor:'accessing'! |
|
18 |
||
19 |
left |
|
20 |
^ left |
|
21 |
! |
|
22 |
||
23 |
left: anObject |
|
24 |
left := anObject |
|
25 |
! |
|
26 |
||
27 |
operator |
|
28 |
^ operator |
|
29 |
! |
|
30 |
||
31 |
operator: anObject |
|
32 |
operator := anObject |
|
33 |
! |
|
34 |
||
35 |
right |
|
36 |
^ right |
|
37 |
! |
|
38 |
||
39 |
right: anObject |
|
40 |
right := anObject |
|
41 |
! ! |
|
42 |
||
43 |
!PJInfixOperationNode methodsFor:'visiting'! |
|
44 |
||
45 |
acceptVisitor: aVisitor |
|
46 |
||
47 |
^ aVisitor visitInfixOperationNode: self |
|
48 |
! ! |
|
49 |