XBasic: Difference between revisions

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
No edit summary
 
imported>InternetArchiveBot
Rescuing 1 sources and tagging 0 as dead.) #IABot (v2.0.9.5
 
Line 12: Line 12:
| released = late 1980s<!-- {{Start date|YYYY}} -->
| released = late 1980s<!-- {{Start date|YYYY}} -->
| designer =  
| designer =  
| developers = Max Reason, Eddie Penninkhof<ref>[http://gnetools.sourceforge.net/xbsupport/viewpane_aboutxbasic.html What am I required to know when writing in XBasic?], XBasic Facts</ref>
| developers = Max Reason, Eddie Penninkhof<ref>[https://gnetools.sourceforge.net/xbsupport/viewpane_aboutxbasic.html What am I required to know when writing in XBasic?]{{Dead link|date=July 2025 |bot=InternetArchiveBot |fix-attempted=yes }}, XBasic Facts</ref>
| latest release version = 6.3.26
| latest release version = 6.3.26
| latest release date = {{start date and age|2018}}
| latest release date = {{start date and age|2018}}
Line 24: Line 24:
| influenced =  
| influenced =  
| programming language =  
| programming language =  
| platform = I386
| platform = i386
| operating system = [[Windows]], [[Linux]]
| operating system = [[Microsoft Windows|Windows]], [[Linux]]
| license = [[GNU LGPL]]
| license = [[GNU Lesser General Public License|GNU LGPL]]
| file ext = x
| file ext = x
| fileformat =  
| fileformat =  
| website = {{URL|http://xbasic.sourceforge.net}}
| website = {{URL|https://xbasic.sourceforge.net/}}
| wikibooks =  
| wikibooks =  
}}
}}
{{Portal|Free and open-source software}}
'''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 [[Microsoft Windows|Windows]] and [[Linux]], and since 1999 it has been available as [[open source software]] with its runtime library under the [[LGPL]] license.
'''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 [[Microsoft Windows|Windows]] and [[Linux]], and since 1999 it has been available as [[open source software]] with its runtime library under the [[LGPL]] license.


Line 52: Line 53:
==Example code==
==Example code==
<syntaxhighlight lang="basic">
<syntaxhighlight lang="basic">
' Programs contain:
' Programs contain:
' 1. A PROLOG with type/function/constant declarations.
' 1. A PROLOG with type/function/constant declarations.
' 2. This Entry() function where execution begins.
' 2. This Entry() function where execution begins.
' 3. Zero or more additional functions.
' 3. Zero or more additional functions.
'
'
FUNCTION Entry()
FUNCTION Entry()


PRINT "Hello World"
PRINT "Hello World"


PRINT 2+2
PRINT 2+2
PRINT 44/12
PRINT 44/12
PRINT 33*3
PRINT 33*3


END FUNCTION
END FUNCTION
</syntaxhighlight>
</syntaxhighlight>


Line 75: Line 76:
*https://github.com/orgs/xbwlteam/repositories   
*https://github.com/orgs/xbwlteam/repositories   
*{{sourceforge|xbasic}}
*{{sourceforge|xbasic}}
*[http://www.xbasic.org/ documentation, links and resources]
*[https://gnetools.sourceforge.net/xbsupport/index.html Making your first GUI Tutorial] {{Webarchive|url=https://web.archive.org/web/20031207145930/http://gnetools.sourceforge.net/xbsupport/index.html |date=7 December 2003 }}
*[http://gnetools.sourceforge.net/xbsupport/index.html Making your first GUI Tutorial]
*[http://xbnotes.freehosting.net/make_exe.html Making a Standalone Executable] {{Webarchive|url=https://web.archive.org/web/20040316213502/http://xbnotes.freehosting.net/make_exe.html |date=16 March 2004 }}
*[http://xbnotes.freehosting.net/make_exe.html Making a Standalone Executable]
*[https://rosettacode.org/wiki/Category:XBasic Category:XBasic] Tasks implemented in XBasic on [https://rosettacode.org/ rosettacode.org]
*[http://www.xblite.com/ XBLite homepage]
 
*[http://rosettacode.org/wiki/Category:XBasic Category:XBasic] Tasks implemented in XBasic on [http://rosettacode.org rosettacode.org]
{{BASIC}}
{{BASIC}}
{{GUI builders}}
{{GUI builders}}

Latest revision as of 04:07, 15 August 2025

Template:Short description Template:More footnotes needed Script error: No such module "Infobox".Template:Template otherScript error: No such module "Check for unknown parameters". Script error: No such module "Portal". 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. It should also not be confused with the proprietary Xbasic language used in Alpha Software's Alpha Anywhere and Alpha Five products.

Version 6.2.3 was the last official release, released on 27 October 2002, however unofficial releases are still being maintained by a group of enthusiasts on GitHub.[1]

Characteristics

XBasic has signed and unsigned 8-, 16- and 32-bit and signed 64-bit integers as well as 32- and 64-bit floating point values. The string data type is only for 8-bit characters.

It is possible to generate an assembly language file. XBasic has a Windows only version called XBLite. Development is at SourceForge.

Components

  • Editor (writing source code)
  • Compiler (creating machine code)
  • Debugger (checking for errors)
  • Libraries (ready made code to call on)
  • GuiDesigner (creates the graphical user interface for the program)

Example code

' 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

References

Template:Reflist

External links

Template:BASIC Template:GUI builders Template:Use dmy dates

  1. Script error: No such module "citation/CS1".