XBLite
   HOME

TheInfoList



OR:

XBLite is a free Open Source BASIC programming language
compiler In computing, a compiler is a computer program that translates computer code written in one programming language (the ''source'' language) into another language (the ''target'' language). The name "compiler" is primarily used for programs tha ...
and development system. It was started in 2001 by David Szafranski in order to provide a
Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for ser ...
exclusive version of the
XBasic 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 sou ...
dialect. XBLite is released under the GNU GPL licensing scheme, Standard libraries are released under the
GNU LGPL The GNU Lesser General Public License (LGPL) is a free-software license published by the Free Software Foundation (FSF). The license allows developers and companies to use and integrate a software component released under the LGPL into their own ...
licensing scheme. The XBLite syntax is very similar to that of XBasic and somewhat similar to
Microsoft Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washin ...
's
QuickBASIC Microsoft QuickBASIC (also QB) is an Integrated Development Environment (or IDE) and compiler for the BASIC programming language that was developed by Microsoft. QuickBASIC runs mainly on DOS, though there was also a short-lived version for the c ...
in that it is a
procedural language Procedural programming is a programming paradigm, derived from imperative programming, based on the concept of the ''procedure call''. Procedures (a type of routine or subroutine) simply contain a series of computational steps to be carried ...
capable of subs and functions. XBLite also has 64 bit integer data type, User Defined Types and the ability to have multiple modules in order to create GUI applications or games.


XBLite History

XBLite is a project that was started back in 2001. The main idea was to create a language that was based on the
XBasic 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 sou ...
project that was to be exclusively a Microsoft Windows only programming language and environment. The first official release (version 1.0.0) was announced in October 2002, and subsequent versions were spread out amongst the last 6 years of development. Each release boasted both bug fixes and new features (to either the language itself and/or the different tools that are available with the XBLite project). Today, version 2.4.0 is the current release of the compiler and version 1.30 of XSEd (The code editor). One of the latest projects is a visual GUI designer called viXen.


XBLite Development Specific Events

* A project called xpeeper is currently being developed by the XBLite team. This aims to give
Peephole optimization Peephole optimization is an optimization technique performed on a small set of compiler-generated instructions; the small set is known as the peephole or window. Peephole optimization involves changing the small set of instructions to an equiva ...
technology to the XBLite project. The project has been distributed with XBLite since XBLite version 2.3.0. As well, XBLite is itself written in XBLite, making it a self hosting compiler (it can compile itself). Since version 2.1.0, XBLite incorporates the M4 preprocessor tool. * XSEd, the code editor available with XBLite was developed in XBLite. It is based on the Scintilla project, a widely used editing component. XSEd is a full featured editor that allows users to work with XBLite source code modules and allows them to compile the code right from the editor. * Open source project, viXen was originally created by John "prujohn" Evans, who released version 0.50a on July 22, 2006. It is a
WYSIWYG In computing, WYSIWYG ( ), an acronym for What You See Is What You Get, is a system in which editing software allows content to be edited in a form that resembles its appearance when printed or displayed as a finished product, such as a printed d ...
screen designer and an XBLite generator: viXen allows users to prototype a Windows GUI application before coding in XBLite the actual functions inside the generated skeleton. Currently, Guy Lonné develops and maintains the viXen project at SourceForge. * XBLite working with the native Windows
API An application programming interface (API) is a way for two or more computer programs to communicate with each other. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how ...
, Callum Lowcay started the WinX project. It is a GUI library (WinX.dll) written in XBLite that "wraps" many of the most useful
WinAPI The Windows API, informally WinAPI, is Microsoft's core set of application programming interfaces (APIs) available in the Microsoft Windows operating systems. The name Windows API collectively refers to several different platform implementations ...
calls. WinX simplifies coding Windows GUI applications in XBLite by providing an interface to the Windows widgets. WinX's applications can be first prototyped using viXen by just selecting the generation switch "Use WinX" prior the generation of the source code.


Components

XBLite comes with a complete set of components. * Compiler (can make executable files, libraries and dynamic linked libraries (DLL) files) * Scintilla
Code Editor A source-code editor is a text editor program designed specifically for editing source code of computer programs. It may be a standalone application or it may be built into an integrated development environment (IDE) or web browser. Source-code ed ...
XSEd * Resource Compiler *
Peephole optimizer Peephole optimization is an optimization technique performed on a small set of compiler-generated instructions; the small set is known as the peephole or window. Peephole optimization involves changing the small set of instructions to an equiva ...
xpeeper *
Graphical user interface builder A graphical user interface builder (or GUI builder), also known as GUI designer or sometimes RAD IDE, is a software development tool that simplifies the creation of GUIs by allowing the designer to arrange graphical control elements (often calle ...
viXen (Beta stage but very usable) * GUI library WinX


Sample Code

Here is a classic example as it might be coded in XBLite. *
Hello world program ''Hello'' is a salutation or greeting in the English language. It is first attested in writing from 1826. Early uses ''Hello'', with that spelling, was used in publications in the U.S. as early as the 18 October 1826 edition of the '' Norwich ...
in XBLite, console mode PROGRAM "hello" CONSOLE DECLARE FUNCTION Entry () FUNCTION Entry () a$ = INLINE$ ("Hello World!\n\n\n Press Enter to quit ") END FUNCTION END PROGRAM *
Hello world program ''Hello'' is a salutation or greeting in the English language. It is first attested in writing from 1826. Early uses ''Hello'', with that spelling, was used in publications in the U.S. as early as the 18 October 1826 edition of the '' Norwich ...
in XBLite, Windows GUI mode PROGRAM "sayhello" ' interfaces to system DLLs IMPORT "gdi32" ' importing interface to gdi32.dll IMPORT "user32" ' importing interface to user32.dll DECLARE FUNCTION Entry () ' declare function Entry() FUNCTION Entry () ' define (instantiate) function Entry() ' display a message box and wait until the user clicks the 'OK!' button MessageBoxA (0, &"Hello world!", &"Windows GUI Version", $$MB_OK) END FUNCTION END PROGRAM


References


PCOPY! Covering All The BASICs
*
PCOPY! Issue #70
, June 3, 2008, The DEF Of XBLite, Guy Lonné. *
PCOPY! Issue #60
January 8, 2008, An Xblite Primer, Guy Lonné. *
PCOPY! Issue #60
January 8, 2008, The ABC OF XBLite, Guy Lonné.
GMTech Magazine
*
Issue 5
Issue 5, May 2007, page 22 A Review Of XBLite
BASIC Programming
*
XBasic 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 sou ...
The Wikipedia on XBasic


External links

*
The XBLite Forum

XBLite User Group On Google



Visual XBLite Environment (viXen) project at SourceForge
* {{DEFAULTSORT:Xblite Articles with example BASIC code BASIC compilers Software using the GPL license BASIC programming language family