1gbs3(1) User Commands gbs3(1)
2
3
4
6 gbs3 - GAMBAS Scripter
7
8
10 gbs3 [options] [--] [<script file> | -]
11 gbs3 --convert-project <source project directory> <destination script
12 directory>
13
14
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
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, --license
47 display license
48
49 -S --strict
50 fail if 'Public' or 'Sub' are defined without a 'main' function
51 otherwise create main()
52
53 -t, --trace
54 turn on tracing option during execution
55
56 -T, --terse
57 only print a very terse error report on compile errors
58
59 -u, --use
60 load component or libraries ('comp1,comp2,lib1...')
61
62 -v, --verbose
63 be verbose
64
65 -V, --version
66 display version
67
68 -w, --warnings
69 display warnings during compilation
70
71 --convert-project
72 convert a simple project to a script
73
74
76 gbs3 can convert a gambas project to an executable script file using
77 the --convert-project option.
78 The input project directory is used to createthe script which is writ‐
79 ten to the output script directory.
80 The script is created and named the same as the originating project.
81
82 gbs3 MyProjectDirectory DestinationScriptDirectory
83
84
86 #!/usr/bin/env gbs3
87 for i as integer = 0 to 10
88 print i;;
89 next
90
91
93 The latest version of Gambas can always be obtained from gambas.source‐
94 forge.net, documentation about the language is at http://gam‐
95 baswiki.org/wiki.
96
97
99 Report bugs to http://gambaswiki.org/bugtracker
100
101
103 Copyright© Benoît Minisini <g4mba5@gmail.com>;
104
105 This is free software; see the source for copying conditions. There is
106 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
107 PURPOSE.
108
109
110
111Ubuntu March 2021 gbs3(1)