RUNNING COCO

After you have written your attributed grammar, launching CoCo to generate Scanner and Parser is very easy. To get to the CoCo launcher, use the Menu Run --> Run.. or use the shortcut as shown below.

            

Click on new to create an instance of Coco launcher.

       

 All other parameters except the filename are optional. The user can specify a package to which the generated scanner and parser should belong. if no package is defined, the generated classes belong to the default namespace.

The -frames option can be used to specify the directory that contains the frame files Scanner.frame and Parser.frame. If this option is missing CoCo ecpects the frame files to be in the same directory as the attributed grammar.

The -trace option allows the user to specify a string of switches that cause the internal data structures of CoCo/R to be dumped to the trace.txt.

For more on this please go through the CoCo user manual.

Under the Tab "Arguments", as shown below, it is important to set the Working directory to the Workspace. This gives the Virtual machine the information where the required files can be found.

After all of that, you just need to click on "Run" to launch CoCo. The errors detected by CoCo are displayed as below.

SCREENSHOTS

DOWNLOAD

HELP

CONTACT 

 
 
      
 
 
 
 
  HOME      SCREENSHOTS     DOWNLOAD     HELP     CONTACT US
Deepak Dhungana 2004 Terms Of Use