Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Xbasic

< >

Xbasic is an open source programming language created in 1988 by Max Reason.

#1529on PLDB 36Years Old
Wikipedia

XBasic is a variant of the BASIC programming language that was developed in the late 1980s for the Motorola 88000 CPU and Unix by Max Reason. In the early 1990s it was ported to Windows and Linux, and since 1999 it has been available as open source software with its runtime library under the LGPL license. It should not be confused with TI Extended BASIC, which is sometimes called XBasic or X Basic. Read more on Wikipedia...


Example from hello-world:
IMPORT "xst" DECLARE FUNCTION Hello () FUNCTION Hello () XstDisplayConsole () PRINT "Hello World" END FUNCTION END PROGRAM
Example from Wikipedia:
' Programs contain: ' 1. A PROLOG with type/function/constant declarations. ' 2. This Entry() function where execution begins. ' 3. Zero or more additional functions. ' FUNCTION Entry() PRINT "Hello World" PRINT 2+2 PRINT 44/12 PRINT 33*3 END FUNCTION

Language features

Feature Supported Example Token
Strings ✓ "Hello world" "
Print() Debugging ✓ PRINT
Comments ✓ ' A comment
Line Comments ✓ ' A comment '
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.2.0