Yabasic

Yabasic (Yet Another BASIC) is a free, open-source BASIC interpreter for Windows and Unix platforms.[1] Yabasic was originally developed by Marc-Oliver Ihm, who released the last stable version 2.77.3 in 2016. From version 2.77.1, the project has adopted the MIT License as well as the source code being moved to GitHub to encourage others to participate in its development.[2]

Yabasic
Yabasic running an implementation of SameGame.
Developer(s)Marc-Oliver Ihm
Stable release
2.82.4 / 1 January 2020 (2020-01-01)
Repositoryhttps://github.com/marcIhm/yabasic
Operating systemWindows, Unix
TypeProgramming
LicenseMIT License
Websitewww.yabasic.de

Features

Other versions

Flyab

A port of Yabasic to the Fltk toolkit called "Flyab" was under development. It would have been source-compatible with programs written in yab, a variant of Yabasic that enables graphical programs to be written using the BeOS API. Ports for Windows, Mac OS X, and Linux were planned. Flyab added the ability to Yabasic to create native graphical user interfaces on all supported platforms. As of November 2008, the project appears to be halted.

PlayStation 2

Sony also packaged a version of Yabasic for the PlayStation 2 on the demo disc[3] shipped with PS2 consoles in PAL territories so it could be considered a home computer, not just a games machine, thus bypassing European import taxes.[4]

Yabasic 3.0 (Unofficial)

As a continuation of the project prior to new changes by the original author, version 3 was being developed by a team centered on Pedro Sá and Thomas Larsen, but development has halted and the project now appears to be abandoned.

Yabasic Example

#!/usr/bin/yabasic

REM Program Name: cbm-mtudemo.yab
REM Author: mtu
REM 
REM Purpose: demonstration for their CBM-PET graphics card 320x200

open window 320, 200

20 P=160: Q=100
30 XP=144: XR=1.5*3.1415927
40 YP=56: YR=1: ZP=64
50 XF=XR/XP: YF=YP/YR: ZF=XR/ZP
60 FOR ZI=-Q TO Q-l
70 IF ZI<-ZP OR ZI>ZP GOTO 150
80 ZT=ZI*XP/ZP: ZZ=ZI
90 XL=INT(0.5+SQRT(XP*XP-ZT*ZT))
100 FOR XI=-XL TO XL
110 XT=SQRT(XI*XI+ZT*ZT)*XF: XX=XI
120 YY=(SIN(XT)+0.4*SIN(3.0*XT))*YF
130 GOSUB 170
140 NEXT XI
150 NEXT ZI
160 PAUSE 10
END
170 X1=XX+ZZ+P
180 Y1=YY-ZZ+Q:Y1=199-Y1
190 LINE X1,Y1,X1,Y1-1
200 IF Y1=0 GOTO 220
210 CLEAR LINE X1,Y1+1,X1,199
220 RETURN
gollark: Besides, caring deeply *and* spending lots of time on investigating stuff and whatever doesn't mean people will share your values.
gollark: But "care deeply" can mean that you feel very strongly about something like "people of the same gender MUST NOT EVER MARRY ÆÆÆÆÆÆÆÆÆÆÆÆA MY TRADITIONA L VALUES", not that you, I don't know, are interested in politics lots and know everyone involved in the government and follow all the parliamentary twitter feeds.
gollark: You see, lots of people are actually really stupid and/or have significantly different values.
gollark: Scarier possibility: what if the people voting for them DO care, a lot, and genuinely think that the people they vote for have better policy or something?
gollark: According to random vaguely plausible things on the internet, our strong reactions to politics are derived from the situation during human evolution, when humans were in small tribes and you could directly affect things and they could strongly and directly affect *you*.

References

  1. Marc-Oliver Ihm. "Yabasic, Yet another Basic for Unix and Windows". Yabasic.de. Retrieved 22 April 2013.
  2. Ihm, Marc (3 April 2020), marcIhm/yabasic, retrieved 21 April 2020
  3. Cameron Gray (26 February 2018), How/Why Sony Classed the PlayStation 2 as a Home Computer - Demo of Yabasic, retrieved 26 February 2018
  4. Smith, Tony (11 July 2000). "Sony adds Basic to PlayStation to sidestep EC import tax". Retrieved 8 September 2014.

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.