author | mawalch |
Mon, 08 Aug 2016 20:13:50 +0200 | |
changeset 1010 | bac4a6f2690e |
parent 787 | 07d1bc57f716 |
permissions | -rw-r--r-- |
43 | 1 |
"{ Package: 'stx:goodies/monticello' }" |
2 |
||
3 |
MCDoItParser subclass:#MCSystemCategoryParser |
|
4 |
instanceVariableNames:'' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
689 | 7 |
category:'SCM-Monticello-Chunk Format' |
43 | 8 |
! |
9 |
||
787
07d1bc57f716
class: MCSystemCategoryParser
Claus Gittinger <cg@exept.de>
parents:
689
diff
changeset
|
10 |
!MCSystemCategoryParser class methodsFor:'documentation'! |
07d1bc57f716
class: MCSystemCategoryParser
Claus Gittinger <cg@exept.de>
parents:
689
diff
changeset
|
11 |
|
07d1bc57f716
class: MCSystemCategoryParser
Claus Gittinger <cg@exept.de>
parents:
689
diff
changeset
|
12 |
documentation |
07d1bc57f716
class: MCSystemCategoryParser
Claus Gittinger <cg@exept.de>
parents:
689
diff
changeset
|
13 |
" |
07d1bc57f716
class: MCSystemCategoryParser
Claus Gittinger <cg@exept.de>
parents:
689
diff
changeset
|
14 |
I parse PackageInfo statement from Monticello packages file |
07d1bc57f716
class: MCSystemCategoryParser
Claus Gittinger <cg@exept.de>
parents:
689
diff
changeset
|
15 |
" |
07d1bc57f716
class: MCSystemCategoryParser
Claus Gittinger <cg@exept.de>
parents:
689
diff
changeset
|
16 |
! ! |
43 | 17 |
|
18 |
!MCSystemCategoryParser class methodsFor:'as yet unclassified'! |
|
19 |
||
20 |
pattern |
|
21 |
^ 'SystemOrganization*' |
|
22 |
! ! |
|
23 |
||
24 |
!MCSystemCategoryParser methodsFor:'as yet unclassified'! |
|
25 |
||
26 |
addDefinitionsTo: aCollection |
|
27 |
| definition | |
|
188 | 28 |
definition := aCollection detect: [:ea | ea isOrganizationDefinition ] ifNone: [aCollection add: (MCOrganizationDefinition categories: #())]. |
43 | 29 |
definition categories: (definition categories copyWith: self category). |
30 |
! |
|
31 |
||
32 |
category |
|
33 |
| tokens | |
|
188 | 34 |
tokens := Scanner new scanTokens: source. |
43 | 35 |
tokens size = 3 ifFalse: [self error: 'Unrecognized category definition']. |
36 |
^ tokens at: 3 |
|
37 |
! ! |
|
38 |
||
39 |
!MCSystemCategoryParser class methodsFor:'documentation'! |
|
40 |
||
271 | 41 |
version |
787
07d1bc57f716
class: MCSystemCategoryParser
Claus Gittinger <cg@exept.de>
parents:
689
diff
changeset
|
42 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCSystemCategoryParser.st,v 1.5 2013-05-15 09:50:42 cg Exp $' |
271 | 43 |
! |
44 |
||
188 | 45 |
version_CVS |
787
07d1bc57f716
class: MCSystemCategoryParser
Claus Gittinger <cg@exept.de>
parents:
689
diff
changeset
|
46 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCSystemCategoryParser.st,v 1.5 2013-05-15 09:50:42 cg Exp $' |
188 | 47 |
! |
48 |
||
49 |
version_SVN |
|
787
07d1bc57f716
class: MCSystemCategoryParser
Claus Gittinger <cg@exept.de>
parents:
689
diff
changeset
|
50 |
^ '$Id: MCSystemCategoryParser.st,v 1.5 2013-05-15 09:50:42 cg Exp $' |
43 | 51 |
! ! |
787
07d1bc57f716
class: MCSystemCategoryParser
Claus Gittinger <cg@exept.de>
parents:
689
diff
changeset
|
52 |