MetaDeepFJig*

You have downloaded the prototype of MetaDeepFJig*.

------------------------------------------------
How to use the prototype:

Graphical Interface:
  java -jar MFJ.jar

Command Line:
  java -jar MFJ.jar compile srcFile.mfj destFolder
to compile the file "srcFile.mfj" and to store the result in the folder "destFolder"
  java -jar MFJ.jar execute destFolder
to execute the program stored in the folder "destFolder"

Note, the Java version have to include the compiler, i.e. have to be from a jdk.
------------------------------------------------


Getting started:

-Start with the graphical interface. 
You will find an example code already there.
press "compile and execute"
you will see in "round 1" the resulting code after compile time execution, and 
the console will report that "compile time execution" has been printed.
In "Main" you will see that 1 is printed (from Bar.foo)

Now go to "source", change the flag to false and press again "compile and execute"
You will see that now there is a "CheckError", stating (in an involved way) that method foo is not there.
now comment lines 14 and 15, and uncomment 16 and 17.
Now you are using "bar" instead of "foo"
The program should compile and the mail will print 2 (from Bar.bar)

Now you are ready to explore new examples.
In folder Examples you can find many different examples; use the "loadFile" button to load the examples you like:

-complexTree.mfj
  contains a code showing how compile time execution works with complex nesting trees and many occurrences of "copy"
-operatorsExample.mfj
  shows operators behaviour.
-dbMinimal.mfj
  contains a minimal mock implementation for a type provider producing the schema of a DB.
  as you can see, is possible to generate a class with two nested "Foo" and "Bar", with two fields each.
-genericsMinimal.mfj
  contains a minimal implementation of ordered list, showing how to emulate template specialization
-collections.mfj
  An active collection library, able to generate only lists for the sake of the exmaple.
  Tested to create an active library TaskPerformerProducer to produce library performing
  a sequence of specific tasks.
  The example also relies on some utility classes.
-rename.mfj
  A user defined Rename operator, using the fluent interface design pattern.
  The example also relies on some utility classes.
-enumSimple.mfj
  Using the Rename and the Collections classes introduced before,
  we show an implementation of Enumerations as active library.
 
-thesis.mfj
  Contains many more examples form
  "MetaFJig. A Meta-Circular Composition Language for Java-like Classes" Ph.D. Thesis.
 