Skip to content

Commit 77a590f

Browse files
committed
Build Joe7M's changes.
1 parent 4219b15 commit 77a590f

58 files changed

Lines changed: 1089 additions & 667 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pages/articles.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ <h2 id="getting-started">Getting started</h2>
8484
<li><a href="/pages/android.html">Android</a></li>
8585
<li><a href="/pages/sdl.html">SDL</a></li>
8686
<li><a href="/pages/fltk.html">FLTK</a></li>
87-
<li><a href="/pages/language_support.html">Visual Studio Code, Atom and Geany</a></li>
87+
<li><a href="/pages/language_support.html">Setup external editors</a></li>
8888
<li><a href="/pages/distributiontool.html">Distribute your program</a></li>
8989
</ul>
9090
<h2 id="plugins">Plugins</h2>
@@ -108,7 +108,7 @@ <h2 id="miscellaneous">Miscellaneous</h2>
108108
</ul>
109109
</div>
110110
<div class="pagefooter">
111-
This page was last edited on Tue, 18 Jul 2023 23:21:51 +0200
111+
This page was last edited on Sat, 26 Aug 2023 13:51:08 +0200
112112
|
113113
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
114114
processed with

pages/community.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ <h1 id="community">Community</h1>
6868
<h2 id="forum">Forum</h2>
6969
<ul>
7070
<li><a href="https://www.syntaxbomb.com/smallbasic">SyntaxBomb / SmallBASIC</a></li>
71-
<li><a href="http://basic4all.epizy.com/index.php">Basic4All</a></li>
7271
</ul>
7372
<h2 id="issues">Issues</h2>
7473
<ul>
@@ -87,7 +86,7 @@ <h2 id="archived">Archived</h2>
8786
</ul>
8887
</div>
8988
<div class="pagefooter">
90-
This page was last edited on Sat, 30 Apr 2022 08:55:35 +1000
89+
This page was last edited on Sat, 26 Aug 2023 13:56:45 +0200
9190
|
9291
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
9392
processed with

pages/language_support_kdekate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ <h2 id="setup-syntax-highlighting-and-coloring">Setup Syntax Highlighting and Co
7474
<p>Copy the file “smallbasic.xml” into the folder “~/.local/share/org.kde.syntax-highlighting/syntax/”. Most probably this folder does not exist. Please create it. Restart Kate and chose “SmallBASIC” for highlighting.</p>
7575
</div>
7676
<div class="pagefooter">
77-
This page was last edited on Tue, 22 Aug 2023 22:33:13 +0200
77+
This page was last edited on Thu, 24 Aug 2023 08:14:54 +0930
7878
|
7979
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
8080
processed with

pages/language_support_sublimetext.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ <h3 id="windows">Windows</h3>
9393
}</code></pre>
9494
</div>
9595
<div class="pagefooter">
96-
This page was last edited on Tue, 22 Aug 2023 22:34:38 +0200
96+
This page was last edited on Thu, 24 Aug 2023 08:14:54 +0930
9797
|
9898
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
9999
processed with

pages/links.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,29 +74,23 @@ <h1 id="links">Links</h1>
7474
<h2 id="external-articles">External articles</h2>
7575
<ul>
7676
<li><a href="http://en.wikipedia.org/wiki/SmallBASIC" target="_blank">Wikipedia entry</a></li>
77-
<li><a href="http://goanna.cs.rmit.edu.au/~winikoff/palm/dev.html" target="_blank">PalmPilot Software Development - Alternatives to C</a></li>
7877
<li><a href="http://www.dwheeler.com/palm-suggest.html" target="_blank">David A. Wheeler’s Suggestions for PalmOS PDA Users</a></li>
79-
<li><a href="http://www.ibm.com/developerworks/linux/library/l-palmos2.html?dwzone=linux#h7879" target="_blank">PalmOS-hosted programming languages</a></li>
80-
<li><a href="http://www.pcadvisor.co.uk/how-to/software/3307979/how-program-software/" target="_blank">PC Advisor</a></li>
8178
<li><a href="https://learnxinyminutes.com/docs/smallbasic/" target="_blank">Learn X in Y minutes</a></li>
8279
</ul>
8380
<h2 id="external-documentation">External documentation</h2>
8481
<ul>
8582
<li><a href="http://www.bitsavers.org/pdf/dartmouth/BASIC_Oct64.pdf" target="_blank">Dartmouth BASIC spec circa 1964</a></li>
8683
</ul>
8784
<h2 id="what-about-the-other-smallbasic">What about the other “SmallBASIC?”</h2>
88-
<p>We noticed there’s another version of <a href="http://smallbasic.com/faq.aspx" target="_blank">SmallBASIC</a>. Other than the naming coincidence, our version of SmallBASIC doesn’t have anything to do with this other version.</p>
89-
<ul>
90-
<li><a href="http://sb-translator.appspot.com/" target="_blank">Small Basic to SmallBASIC translator - experimental</a></li>
91-
</ul>
85+
<p>We noticed there’s another version of <a href="https://smallbasic-publicwebsite.azurewebsites.net" target="_blank">SmallBASIC</a>. Other than the naming coincidence, our version of SmallBASIC doesn’t have anything to do with this other version.</p>
9286
<h2 id="ecma-55">ECMA-55</h2>
9387
<ul>
9488
<li><a href="http://buraphakit.sourceforge.net/BASIC.shtml" target="_blank">John’s ECMA-55 Minimal BASIC Compiler</a></li>
9589
<li><a href="http://sourceforge.net/p/buraphakit/MinimalBASIC/ci/default/tree/ECMA-55.TXT" target="_blank">STANDARD ECMA-55</a></li>
9690
</ul>
9791
</div>
9892
<div class="pagefooter">
99-
This page was last edited on Fri, 28 Sep 2018 18:33:09 +1000
93+
This page was last edited on Sat, 26 Aug 2023 14:04:53 +0200
10094
|
10195
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
10296
processed with

reference/1420.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ <h4>SmallBASIC</h4>
6565
</div>
6666
<div class="article">
6767
<h1>TO</h1>
68-
<blockquote>FOR t = 1 TO 10</blockquote>
68+
<blockquote>FOR t = var1 TO var2</blockquote>
6969
<div class="siteSub">
7070
<p>
7171
<a href="/">Home</a> &gt;
7272
<a href="/pages/reference.html">Reference</a> &gt;
7373
<a href="/pages/language.html">Language</a>
7474
</p>
7575
</div>
76-
<p>Specifies the loop counter end in a FOR loop</p>
76+
<p>Specifies the loop counter end in a FOR loop. For more information see FOR.</p>
7777
<h3 id="example">Example</h3>
7878
<pre><code>for t = 1 to 10
7979
print t
@@ -201,7 +201,7 @@ <h3 id="example">Example</h3>
201201
</div>
202202
</div>
203203
<div class="pagefooter">
204-
This page was last edited on Thu, 13 Apr 2023 13:35:43 +0200
204+
This page was last edited on Mon, 4 Sep 2023 15:47:06 +0200
205205
|
206206
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
207207
processed with

reference/1425.html

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,28 +73,48 @@ <h1>TRY</h1>
7373
<a href="/pages/language.html">Language</a>
7474
</p>
7575
</div>
76+
<p>The TRY statement introduces a TRY/CATCH block. A try/catch block consist of the following structure:</p>
7677
<p><strong>TRY</strong></p>
77-
<p>The TRY statement introduces a TRY/CATCH block.</p>
78+
<p>The TRY statement starts a block of commands which might create a run-time error.</p>
7879
<p><strong>CATCH [var | expr]</strong></p>
79-
<p>The CATCH statement is used to CATCH an run-time error. This is typically used with errors raised when calling a file system command that cannot be completed, for example attempting to open a non-existent file.</p>
80-
<p>The CATCH statement has two modes. You can supply a variable argument to store the error string. Alternatively you can supply an expression. When the raised error matches the (String) expression, the error will be caught.</p>
81-
<p>When using the expression mode, you can supply a succession of CATCH statements to handle various error messages separately.</p>
80+
<p>The CATCH statement is used to catch a run-time error of one of the commands in the try-block. This is typically used with errors raised when calling a file system command that cannot be completed, for example attempting to open a non-existent file.</p>
81+
<p>The CATCH statement has two modes. You can supply a variable argument to store the error string. Alternatively you can supply an expression. When the raised error matches the (String) expression, the error will be caught. When using the expression mode, you can supply a succession of CATCH statements to handle various error messages separately.</p>
8282
<p><strong>END TRY</strong></p>
8383
<p>The END TRY statement marks the end of a TRY/CATCH block.</p>
8484
<h3 id="example-1-opening-a-non-existing-file-for-reading">Example 1: Opening a non-existing file for reading</h3>
8585
<pre><code>try
8686
&#39; DON&#39;T use existing file for demo.
8787
open &quot;try demo.tmp&quot; for input as #1
8888
catch err
89-
print err; &quot; &quot;
89+
print err
9090
&#39; Some error handling could be implemented here
9191
&#39; i.e: if(err = &quot;...&quot;) then ...
9292
end try
9393

9494
print &quot;This point is reach, even if opening the file was not possible&quot;</code></pre>
95-
<h3 id="example-2-advanced-error-handling-for-opening-files">Example 2: Advanced error handling for opening files</h3>
96-
<pre><code>
97-
&#39; See also: Home -- Articles -- TRY / CATCH
95+
<h3 id="example-2-open-com-port">Example 2: Open COM-Port</h3>
96+
<pre><code>try
97+
open &quot;com2000:&quot; AS #1
98+
catch err
99+
print &quot;open failed: &quot;;err
100+
end try</code></pre>
101+
<h3 id="example-3-using-error-expressions">Example 3: Using error expressions</h3>
102+
<pre><code>try
103+
&#39; DON&#39;T use existing file for demo.
104+
open &quot;demo.tmp&quot; for input as #1 &#39; Replace &quot;demo.tmp&quot; by &quot;?.tmp&quot;
105+
catch &quot;FS(2): NO SUCH FILE OR DIRECTORY&quot;
106+
print &quot;File not found&quot;
107+
&#39; Some error handling could be implemented here
108+
goto aftertrycatch
109+
catch &quot;FS(22): INVALID ARGUMENT&quot;
110+
print &quot;Filename not allowed&quot;
111+
&#39; Some error handling could be implemented here
112+
end try
113+
114+
label aftertrycatch
115+
print &quot;end of program&quot;</code></pre>
116+
<h3 id="example-4-advanced-error-handling-for-opening-files">Example 4: Advanced error handling for opening files</h3>
117+
<pre><code>&#39; See also: Home -- Articles -- TRY / CATCH
98118
Const FILE_NAME = &quot;try demo.tmp&quot; &#39; -- DON&#39;T use existing file for demo.
99119
&#39; OPEN file or device safely:
100120
Func opens(filename, mode)
@@ -155,12 +175,6 @@ <h3 id="example-2-advanced-error-handling-for-opening-files">Example 2: Advanced
155175
? lines;
156176
Close #fn
157177
Fi</code></pre>
158-
<h3 id="example-3-open-com-port">Example 3: Open COM-Port</h3>
159-
<pre><code>try
160-
open &quot;com2000:&quot; AS #1
161-
catch err
162-
? &quot;in catch: open failed&quot;;err
163-
end try</code></pre>
164178
<div class="lavenderBox">
165179
<div class="header">Code samples using TRY</div>
166180
<div class="linklist">
@@ -284,7 +298,7 @@ <h3 id="example-3-open-com-port">Example 3: Open COM-Port</h3>
284298
</div>
285299
</div>
286300
<div class="pagefooter">
287-
This page was last edited on Sat, 17 Dec 2022 17:43:49 +0100
301+
This page was last edited on Wed, 6 Sep 2023 18:16:12 +0200
288302
|
289303
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
290304
processed with

reference/1426.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,20 @@ <h1>CATCH</h1>
7373
<a href="/pages/language.html">Language</a>
7474
</p>
7575
</div>
76-
<p>The CATCH statement is used to CATCH a run-time error. This is typically used with errors raised when calling a file system command that cannot be completed, for example attempting to open a non-existent file.</p>
76+
<p>The CATCH statement is used to catch a run-time error. This is typically used with errors raised when calling a file system command that cannot be completed, for example attempting to open a non-existent file.</p>
7777
<p>The CATCH statement has two modes. You can supply a variable argument to store the error string. Alternatively you can supply an expression. When the raised error matches the (String) expression, the error will be caught. When using the expression mode, you can supply a succession of CATCH statements to handle various error messages separately.</p>
78-
<p>For more information and examples please see TRY.</p>
78+
<p>For more information see TRY.</p>
79+
<h3 id="example">Example</h3>
80+
<pre><code>try
81+
&#39; DON&#39;T use existing file for demo.
82+
open &quot;try demo.tmp&quot; for input as #1
83+
catch err
84+
print err
85+
&#39; Some error handling could be implemented here
86+
&#39; i.e: if(err = &quot;...&quot;) then ...
87+
end try
88+
89+
print &quot;This point is reach, even if opening the file was not possible&quot;</code></pre>
7990
<div class="lavenderBox">
8091
<div class="header">Code samples using CATCH</div>
8192
<div class="linklist">
@@ -178,7 +189,7 @@ <h1>CATCH</h1>
178189
</div>
179190
</div>
180191
<div class="pagefooter">
181-
This page was last edited on Sat, 17 Dec 2022 17:21:18 +0100
192+
This page was last edited on Wed, 6 Sep 2023 18:17:39 +0200
182193
|
183194
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
184195
processed with

reference/1427.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,18 @@ <h1>END TRY</h1>
7373
<a href="/pages/language.html">Language</a>
7474
</p>
7575
</div>
76-
<p>The END TRY statement marks the end of a TRY/CATCH block. For more information and examples please see TRY.</p>
76+
<p>The END TRY statement marks the end of a TRY/CATCH block. For more information see TRY.</p>
77+
<h3 id="example">Example</h3>
78+
<pre><code>try
79+
&#39; DON&#39;T use existing file for demo.
80+
open &quot;try demo.tmp&quot; for input as #1
81+
catch err
82+
print err
83+
&#39; Some error handling could be implemented here
84+
&#39; i.e: if(err = &quot;...&quot;) then ...
85+
end try
86+
87+
print &quot;This point is reach, even if opening the file was not possible&quot;</code></pre>
7788
<div class="lavenderBox">
7889
<div class="header">Code samples using END TRY</div>
7990
<div class="linklist">
@@ -170,7 +181,7 @@ <h1>END TRY</h1>
170181
</div>
171182
</div>
172183
<div class="pagefooter">
173-
This page was last edited on Sat, 25 Feb 2023 22:33:10 +0100
184+
This page was last edited on Wed, 6 Sep 2023 18:18:25 +0200
174185
|
175186
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
176187
processed with

reference/1437.html

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,17 @@ <h1>THROW</h1>
7373
<a href="/pages/language.html">Language</a>
7474
</p>
7575
</div>
76-
<p>The THROW command (previously known as RTE) is used to initiate a catch-able error. If there is no surrounding TRY/CATCH block, THROW can be used to abort the program.</p>
77-
<p><em>Summary</em> TRY/CATCH is used to trap errors allowing a program to recover without having to be restarted.</p>
78-
<pre><code>TRY</code></pre>
79-
<p>The TRY statement introduces a TRY/CATCH BLOCK.</p>
80-
<pre><code>CATCH [var | expr]</code></pre>
81-
<p>The CATCH statement is used to CATCH an run-time error. This is typically used with errors raised when calling a file system command that cannot be completed, for example attempting to open a non-existent file.</p>
82-
<p>The CATCH statement has two modes. You can supply a variable argument to store the error string. Alternatively you can supply an expression. When the raised error matches the (String) expression, the error will be caught.</p>
83-
<p>When using the expression mode, you can supply a succession of CATCH statements to handle various error messages separately. END TRY</p>
84-
<p>The END TRY statement marks the end of a TRY/CATCH block.</p>
85-
<pre><code>THROW</code></pre>
86-
<p>The THROW command (previously known as RTE) is used to initiate a catch-able error. If there is no surrounding TRY/CATCH block, THROW can be used to abort the program.</p>
87-
<p>Example</p>
88-
<pre><code>
89-
try
90-
open &quot;com2000:&quot; AS #1
76+
<p>The THROW command is used to initiate a catch-able error. If there is no surrounding TRY/CATCH block, THROW can be used to abort the program. Optional a string <code>info</code> can be used to create an error message.</p>
77+
<h3 id="example-1-abort-a-program">Example 1: Abort a program</h3>
78+
<pre><code>throw(&quot;Error&quot;)</code></pre>
79+
<h3 id="example-2-initial-a-catch-able-error">Example 2: Initial a catch-able error</h3>
80+
<pre><code>try
81+
a = 1
82+
if(a == 1) then throw(&quot;a == 1&quot;)
83+
if(a == 2) then throw(&quot;a == 2&quot;)
9184
catch err
92-
? &quot;in catch: open failed&quot;;err
93-
end try
94-
</code></pre>
85+
print &quot;Error: &quot;; err
86+
end try</code></pre>
9587
<div class="lavenderBox">
9688
<div class="header">Code samples using THROW</div>
9789
<div class="linklist">
@@ -195,7 +187,7 @@ <h1>THROW</h1>
195187
</div>
196188
</div>
197189
<div class="pagefooter">
198-
This page was last edited on Thu, 22 Mar 2018 20:09:41 +1000
190+
This page was last edited on Fri, 1 Sep 2023 15:59:38 +0200
199191
|
200192
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
201193
processed with

0 commit comments

Comments
 (0)