Giter Site home page Giter Site logo

minskvb's Introduction

BASIC for .NET

License: MIT

Building a BASIC compiler from scratch targetting .NET Core (v3) using VB.NET.

History

In the past I've built a 100% language-compatible version of the classic GW-BASIC MS-DOS environment. It was made available through Windows Phone and as a SilverLight web-hosted application. (Man, I really picked two "winners" there...)

The GW-BASIC project was built mostly through "brute force" without any thought to making the project (code) publically visible. As such, I've never released the code.

Fast forward a few years to now...

What is this?

The original GW-BASIC project was the classic/retro "IDE" and an interpreter (REPL). This project is going to take this all in a very different direction by starting with the compiler as the ultimate goal. I'm sure that some of the original project will make it's way into this one... but for the most part, this project is "starting from scratch" with the ultimate goal of having a pretty good representation of "classic" BASIC targetting .NET Core!

For now, yes, I'm planning on adding support for line numbers. ;-)

Why???

Why not?

Progress...

So far I've worked through the all of the available episodes of the video series (see below)... until that series gets to the point of actually compiling to .NET (Core) I will be following along pretty closely with what is being done in Minsk. Once we reach the compile milestone is when I plan to incorporate the work I did in my GW-BASIC project into the structure of this project; ultimately compiling to an executable.

Additional Info

Credits

As I already stated, much of the work on this project will be "borrowed" from my previous work; however, I'm also borrowing (learning) from Immo Landwerth's video series on the subject of "building a compiler". He's not claiming to be a "master"; however, he's certainly has more knowledge on the subject than I do and a good amount of experience on Roslyn (and .NET) that I feel I can definately learn from and am treating his video series as a sort of "master class" on the subject. ;-)

Although not the same compiler, as I said the process of building this compiler is inspired in part by Minsk by Immo Landwerth (YouTube). If you are interested in how to build a C-style compiler for .NET, please see his video series. Some key differences are:

  • A language similar to BASIC instead of C/JScript.
  • Using Visual Studio 2019 Community Edition (instead of Visual Studio Code).
  • Using GitHub Tools for Visual Studio instead of command line tools.

I highly recommend Immo's video series... it's awesome!

You can also find the repo for Immo's version here.

One additional note is that although not inspired by the comment he has at about 11 minutes into his first video, this project does attempt to answer the request someone made in his first live stream. ;-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.