|
AndroidForth (v. 1.6.2)
gusthy опубликовал приложение 2012-05-19
(обновлено 2012-05-19)
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 gusthy@gmail.com!
|
Бесплатно
|