Measures Concepts
GitHub icon

Xbasic

Xbasic - Programming language

< >

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

#1117on PLDB 36Years Old

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 Token Example
Strings ✓ "
"Hello world"
Print() Debugging ✓ PRINT
Comments ✓
' A comment
Line Comments ✓ '
' A comment
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout