gbw31
Gambas scripter
Usage
gbs3 [options]
[--]
[{<script
file> | -}]
gbs3 --convert-project
<source
project
directory>
<destination
script
directory>
Overview
Overview
Gambas is a free development environment based on a Basic interpreter with object extensions, a mix of Java(tm) and Visual Basic(tm). With Gambas, you can quickly design your program GUI with Qt or GTK+, access database systems like MySQL, PostgreSQL, SQlite or ODBC databases, pilot applications with DBus, translate your program into many languages, create GStreamer, OpenGL or SDL applications, and so on...
gbs3 is the interpreter that allows you to compile and execute a Gambas script.
gbs3 may also be used to convert a gambas project to a script
Options
-
-b, --buildonly -
process and compile the script without executing it
-
-c, --nocache -
force the script compilation (do not check cache)
-
-e -
execute the source code provided by the command line ( ':' separator )
-
-f, --fast -
use just-in-time compiler TP -g, --debug add debugging information to application
-
-h, --help -
display help and exit
-
-l, --list -
display a list of available Components or Libraries, '-l component' or '-l library'
-
-L, --license -
display license
-
-S --strict -
fail if 'Public' or 'Sub' are defined without a 'main' function otherwise create main()
-
-t, --trace -
turn on tracing option during execution
-
-T, --terse -
only print a very terse error report on compile errors
-
-u, --use -
load component or libraries ('comp1,comp2,lib1...')
-
-v, --verbose -
be verbose
-
-V, --version -
display version
-
-w, --warnings -
display warnings during compilation
-
--convert-project -
convert a simple project to a script
Project conversion
gbs3 can convert a gambas project to an executable script file using the --convert-project option.
The input project directory is used to createthe script which is written to the output script directory.
The script is created and named the same as the originating project.
gbs3 MyProjectDirectory DestinationScriptDirectory
Examples
#!/usr/bin/env gbs3
for i as integer = 0 to 10
print i;;
next
Releases
8 releases since Debian 7 (Wheezy); the text changed 6 times.
--buildonly since Debian 12 (Bookworm);
--convert-project since Debian 12 (Bookworm);
--fast since Debian 10 (Buster);
--help since Debian 8 (Jessie);
--license since Debian 8 (Jessie);
--list since Debian 12 (Bookworm);
--nocache since Debian 8 (Jessie);
--strict since Debian 12 (Bookworm);
--terse since Debian 12 (Bookworm);
--trace since Debian 12 (Bookworm);
--use since Debian 12 (Bookworm);
--verbose since Debian 8 (Jessie);
--version since Debian 8 (Jessie);
--warnings since Debian 12 (Bookworm);
-L since Debian 8 (Jessie);
-S since Debian 12 (Bookworm);
-T since Debian 12 (Bookworm);
-V since Debian 8 (Jessie);
-b since Debian 12 (Bookworm);
-c since Debian 8 (Jessie);
-e since Debian 12 (Bookworm);
-f since Debian 10 (Buster);
-h since Debian 8 (Jessie);
-l since Debian 12 (Bookworm);
-t since Debian 12 (Bookworm);
-u since Debian 10 (Buster);
-v since Debian 8 (Jessie);
-w since Debian 12 (Bookworm).