INSTALLATION
Download the CoCo plug-in for Eclipse from here
and copy it to the directory <plugins> in the Eclipse
home directory. You should do this before you start Eclipse. Eclipse loads the
plugins from the plugins directory automatically at startup.
START A JAVA PROJECT
This plug-in is only for the java version of Eclipse. Create a new java project.
File->new project --> java project. ![](images\new_java.JPG)
IMPORT REQUIRED FILES
You need to import these files to the project (only once, at the beginning) Coco.jar,
Scanner.frame and Parser.frame. You will find
these Files in the Directory Coco_library in the Coco Plugin
directory. Please note that you need to use the Coco.jar included in this
directory, as it is a special version that has been changed for this
purpose. This is how the Project looks like, after you import all the
required files.![](images\imports.JPG)
CREATE A NEW FILE WITH EXTENSION .ATG
Using the right mouse click--> new file, you can create a new File. The file
should have the exension .ATG. After doing this the ATGEditor is activated and
you can write your attributed Grammar for your new
compiler.
![](images\new_atg.JPG)
![](images\editor.JPG)
|