author | Jan Vrany <jan.vrany@labware.com> |
Tue, 11 Jul 2023 12:59:07 +0100 | |
branch | jv |
changeset 1174 | f0a16c301971 |
parent 1095 | 87f223484bc3 |
permissions | -rw-r--r-- |
1095
87f223484bc3
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:
625
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
87f223484bc3
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:
625
diff
changeset
|
2 |
|
39 | 3 |
"{ Package: 'stx:goodies/monticello' }" |
4 |
||
5 |
Object subclass:#MCDoItParser |
|
6 |
instanceVariableNames:'source' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
625 | 9 |
category:'SCM-Monticello-Chunk Format' |
39 | 10 |
! |
11 |
||
12 |
||
13 |
!MCDoItParser class methodsFor:'as yet unclassified'! |
|
14 |
||
15 |
concreteSubclasses |
|
16 |
^ self allSubclasses reject: [:c | c isAbstract] |
|
17 |
! |
|
18 |
||
211 | 19 |
forDoit: aString |
20 |
| c | |
|
21 |
^ (c := self subclassForDoit: aString) ifNotNil: [c new source: aString] |
|
39 | 22 |
! |
23 |
||
24 |
isAbstract |
|
25 |
^ self pattern isNil |
|
26 |
! |
|
27 |
||
28 |
pattern |
|
29 |
^ nil |
|
30 |
! |
|
31 |
||
32 |
subclassForDoit: aString |
|
33 |
^ self concreteSubclasses detect: [:ea | ea pattern match: aString] ifNone: [] |
|
34 |
! ! |
|
35 |
||
36 |
!MCDoItParser methodsFor:'as yet unclassified'! |
|
37 |
||
38 |
addDefinitionsTo: aCollection |
|
39 |
self subclassResponsibility |
|
40 |
! |
|
41 |
||
42 |
source |
|
43 |
^ source |
|
44 |
! |
|
45 |
||
46 |
source: aString |
|
211 | 47 |
source := aString |
39 | 48 |
! ! |
49 |
||
50 |
!MCDoItParser class methodsFor:'documentation'! |
|
51 |
||
52 |
version |
|
625 | 53 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCDoItParser.st,v 1.4 2012-09-11 21:21:47 cg Exp $' |
211 | 54 |
! |
55 |
||
56 |
version_CVS |
|
625 | 57 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCDoItParser.st,v 1.4 2012-09-11 21:21:47 cg Exp $' |
211 | 58 |
! |
59 |
||
60 |
version_SVN |
|
1095
87f223484bc3
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:
625
diff
changeset
|
61 |
^ '§Id: MCDoItParser.st 17 2010-10-13 12:07:52Z vranyj1 §' |
39 | 62 |
! ! |