AndroidForth

AndroidForth


A simple Forth interpreter based on SFI, modified to support arrays, nested loops, return stack and so on.
More features are coming :)

Simply put your Forth code to /sdcard/main.fth and start this app.
Special word syntax:
BUTTON:
(width height id label_key label_len handler_key handler_len -- )

Event handler must be a user defined word, cannot be primitive!

TEXTBOX:
shows an one-line editable textbox.
(width height id -- )

GETTEXT:
reads content of textbox with given id.
(id -- key length)

ALERTDIALOG:
Shows a dialog without any button, you must give title and message as input.
(title_key title_length msg_key msg_length -- )

DIAL:
Calls a phone number, the input is a string.

(key length -- )

Example:

: BUTTONPRESS S" You typed: " 100 GETTEXT ALERTDIALOG ;
30 50 100 TEXTBOX
30 50 105 S" Press me! " S" BUTTONPRESS" BUTTON


If you have questions or ideas, feel free to contact me at [email protected]!

Recent changes:
Changes for 1.6.1:

Fixed S" :)

Changes for 1.6.2:
Added DIAL to call a phone number
Add to list
Free
56
2.8
User ratings
6
Installs
100+
Concerns
0
File size
33 kb
Screenshots
Screenshot of AndroidForth Screenshot of AndroidForth Screenshot of AndroidForth

About AndroidForth
A simple Forth interpreter based on SFI, modified to support arrays, nested loops, return stack and so on.
More features are coming :)

Simply put your Forth code to /sdcard/main.fth and start this app.
Special word syntax:
BUTTON:
(width height id label_key label_len handler_key handler_len -- )

Event handler must be a user defined word, cannot be primitive!

TEXTBOX:
shows an one-line editable textbox.
(width height id -- )

GETTEXT:
reads content of textbox with given id.
(id -- key length)

ALERTDIALOG:
Shows a dialog without any button, you must give title and message as input.
(title_key title_length msg_key msg_length -- )

DIAL:
Calls a phone number, the input is a string.

(key length -- )

Example:

: BUTTONPRESS S" You typed: " 100 GETTEXT ALERTDIALOG ;
30 50 100 TEXTBOX
30 50 105 S" Press me! " S" BUTTONPRESS" BUTTON


If you have questions or ideas, feel free to contact me at [email protected]!

Recent changes:
Changes for 1.6.1:

Fixed S" :)

Changes for 1.6.2:
Added DIAL to call a phone number
User reviews of AndroidForth
Write the first review for this app!
Android Market Comments
A Google User
Jun 16, 2011
It does work and can really allow program creation in combination with a good editor (sheditor works). The implementation of S" is very wrong in v1.6
A Google User
Jun 16, 2011
It does work and can really allow program creation in combination with a good editor (sheditor works). The implementation of S" is very wrong in v1.6
Jeff Fox
Jun 16, 2011
It does work and can really allow program creation in combination with a good editor (sheditor works). The implementation of S" is very wrong in v1.6
Jeff Fox
Jun 16, 2011
It does work and can really allow program creation in combination with a good editor (sheditor works). The implementation of S" is very wrong in v1.6
A Google User
May 21, 2011
Crashes the Samsung Galaxy Tab