Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN apt-get update && \
apt-get install --no-install-recommends -y\
curl\
erlang\
gambas3\
gawk\
gnupg2\
golang\
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ <h1>🌱 Script Seed</h1>
<select id="langSelect">
<option value="bash">Bash</option>
<option value="awk">AWK</option>
<option value="basic">BASIC (Gambas)</option>
<option value="deno">Deno</option>
<option value="erlang">Erlang</option>
<option value="golang">Go</option>
Expand Down
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ const LANGUAGES = {
file: 'seeds/bash_seed.sh',
class: 'bash'
},
'basic': {
file: 'seeds/basic_seed.bas',
class: 'basic'
},
'deno': {
file: 'seeds/deno_seed.js',
class: 'deno'
Expand Down
25 changes: 25 additions & 0 deletions seeds/basic_seed.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env gbs3

' This is a BASIC script seed.
' Use it as a template for your own BASIC (Gambas) script.

IF ARGS[1] = "-h"
PRINT "Usage: ./bash_seed.sh [options]"
PRINT ""
PRINT "Prints a message as an example of parsing CLI args in BASIC/Gambas."
PRINT ""
PRINT "Options:"
PRINT " -h Prints this help message."
PRINT " -n NAME Specify the user's name."
QUIT
END IF

DIM name AS String
name = "world"
IF ARGS[1] = "-n" AND ARGS.Count > 2
name = ARGS[2]
END IF

PRINT "Hello " & name & "!"
PRINT ""
PRINT "You ran the BASIC (Gambas) seed script!"