Download Latest Version btp-v3.02.zip (7.9 MB)
Email in envelope

Get an email when there's a new version of BTP - Basic To Pascal Translator

Home / BTP Compiler v3
Name Modified Size InfoDownloads / Week
Parent folder
btp-v3.02.zip 2023-07-02 7.9 MB
btp-v3.01.zip 2023-06-27 1.5 MB
README.md 2023-06-27 1.5 kB
btp-v3.zip 2023-06-25 1.2 MB
Totals: 4 Items   10.6 MB 0

BTP - Basic to Pascal Translator

BTP is a project that was born in 2003. After years of inactivity, with the intent of helping developers who are struggling with RapidQ and other Basic languages that cannot compile to 64-bit and other platforms, I decided to bring it back to life.

BTP translates standard and some extended Basic (RapidQ-like) code into FPC (Free Pascal Compiler) Pascal code, and uses Lazarus (a very powerful Delphi-like WYSIWYG IDE) libraries to handle GUI components.

BTP is not a stable and robust software yet, but it is very capable; it can translate RapidQ-like source code and generate Pascal (Delphi-like) source code.

BTP can use Lazarus LCL for GUI. You can create a form by simply declaring it like:

CREATE MainWindow AS BTPFORM
       Caption = "Hello Form"
       Width = 365
       Height = 200
       Position = poscreencenter
END CREATE

BTP supports multiple syntaxes when it comes to comments, and others like:

{
    THIS IS A MULTI-LINE COMMENT
}
/* 
    THIS IS ALSO A MULTI-LINE COMMENT
*/
'This is a single line comment
//This is also a single line comment.

When printing or appending strings, you can do it in multiple ways:

DIM strVar AS STRING
strVar = "World"
Print "Hello" & strVar
Print "Hello" + strVar

Overall, BTP syntax is very flexible.

There is no manual, but to get you started, you have an example folder where you can pull some ideas about how to write certain stuff.

Source: README.md, updated 2023-06-27