2021-03-08 21:21:23 +01:00
|
|
|
.TH "gbs3" "1" "March 2021" "Ubuntu" "User Commands"
|
2020-06-20 04:56:22 +02:00
|
|
|
|
|
|
|
.SH "NAME"
|
2021-03-26 21:46:26 +01:00
|
|
|
.B gbs3 \- GAMBAS Scripter.
|
2020-06-20 04:56:22 +02:00
|
|
|
|
|
|
|
.SH "SYNOPSIS"
|
|
|
|
.B gbs3
|
2021-03-27 16:52:05 +01:00
|
|
|
[options] [--] [<script file> | <project directory> | -]
|
2021-03-08 21:21:23 +01:00
|
|
|
.br
|
|
|
|
.B gbs3
|
|
|
|
--convert-project <source project directory> <destination script directory>
|
2021-03-26 21:46:26 +01:00
|
|
|
.br
|
|
|
|
.B gbs3
|
|
|
|
--convert-script <script file> [<Destination where project directory is created>]
|
|
|
|
.br
|
|
|
|
.B gbs3
|
|
|
|
[-p | --plugin] <script file> [<Destination directory where plugin is created>]
|
2020-06-20 04:56:22 +02:00
|
|
|
|
|
|
|
.SH "DESCRIPTION"
|
2021-03-08 21:21:23 +01:00
|
|
|
Gambas is a free development environment based on a Basic interpreter with object extensions,
|
|
|
|
.br
|
|
|
|
a mix of Java(tm) and Visual Basic(tm).
|
|
|
|
.br
|
|
|
|
With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases,
|
|
|
|
.br
|
|
|
|
pilot KDE applications with DCOP, translate your program into many languages, and so on...
|
2020-06-20 04:56:22 +02:00
|
|
|
|
2021-03-08 21:21:23 +01:00
|
|
|
.B gbs3
|
|
|
|
is the interpreter that allows you to compile and execute a Gambas script.
|
|
|
|
.br
|
|
|
|
.B gbs3
|
2021-03-27 16:52:05 +01:00
|
|
|
may also be used to convert a Gambas project to a script or a script back to a project.
|
2020-06-20 04:56:22 +02:00
|
|
|
|
|
|
|
.SH "OPTIONS"
|
|
|
|
.TP
|
2021-03-08 21:21:23 +01:00
|
|
|
\fB\-b, --buildonly\fR
|
|
|
|
process and compile the script without executing it
|
|
|
|
.TP
|
2020-06-20 04:56:22 +02:00
|
|
|
\fB\-c, --nocache\fR
|
|
|
|
force the script compilation (do not check cache)
|
|
|
|
.TP
|
2021-03-26 21:46:26 +01:00
|
|
|
\fB\--convert-project\fR
|
2021-03-27 16:52:05 +01:00
|
|
|
convert a Gambas project into an executable Gambas script file
|
2021-03-26 21:46:26 +01:00
|
|
|
.TP
|
|
|
|
\fB\--convert-script\fR
|
2021-03-27 16:52:05 +01:00
|
|
|
convert a Gambas script file into a Gambas project
|
2021-03-26 21:46:26 +01:00
|
|
|
.TP
|
2020-06-20 04:56:22 +02:00
|
|
|
\fB\-e\fR
|
|
|
|
execute the source code provided by the command line ( ':' separator )
|
|
|
|
.TP
|
2021-03-08 21:21:23 +01:00
|
|
|
\fB\-f, --fast\fR
|
|
|
|
use just-in-time compiler
|
2021-03-09 02:10:04 +01:00
|
|
|
.TP
|
2021-03-08 21:21:23 +01:00
|
|
|
\fB\-g, --debug\fR
|
|
|
|
add debugging information to application
|
|
|
|
.TP
|
2020-06-20 04:56:22 +02:00
|
|
|
\fB\-h, --help\fR
|
|
|
|
display help and exit
|
|
|
|
.TP
|
|
|
|
\fB\-L, --license\fR
|
|
|
|
display license
|
|
|
|
.TP
|
2021-03-26 21:46:26 +01:00
|
|
|
\fB\-p, --plugin\fR
|
|
|
|
generate a plugin executable that can be loaded by other scripts
|
|
|
|
.TP
|
2021-03-08 21:21:23 +01:00
|
|
|
\fB\-S --strict\fR
|
|
|
|
fail if 'Public' or 'Sub' are defined without a 'main' function otherwise create main()
|
|
|
|
.TP
|
|
|
|
\fB\-t, --trace\fR
|
|
|
|
turn on tracing option during execution
|
|
|
|
.TP
|
|
|
|
\fB\-T, --terse\fR
|
|
|
|
only print a very terse error report on compile errors
|
|
|
|
.TP
|
|
|
|
\fB\-u, --use\fR
|
|
|
|
load component or libraries ('comp1,comp2,lib1...')
|
2020-06-20 04:56:22 +02:00
|
|
|
.TP
|
|
|
|
\fB\-v, --verbose\fR
|
|
|
|
be verbose
|
|
|
|
.TP
|
|
|
|
\fB\-V, --version\fR
|
|
|
|
display version
|
2021-03-08 21:21:23 +01:00
|
|
|
.TP
|
|
|
|
\fB\-w, --warnings\fR
|
|
|
|
display warnings during compilation
|
|
|
|
|
|
|
|
.SH "PROJECT CONVERSION"
|
|
|
|
.B gbs3
|
2021-03-27 16:52:05 +01:00
|
|
|
can convert a Gambas project into an executable script file using the --convert-project option.
|
2021-03-26 21:46:26 +01:00
|
|
|
The input project directory is used to create the script which is written to the output script directory.
|
2021-03-27 16:52:05 +01:00
|
|
|
The script is created and named the same as the originating project.
|
2021-03-08 21:21:23 +01:00
|
|
|
.br
|
2021-03-26 21:46:26 +01:00
|
|
|
.B gbs3
|
|
|
|
MyProjectDirectory DestinationScriptDirectory
|
|
|
|
|
|
|
|
|
|
|
|
.SH "SCRIPT CONVERSION"
|
|
|
|
.B gbs3
|
2021-03-27 16:52:05 +01:00
|
|
|
can convert a script file to a full Gambas project using the --convert-script option.
|
2021-03-08 21:21:23 +01:00
|
|
|
.br
|
2021-03-27 16:52:05 +01:00
|
|
|
The input script is translated into a project by the same basename as the script and
|
|
|
|
is created in the specified directory. In the case in which no output directory is specified,
|
|
|
|
the environment variable PWD is used as the location to create the Gambas project.
|
2021-03-26 21:46:26 +01:00
|
|
|
.br
|
|
|
|
.B gbs3
|
|
|
|
MyScript.gbs ~/Projects
|
|
|
|
.br
|
|
|
|
This created the project 'MyScript' directory in the users 'Projects' directory.
|
2021-03-08 21:21:23 +01:00
|
|
|
|
2021-03-26 21:46:26 +01:00
|
|
|
.SH "PLUGINS"
|
2021-03-08 21:21:23 +01:00
|
|
|
.B gbs3
|
2021-03-27 16:52:05 +01:00
|
|
|
can create plugins that can be used by other scripts or Gambas applications after being built using the --plugin or -p option.
|
|
|
|
Plugins are created in a user-selected directory and are also executed and cached in this directory,
|
|
|
|
unlike a normal script, in which executables are created in the temp directory and are executed from there.
|
|
|
|
This allows plugins to persist after the scripter exits.
|
2021-03-26 21:46:26 +01:00
|
|
|
.br
|
2021-03-27 16:52:05 +01:00
|
|
|
If no output destination is specified, then the plugin is created in the ~/.local/lib/gambas directory.
|
2021-03-26 21:46:26 +01:00
|
|
|
and may be loaded from there using the component.load() function.
|
|
|
|
.br
|
2021-03-27 16:52:05 +01:00
|
|
|
.B gbs3
|
2021-03-26 21:46:26 +01:00
|
|
|
MyPluginScript [Plugin Destination Directory]
|
|
|
|
|
2021-03-08 21:21:23 +01:00
|
|
|
.SH "EXAMPLE"
|
|
|
|
#!/usr/bin/env gbs3
|
|
|
|
.br
|
|
|
|
for i as integer = 0 to 10
|
|
|
|
.br
|
|
|
|
print i;;
|
|
|
|
.br
|
|
|
|
next
|
2020-06-20 04:56:22 +02:00
|
|
|
|
|
|
|
.SH "AVAILABILITY"
|
|
|
|
The latest version of Gambas can always be obtained from
|
2021-03-27 16:52:05 +01:00
|
|
|
.br
|
|
|
|
\fBgambas.sourceforge.net\fR,
|
|
|
|
.br
|
|
|
|
documentation about the language is at
|
|
|
|
.br
|
2020-06-20 04:56:22 +02:00
|
|
|
\fBhttp://gambaswiki.org/wiki\fR.
|
|
|
|
|
|
|
|
.SH "REPORTING BUGS"
|
|
|
|
Report bugs to \fBhttp://gambaswiki.org/bugtracker\fR
|
|
|
|
|
|
|
|
.SH "COPYRIGHT"
|
2020-06-20 05:10:29 +02:00
|
|
|
Copyright\(co Benoît Minisini <g4mba5@gmail.com>;
|
2020-06-20 04:56:22 +02:00
|
|
|
.PP
|
|
|
|
This is free software; see the source for copying conditions. There is NO
|
|
|
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|