1gbs3(1)                          User Commands                         gbs3(1)
2
3
4

NAME

6       gbs3 - GAMBAS Scripter
7
8

SYNOPSIS

10       gbs3 [options] [--] [<script file> | -]
11       gbs3  --convert-project  <source project directory> <destination script
12       directory>
13
14

DESCRIPTION

16       Gambas is a free development environment based on a  Basic  interpreter
17       with object extensions,
18       a mix of Java(tm) and Visual Basic(tm).
19       With  Gambas,  you can quickly design your program GUI, access MySQL or
20       PostgreSQL databases,
21       pilot KDE applications with DCOP, translate your program into many lan‐
22       guages, and so on...
23
24       gbs3 is the interpreter that allows you to compile and execute a Gambas
25       script.
26       gbs3 may also be used to convert a gambas project to a script
27
28

OPTIONS

30       -b, --buildonly
31              process and compile the script without executing it
32
33       -c, --nocache
34              force the script compilation (do not check cache)
35
36       -e     execute the source code provided by the command line ( ':' sepa‐
37              rator )
38
39       -f, --fast
40              use  just-in-time compiler TP -g, --debug add debugging informa‐
41              tion to application
42
43       -h, --help
44              display help and exit
45
46       -l, --list
47              display a list of available Components or Libraries, '-l  compo‐
48              nent' or '-l library'
49
50       -L, --license
51              display license
52
53       -S --strict
54              fail  if 'Public' or 'Sub' are defined without a 'main' function
55              otherwise create main()
56
57       -t, --trace
58              turn on tracing option during execution
59
60       -T, --terse
61              only print a very terse error report on compile errors
62
63       -u, --use
64              load component or libraries ('comp1,comp2,lib1...')
65
66       -v, --verbose
67              be verbose
68
69       -V, --version
70              display version
71
72       -w, --warnings
73              display warnings during compilation
74
75       --convert-project
76              convert a simple project to a script
77
78

PROJECT CONVERSION

80       gbs3 can convert a gambas project to an executable  script  file  using
81       the --convert-project option.
82       The  input project directory is used to createthe script which is writ‐
83       ten to the output script directory.
84       The script is created and named the same as the originating project.
85
86       gbs3 MyProjectDirectory DestinationScriptDirectory
87
88

EXAMPLE

90       #!/usr/bin/env gbs3
91       for i as integer = 0 to 10
92         print i;;
93       next
94
95

AVAILABILITY

97       The latest version of Gambas can always be obtained from gambas.source‐
98       forge.net,   documentation   about   the  language  is  at  http://gam
99       baswiki.org/wiki.
100
101

REPORTING BUGS

103       Report bugs to http://gambaswiki.org/bugtracker
104
105
107       Copyright© Benoît Minisini <g4mba5@gmail.com>;
108
109       This is free software; see the source for copying conditions.  There is
110       NO  warranty;  not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
111       PURPOSE.
112
113
114
115Ubuntu                            March 2021                           gbs3(1)
Impressum