author | Jan Vrany <jan.vrany@labware.com> |
Wed, 10 Jun 2020 21:33:27 +0100 | |
changeset 650 | 4c6ed0a28d18 |
parent 642 | 77d5fddb6462 |
permissions | -rw-r--r-- |
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:
454
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
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:
454
diff
changeset
|
2 |
|
376
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
3 |
"{ Package: 'stx:goodies/petitparser/tests' }" |
0 | 4 |
|
454
a9cd5ea7cc36
Portability: fixes for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
386
diff
changeset
|
5 |
"{ NameSpace: Smalltalk }" |
a9cd5ea7cc36
Portability: fixes for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
386
diff
changeset
|
6 |
|
0 | 7 |
TestResource subclass:#PPParserResource |
8 |
instanceVariableNames:'parsers' |
|
9 |
classVariableNames:'' |
|
10 |
poolDictionaries:'' |
|
11 |
category:'PetitTests-Core' |
|
12 |
! |
|
13 |
||
14 |
||
15 |
!PPParserResource methodsFor:'accessing'! |
|
16 |
||
17 |
parserAt: aParserClass |
|
18 |
"Answer a cached instance of aParserClass." |
|
51 | 19 |
|
0 | 20 |
^ parsers at: aParserClass name ifAbsentPut: [ aParserClass new ] |
21 |
! ! |
|
22 |
||
23 |
!PPParserResource methodsFor:'running'! |
|
24 |
||
25 |
setUp |
|
26 |
super setUp. |
|
27 |
parsers := Dictionary new |
|
28 |
! ! |
|
29 |
||
30 |
!PPParserResource class methodsFor:'documentation'! |
|
31 |
||
51 | 32 |
version |
33 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPParserResource.st,v 1.3 2012-05-04 22:09:18 vrany Exp $' |
|
34 |
! |
|
35 |
||
36 |
version_CVS |
|
37 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPParserResource.st,v 1.3 2012-05-04 22:09:18 vrany Exp $' |
|
38 |
! |
|
39 |
||
386
a409905f7f2d
Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
40 |
version_HG |
a409905f7f2d
Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
41 |
|
a409905f7f2d
Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
42 |
^ '$Changeset: <not expanded> $' |
a409905f7f2d
Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
43 |
! |
a409905f7f2d
Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
44 |
|
0 | 45 |
version_SVN |
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:
454
diff
changeset
|
46 |
^ '§Id: PPParserResource.st 4 2010-12-18 17:02:23Z kursjan §' |
0 | 47 |
! ! |
376
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
48 |