43
|
1 |
"{ Package: 'stx:goodies/monticello' }"
|
|
2 |
|
|
3 |
MCDoItParser subclass:#MCSystemCategoryParser
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Monticello-Chunk Format'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!MCSystemCategoryParser class methodsFor:'as yet unclassified'!
|
|
12 |
|
|
13 |
pattern
|
|
14 |
^ 'SystemOrganization*'
|
|
15 |
! !
|
|
16 |
|
|
17 |
!MCSystemCategoryParser methodsFor:'as yet unclassified'!
|
|
18 |
|
|
19 |
addDefinitionsTo: aCollection
|
|
20 |
| definition |
|
188
|
21 |
definition := aCollection detect: [:ea | ea isOrganizationDefinition ] ifNone: [aCollection add: (MCOrganizationDefinition categories: #())].
|
43
|
22 |
definition categories: (definition categories copyWith: self category).
|
|
23 |
!
|
|
24 |
|
|
25 |
category
|
|
26 |
| tokens |
|
188
|
27 |
tokens := Scanner new scanTokens: source.
|
43
|
28 |
tokens size = 3 ifFalse: [self error: 'Unrecognized category definition'].
|
|
29 |
^ tokens at: 3
|
|
30 |
! !
|
|
31 |
|
|
32 |
!MCSystemCategoryParser class methodsFor:'documentation'!
|
|
33 |
|
271
|
34 |
version
|
|
35 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCSystemCategoryParser.st,v 1.3 2011-08-20 12:00:34 cg Exp $'
|
|
36 |
!
|
|
37 |
|
188
|
38 |
version_CVS
|
271
|
39 |
^ '$Header: /cvs/stx/stx/goodies/monticello/MCSystemCategoryParser.st,v 1.3 2011-08-20 12:00:34 cg Exp $'
|
188
|
40 |
!
|
|
41 |
|
|
42 |
version_SVN
|
|
43 |
^ '§Id: MCSystemCategoryParser.st 5 2010-08-29 07:30:29Z vranyj1 §'
|
43
|
44 |
! !
|