PocketC Overview

PocketC is a PalmPilot-based compiler that can take source code from a memo and compile it to bytecode that will run in the PocketC virtual machine. Currently there is no way to create a standalone application with PocketC (the PocketC application is required to run any applet that you create.

PocketC version 1.0b1 (with which this file came) is a beta application. As such, it may contain some bugs and rough documentation. The current version is shareware with registration available at PalmPilotGear HQ.
The latest version will always be available at the OrbWorks homepage.

Language reference
Library routines reference

Writing an Applet

A PocketC applet is written as a memopad record. The first line of the record must be a comment (//-style) which states the name of the applet.
Example: “// Hello World”.

Compiling an Applet

Press the Compile… button. Select the memo that you would like to compile, and press Compile. An alert will popup either informing you that the compiliation was successful or will indicate the location and type of the first error.

Executing an Applet

Select a compiled applet from the list, and press Execute. The Output form will open, and your applet will run. When the applet exits (either normally or by pressing the Done button), the main form reappears. To switch back to the Output form, press the output button.

Backing Up an Applet

To backup an individual applet, select it from the main form, and choose ‘Toggle Backup’ from the Applet menu. Backing up an applet is a way to share the compiled form of an applet without sharing the source.

Deleting a User-Database

Some applets will create databases to store preferences or other useful data. However, if you delete an applet, you may also want to delete the database(s) that it created. To do this, select the Applet|Databases... menu item. A list of user databases will be presented. Press the Delete... button to delete the selected database.