What is SharpBASIC?

Latest on the SharpBASIC compiler
Post Reply
User avatar
frank
Site Admin
Posts: 51
Joined: Sun Nov 21, 2021 12:04 pm
Location: Netherlands
Contact:

What is SharpBASIC?

Post by frank »

SharpBASIC is a new programming language that is currently in development. As the name suggests the language should be considered a sharper BASIC, more powerful, less verbose but with a clear structure. The compiler is aimed to produce 32 and 64 bits native code (currently on Linux).

Development started in early 2020 by Frank Hoogerbeets, but was halted soon after the corona crisis began. Development resumed in late 2021. No time has been set yet for the release of the first compiler version.

The SharpBASIC compiler uses a recursive descent or 'top-down' predictive technique. As such, it does not do any backtracking or left-recursion. This requires the grammar to be clear and without ambiguity, which is what the SharpBASIC language aims to be, to make it pleasant for the programmer to use and for the compiler to process.

It should be noted that no grammar tools, such as ANTLR, JavaCC and Yacc, are being used or have been used. The compiler is being built from scratch, including the tokenizer and lexer.

Early on in the development, Jack Crenshaw's series "Let's build a compiler" served as a guide. It was particularly useful for the development of the expression parser, which has since grown far beyond what Crenshaw proposed and supports both implicit and explicit type recognition/conversion.
Last edited by frank on Wed Jan 26, 2022 9:42 am, edited 1 time in total.
Keep it simple!
Post Reply