Author Topic: Forum Member Update  (Read 904 times)

Offline John

  • Forum Support / SB Dev
  • Posts: 3597
    • ScriptBasic Open Source Project
Forum Member Update
« on: August 01, 2023, 07:35:59 PM »
I thought I would start a thread to update us all to what programming projects you are working on. I'll go first with my update.

I'm working on a QBO app for a large company using the ScriptBasic application proxy server. AIR's JSON extension played an important part with communicating with REST APIs.

Offline Gemino Smothers

  • BASIC Developer
  • Posts: 24
    • Lucid Apogee
Re: Forum Member Update
« Reply #1 on: August 03, 2023, 10:50:16 PM »
I just updated Craft Basic. There's new keywords examples, and features. Translating Rosetta Code tasks has been helpful for testing.

This is one of the tasks I just translated. It uses the new TAB keyword. PRINT works a bit differently as there's only commas and no semicolons to separate elements. So instead of a semicolon, use the TAB keyword between the commas.
Code: [Select]
'https://rosettacode.org/wiki/Wagstaff_primes

let n = 9
let p = 1

do
let p = p + 2

if prime(p) then

let w = (2 ^ p + 1) / 3

if prime(w) then

let c = c + 1
print tab, c, tab, p, tab, w

endif

endif

wait

loop c < n

I am also working on another interpreter on the side that is tokenized and faster than Craft Basic. To go along with it, I'm writing a beginners programming book using the language.