Re: I have lb to exe
- View Source
--- In libertybasic@y..., John Jacques <john.f.jacques@v...> wrote:
> It works basically like this:
> 1) Read the liberty.bas file
> 2) Convert any code on the line to bcx code
> 3) Save the new line into a 2nd file with a .bcx extension.
> The routines to gather the variables and to convert LB "function" statements
> do not follow the basic program flow as just stated in the previous 3 lines.
> I've been adding routines to the program almost daily. I have not re-written
> any sections of code to make them more efficient or to clean them up. I'm
> just making sure it all works right now.
> There's somewhere around 2000 lines of LB code right now.
This is a really cool project. It's going to need a lot of work though to make sure it doesn't have any nasty gotchas, and so that it keeps up with changes made to LB.
> The converter program lb2bcx.bas can be run on itself and made into a BCX
> basic file and then to a .exe executable file. It takes the converter to
> convert itself about 2 minutes running in LB, and about 1 second when
> lb2bcx.exe is run on the same LB code.
I wonder how long it takes under LB3.