User: Password:
   Keep me logged in.
Register  |  I forgot my password

Login  |  Register

Efficient Java Tools  - Listing Details

ID:211
Title:Compiler Generator Coco/R
Pagerank:4
Short Description:
Listing Thumbnail

Coco/R is a compiler generator, which takes an attributed grammar of a source language and generates a scanner and a parser for this language. The scanner works as a deterministic finite automaton. The parser uses recursive descent. LL(1) conflicts can be resolved by a multi-symbol lookahead or by semantic checks. Thus the class of accepted grammars is LL(k) for an arbitrary k.

 

There are versions of Coco/R for different languages (see below). The latest versions from the University of Linz are those for C#, Java and C++, which can be downloaded from this site. As an exception, it is allowed to write an extension of Coco/R that is used as a plugin in non-free software. If not otherwise stated, any source code generated by Coco/R (other than Coco/R itself) does not fall under the GNU General Public License.

Description:

Used by:

 

Projects using Coco/R: Many projects use Coco/R to parse data e.g. logs, configurations, and user input. Here we list some great projects doing so. If you used Coco/R for a project that might also be of interest to others, please send us a link to a Web page describing the project.

VaP by PEC - Petschacher Consulting : VaP is a tool for civil engineering and more to calculate statistical metrics, and make analysis thereof.

CocoXml by Charles Wang: Implementation of Coco/R in C, and Coco/R generated XML tag syntax parser.

Java.ATG: A sample ATG for Java 1.4 (a template) that produces a

complete scanner and   parser for Java source code. Add your own semantic actions to

customize your parser.

JavaParser.java: The source code for the main class of a simple sample Java

parser that uses the scanner and parser generated from the above Java.ATG. It only reports the number of syntax errors found in any parsed Java source.

JavaGrammar.html: HTML documentation of the Java grammar used in Java.ATG.

Taste.zip: The sources of the sample compiler (Taste) described in the

user manual.

CSharp.ATG: Asample ATG for C# (a template) that produces a complete scanner and parser for C# source code. Add your own semantic actions to customize your parser.

Eclipse Plug-in: Integration into the development environment Eclipse

Summary:

 

        Coco/R generates a scanner and a recursive descent parser from an attributed grammar

        LL(1) conflicts can be handled with resolversGrammars for C# and Java are available in Coco/R format

        Many companies and projects use Coco/R
-              SharpDevelop: a C# IDE             

              -              Software Tomography: Static Analysis Tool             

              -              CSharp2Html: HTML viewer for C# sources             

              -              currently 39000 hits for Coco/R in Google

        Coco/R is open source software (GnuGPL)

        Coco/R has been used by us to build

-         a white-box test tool for C#

-         a profiler for C#

-         a static program analyzer for C#

-         a metrics tool for Java

-         compilers for domain-specific languages

-         a log file analyzer

Category:Code Generation
Link Owner:
Date Added:May 02, 2010 06:43:53 PM
Number Hits:27
URL:    http://www.ssw.uni-linz.ac.at/Research/Projects/Coco/
Ratings
You must be logged in to leave a rating.
Average rating: (0 votes)
Reviews

No Reviews Yet.


You must be logged in to leave a Comment.