Karel Compiler

Overview

This document describes the Karel compiler, which is a Java application that compiles programs written in the Karel programming language to Java class files that can be run on any computer with Java Virtual Machine.

Usage

The program source is compiled with the following command:

java -jar Karel.jar sourcefile destclass
Where sourcefile is name of the file containing source text of your Karel program and destclass is name you have chosen for the class which will be created from the Karel source. The file which will be created, will have the name destclass.class

Running Karel programs

The resulting class file is a standard Java class file, i.e. to start the program, use java destclass as in case of any other Java program. You only have to enable the Java runtime environment to find karel.common and karel.city packages.

NAVRCHOLU.cz