author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 24 Jul 2019 21:13:30 +0000 | |
changeset 643 | 65da3a4195b6 |
parent 642 | 77d5fddb6462 |
permissions | -rw-r--r-- |
435 | 1 |
"{ Package: 'stx:goodies/petitparser/parsers/java' }" |
2 |
||
3 |
"{ NameSpace: Smalltalk }" |
|
4 |
||
5 |
PJStatementNode subclass:#PJExpressionStatementNode |
|
6 |
instanceVariableNames:'expression' |
|
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:
436
diff
changeset
|
12 |
PJExpressionStatementNode comment:'A statement which has nothing but expression in it. |
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:
436
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:
436
diff
changeset
|
14 |
|
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:
436
diff
changeset
|
15 |
Examples: |
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:
436
diff
changeset
|
16 |
|
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:
436
diff
changeset
|
17 |
5; |
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:
436
diff
changeset
|
18 |
a = 5; |
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:
436
diff
changeset
|
19 |
a.foo(); |
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:
436
diff
changeset
|
20 |
a = for(5);' |
435 | 21 |
! |
22 |
||
436 | 23 |
|
435 | 24 |
!PJExpressionStatementNode methodsFor:'accessing'! |
25 |
||
26 |
expression |
|
27 |
^ expression |
|
28 |
! |
|
29 |
||
30 |
expression: anExpression |
|
31 |
expression := anExpression |
|
32 |
! ! |
|
33 |
||
34 |
!PJExpressionStatementNode methodsFor:'visiting'! |
|
35 |
||
36 |
acceptVisitor: aVisitor |
|
37 |
||
38 |
^ aVisitor visitExpressionStatementNode: self |
|
39 |
! ! |
|
40 |
||
436 | 41 |
!PJExpressionStatementNode class methodsFor:'documentation'! |
42 |
||
43 |
version_HG |
|
44 |
||
45 |
^ '$Changeset: <not expanded> $' |
|
46 |
! ! |
|
47 |