--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Cface__GeneratorCommand.st Tue May 27 18:55:24 2008 +0000
@@ -0,0 +1,85 @@
+"{ Package: 'cvut:fel/cface' }"
+
+"{ NameSpace: Cface }"
+
+Object subclass:#GeneratorCommand
+ instanceVariableNames:'platform mappings definitions'
+ classVariableNames:''
+ poolDictionaries:''
+ category:'Cface-Generators'
+!
+
+
+!GeneratorCommand methodsFor:'accessing'!
+
+definitions
+ ^ definitions
+
+ "Created: / 18-02-2008 / 15:36:22 / janfrog"
+!
+
+definitions:aFilename
+ definitions := self platform parser parse: aFilename contents asString.
+
+ "Created: / 18-02-2008 / 15:36:22 / janfrog"
+!
+
+mappings
+ ^ mappings ifNil:[platform mappings]
+
+ "Created: / 18-02-2008 / 15:35:04 / janfrog"
+ "Modified: / 27-05-2008 / 14:22:00 / Jan Vrany <vranyj1@fel.cvut.cz>"
+!
+
+mappings:something
+ mappings := something.
+
+ "Created: / 18-02-2008 / 15:35:04 / janfrog"
+!
+
+platform
+
+ platform ifNil:[platform := Cface::Platform theInstance].
+ ^platform
+
+ "Created: / 18-02-2008 / 15:28:45 / janfrog"
+!
+
+platform:something
+ platform := something.
+
+ "Created: / 18-02-2008 / 15:30:12 / janfrog"
+!
+
+typeMapper
+
+ ^platform typeMapper
+
+ "Created: / 18-02-2008 / 15:30:40 / janfrog"
+!
+
+typeResolver
+
+ ^platform typeResolver
+
+ "Created: / 18-02-2008 / 15:30:32 / janfrog"
+! !
+
+!GeneratorCommand methodsFor:'processing'!
+
+process
+
+
+ self platform typeResolver process: definitions.
+ self platform typeMapper process: definitions using: self mappings.
+ self halt.
+
+ "Created: / 18-02-2008 / 15:25:54 / janfrog"
+ "Modified: / 27-05-2008 / 14:23:16 / Jan Vrany <vranyj1@fel.cvut.cz>"
+! !
+
+!GeneratorCommand class methodsFor:'documentation'!
+
+version
+ ^ '$Header: /opt/data/cvs/cvut-fel/cface/Cface__GeneratorCommand.st,v 1.1 2008/02/26 15:58:30 vranyj1 Exp $'
+! !