Author Topic: Compiling ScriptBasic 2.1.0 on a modern Linux  (Read 30601 times)

Jmcbride

  • Guest
Compiling ScriptBasic 2.1.0 on a modern Linux
« on: August 06, 2016, 08:08:51 AM »
I finally got what I thought was a clean compile and install of scribasic 2.1.0. However, I'm seeing this when executing the example programs. Is 2.2.0 less buggy?

spike examples # scriba array.bas
array.bas(1): error &H77:syntax error during checking the line and also noting that the syntax error so serious that none of the other syntax defintions can match the current line

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Compiling ScriptBasic 2.1.0 on a modern Linux
« Reply #1 on: August 06, 2016, 12:32:05 PM »
Please post the code to array.bas.

I'll be happy to take a peek and see what might be the problem.

Quote
Is 2.2.0 less buggy

Script BASIC has been production stable for over 10 years with no known bugs. I think you should look closer at your code.

FYI: Script BASIC will not execute faulty syntax/code and returns an error code instead.
« Last Edit: August 06, 2016, 02:52:26 PM by support »

Jmcbride

  • Guest
Re: Compiling ScriptBasic 2.1.0 on a modern Linux
« Reply #2 on: August 07, 2016, 01:04:36 PM »
To save server storage space. The source code you request in in the examples directory.  Is there a download link for the 2.2 sources somewhere?

Jerry

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Compiling ScriptBasic 2.1.0 on a modern Linux
« Reply #3 on: August 07, 2016, 06:16:14 PM »
Jerry,

The array.bas example that I inherited with the 2.1 release from Peter Verhas seems to work as intended under Ubuntu 14.04 64 bit. I added a couple newlines for clarity.

Code: Script BASIC
  1. a[5,3]=4
  2. c = a[5]
  3. print a[5,3],"\n",c,"\n"
  4.  


jrs@laptop:~/sb/source/examples$ scriba array.bas
4
ARRAY@#00A706C8
jrs@laptop:~/sb/source/examples$


Something more fun.

Code: Script BASIC
  1.  
  2. a[1000000,1]="one"
  3. a[1000000,2]="two"
  4. a[1000000,3]="three"
  5.  
  6. REF b = a[1000000]
  7.  
  8. PRINT "Simple as ",b[1],", ",b[2],", ",b[3],". (million)\n"
  9.  
  10. b[1] = 1
  11. b[2] = 2
  12. b[3] = 3
  13.  
  14. PRINT a[1000000,1] + a[1000000,2] + a[1000000,3],"\n"
  15.  


jrs@laptop:~/sb/sb22/test$ time scriba reftest.sb
Simple as one, two, three. (million)
6

real   0m0.004s
user   0m0.004s
sys   0m0.000s
jrs@laptop:~/sb/sb22/test$

« Last Edit: August 08, 2016, 02:38:45 AM by support »

Jmcbride

  • Guest
Re: Compiling ScriptBasic 2.1.0 on a modern Linux
« Reply #4 on: August 09, 2016, 06:26:35 PM »
Well. I guess at this juncture it's time for me to move on. Thank for the help and the 2.2 sources. 
Good bye. 

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Re: Compiling ScriptBasic 2.1.0 on a modern Linux
« Reply #5 on: August 09, 2016, 10:49:00 PM »
No problem, glad I could help.