0
I Use This!
Activity Not Available

Project Summary

Icon interpreter in JavaThis project contains an implementation of an interpreter for a small part of the Icon programming language and is the code product of a student project at the IT University of Copenhagen. The interpreter is written in Java 5.0 and may be studied and used in any way compliant with the GPL. The authors of the project suspects this may be of interest to other students interested in the implementation of programming languages.

Icon constructsThe implementation is focused on a specific method of modeling evaluation of a goal-directed language and thus only aims to support an illustrative amount of types and language constructs. Only the integer type is supported. This table shows how much of Icon is implemented in this version of the program:

+ - Binary arithmetic operators. - Unary operator. < = Binary (in)equality operators. | & ; Connectives. to Integer generator (without step).

About the implementationThe implementation is essentially a realization of the method illustrated in “Denotational semantics of a goal-directed language” (Gudeman, D.A, 1999, ACM Transactions on Programming Languages and Systems 14(1), 107–125).

The interpreter makes use of the explicit representation of several continuations to model the backtracking and goal-directed evaluation which is the most interesting feature of the Icon programming language.

As part of the distributed code a parser implemented in Coco/R serves to map the concrete syntax of Icon to the abstract syntax encoded in the supplied Java classes.

Build in an object-oriented style, this implementation may, with relative little effort, be extended to support a wider range of Icon features and constructs.

Anyone interested in Icon in Java should checkout Jcon, a complete Java-implementation of Icon.

Getting startedAs mentioned this will only be of interest to people who want to study the code. This is not user software.

To check out the code with subversion and build it with ant; open your terminal or prompt and paste the following:

svn checkout http://iconinterpreter.googlecode.com/svn/trunk/ iconinterpreter
cd iconinterpreter
antTo run the interpreter write:

java -cp out iconinterpreter/Icon

Tags

java student

In a Nutshell, iconinterpreter...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

GNU General Public License v2.0 or later
Permitted

Place Warranty

Commercial Use

Modify

Distribute

Forbidden

Sub-License

Hold Liable

Required

Distribute Original

Disclose Source

Include Copyright

State Changes

Include License

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    you can subscribe to e-mail newsletters to receive update from the Open Hub blog
  • ...
    65% of companies leverage OSS to speed application development in 2016
  • ...
    check out hot projects on the Open Hub

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis