aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Search




Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Webmaster - Infos
Visits

   visitors

   visitors online

article.gifIII. Palm Freeware - 7. LaFac

LaFac

Copyright (C) 2004-2006 Laurent Duveau



LaFac

  • Version : 1.2 (November 2006)
  • Freeware for :
  • Language :
  • Screen :
  • Downloadable File : lafac.zip (371 Kb)

LaFac stands for aldweb's LAnguage FACtory for Palm.
LaFac is a development tool which works directly from your Palm device.
LaFac comes with a p-code compiler for all 4 available development languages (one loop p-code compilers), a p-code runtime engine, a debugger, and a Stand-alone application builder.
LaFac currently comes with 4 inbuilt development languages:
1. Hellish & Esoteric Language for Palm = HELP (my invention)
2. micro BASic = µBAS
3. micro PAScal = µPAS
4. micro C = µC


Updates Description

v1.2 (11/17/06)
- FIX: if the last line of a source code was a comment without a final line feed, compilation would sometimes return a syntax error
- FIX: the number shown in the Runtime Option (Break every n instructions) would sometimes be filled with strange random characters instead of a number although the value hold by the application was OK
- ADD: High Resolution icons; this is a very kind contribution from Mike Featherstone (better late than never, Mike sent me these nice icons more than one year ago!); Thank you Mike
- ADD: various source code optimisations in the µBAS, µPAS and µC compilers
- ADD: explanations about the 2nd and 3rd parameters for MID$ (µBAS), SubString (µPAS) and SubStr (µC) functions in this help file (3rd parameter is endPosition and not NumberOfCharacters as it is more often the case for these languages)
- ADD: some information in this Help file to explain that LaFac was a proof of concept for a much more sophisticated compiler, iziBasic, which I developed afterwards
- Changed Donation URL (even though nobody ever donated for this freeware...)

v1.1 (07/22/04)
- FIX: if the user did not make a selection in popup list then a bad name string or an empty string was displayed in the popup instead of the previous selected item
- FIX: LaFac did not handle correctly instructions line > 63 characters in µBAS, µPAS and µC
- FIX: the data entry field could stay stuck in Numeric entry when asking for Text entry
- DEL: removed the CallCS / PeekCS / PokeCS / PeekNS / PokeNS / PeekTS / PokeTS functions which were of very little interest in LaFac
- ADD: LaFac can now work with the new Memos application introduced in PalmOS 5.2.8?, PMem/DATA creator/type (thanks Farcaller)
- ADD: Time format is now HH:mm:ss (was HH:mm)
- ADD: changed IntToString(popN) to RealToString(popN,number of decimals)
- ADD: various source code optimisations in the compilers

1.0 (06/05/04)
- initial release

Creation date : 05/06/2004 @ 23:20
Last update : 30/04/2007 @ 19:24
Category : III. Palm Freeware

 
react.gifReactions to this article

Reaction #15 

by aldweb 07/03/2010 @ 16:32

Hello,

In HELP: ?a
In µBas: INPUT A$
In µPas: READ(cA);
In µC: GETS(cA);

Cheers,
aldweb

Reaction #14 

by Daimon 05/03/2010 @ 09:24

This is an awesome program (I will buy iziBasic when I can afford it) but I have a problem, how can I input text?

I can input numbers easy but can not figure out how to input a text string...(None of the samples shows this)  any help would be appreciated

Reaction #13 

by Laurianne Gardeux 23/11/2008 @ 22:26

And here the second. It converts decimals to human-readable binaries...

***
'dez2bin.mbas

getNum:
PRINT "Enter a Number (max. 16'777'215):"
INPUT N
PRINT N USING 0;
IF N>16777215 PRINT " is TO HIGHT!" : GOSUB getNum
RETURN

transform:
X=8388608
A=0
WHILE X>=1
Y=0
IF N>=X Y=1 : N=N-X
PRINT Y USING 0;
X=X/2
INC A
IF A=4 PRINT " ";
IF A=8 PRINT " ";
IF A=12 PRINT " ";
IF A=16 PRINT " ";
IF A=20 PRINT " ";
WEND
RETURN

BEGIN
GOSUB getNum
PRINT " in decimal is in binary:"
T=TICKS
GOSUB transform
R=TICKS-T/TICKSPERSEC
PRINT
PRINT R USING 2;
PRINT " seconds needed to transform"
END

Reaction #12 

by Laurianne Gardeux 23/11/2008 @ 22:23

Here my first script in mbas. Its a simple chronometer for sport-trainers ;)

***

'first9.mbas
BEGIN
CLS
PRINT "hit 'Enter' for START"
PRINT "and hit 'Enter' each time for STOPP"
A=1
WAIT
T=TICKS
CLS
PRINT " RUN !"
WHILE A<=9
WAIT
S=TICKS-T/TICKSPERSEC
PRINT A USING 0;
PRINT ") ";
H=0
WHILE S>3599
INC H
S=S-3600
WEND
M=0
WHILE S>59
INC M
S=S-60
WEND
PRINT H USING 0;
PRINT " h ";
PRINT M USING 0;
PRINT " m ";
PRINT S USING 2;
PRINT " s "
INC A
WEND
END

Reaction #11 

by Mark Wagner 30/01/2008 @ 12:24

Thanx so much for Your quick answer. I now understand.

all the best
Mark

Reaction #10 

by aldweb 30/01/2008 @ 08:01

Hello Mark,

Since LaFac is a one simple pass compiler, all GOTO statements must refer to a [jumpmark] that is defined ahead in the program.
So you should write your source code this way:

GOTIT:
Print "OOPS, GOT IT!"
END

BEGIN
PRINT "Try to stop this programm!"
START:
INPUT A
IF A=666 then GOTO GOTIT
GOTO START


Cheers,
aldweb

Reaction #9 

by Mark Wagner 29/01/2008 @ 20:45

Dear Laurent,

this might be a stupid request - but I am just stuck with what i know. I am trying to set a god old "If a=x then GOTO ...[jumpmark]"-Command using LaFac - Micro Basic. It does not seem to work eather way I try. (compilation error). Is there a chart on your site or anywhere on the net, that explains all the commands that work on the Basic Version that you used.

SIMPLE Example for what I am trying to do:

BEGIN
PRINT "Try to stop this programm!"
START:
INPUT A
IF A=666 then GOTO GOTIT
GOTO START

GOTIT:
Print "OOPS, GOT IT!"
END

THANX A LOT. Don't hesitate, to simply send Your Answer to my eMail, if thats fine with you.

Great Programm man!

Reaction #8 

by aldweb 21/01/2006 @ 15:34

Hello Jared,

You must have hundreds of memo records to get a time lag when loading LaFac.

For graphics and sound support, this is not planned at all in LaFac. LaFac was my proof of concept for a runtime compiler, and the enhanced version, focused on the BASIC language only, with graphics and sound support (and many, many other things!), is iziBasic

Cheers,
aldweb

Reaction #7 

by Jared 17/01/2006 @ 22:05

LOVE IT. It would be nice if you could add an option-"not scan on start"-, because its annoying to have to wait. Also-any graphics, sound support?

Reaction #6 

by Werner 24/07/2004 @ 15:19

Apologies!

I have to correct my first message.
Actually the program does *not* crash!
It just needs about 30 seconds to scan all my memos.
Meanwhile it only *seems* to have crashed - 30 seconds subjectively is quite a long time!

Werner

Reaction #5 

by Werner 24/07/2004 @ 14:38

Nice program! Works great on a Palm Emulator. But unfortunately crashs on a Sony Clie PEG-T625C, even with 160 * 160 resolution.

Neanmoins: Excellent!

Werner

Reaction #4 

by Palmipod 12/06/2004 @ 22:42

+ ??? alors ?

Reaction #3 

by gmigueis 07/06/2004 @ 17:03

Jolie! Beautiful! A jewel for algorithm creation and test.

Reaction #2 

by Palmipod 06/06/2004 @ 22:41

un must ! 4 langages dans un seul outil, du jamais vu sur un Palm !!!!

Reaction #1 

by Pierre 06/06/2004 @ 10:46

Un mot et un seul :
BALAIZE !
 
Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Weather / Spam / www

Lyon Weather


aldweb against spam


Family's web sites

Friends News
Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
^ Top ^