Interactive BASIC Compiler Project

The purpose of this blog is to document the effort to create an interactive BASIC compiler.

Sunday, June 19, 2016

New Direction (this project is not dead)

›
Starting from scratch (well almost)... The code for this project has become rather complex with three major problems, the translation proc...
Monday, March 2, 2015

Table Class Hierarchy – LET and Assign Entries

›
The LET and assign table entries were implemented into the new table class hierarchy.  The sub-string assign entries were not done at this t...
Saturday, February 28, 2015

Table Class Hierarchy – Refactoring (continued)

›
The two small collection structures ( Base Information and Type Information ) were moved from the operand source file to the table header f...
Thursday, February 26, 2015

Table Class Hierarchy – Refactoring

›
The class hierarchies for operand class and the PRINT and INPUT commands were implemented some what differently.  For the operand classes,...
Saturday, February 21, 2015

Table Class Hierarchy – INPUT Entries

›
The INPUT related table entries were put into the  new table class hierarchy.  The diagram below shows the table sub-class hierarchy for th...
Friday, February 20, 2015

Table Class Hierarchy – PRINT Entries

›
The PRINT related table entries were put into the  new table class hierarchy.  The diagram below shows the table sub-class hierarchy for the...
Wednesday, February 18, 2015

Table Class Hierarchy – Operand Entries

›
The last several commits involved the virtual encode , operand text , and remove table functions.  These virtual functions will only be use...
Monday, February 16, 2015

Program Writer Class – Call Chain Removal

›
To write words into the program, a standard back insert iterator (back inserter) was passed to the encode functions (one in the token class ...
Sunday, February 15, 2015

Program Reader Class – Call Chain Removal

›
As mentioned recently, having a chain of function calls is not good object-oriented design because it requires the initial caller to have kn...

Table – Operand Text & Remove Virtual Functions

›
Like to the encode function, the twelve operand text and remove functions did the same things with different dictionaries.  These were re...
Saturday, February 14, 2015

Table – Encode Virtual Function

›
The six encode functions did the same thing except with a different dictionary, a pointer that was obtained from one of six dictionary acce...
Friday, February 13, 2015

Program – Dictionary Pointers

›
The individual dictionary pointers in the program model class were replaced with a standard array of dictionary pointers.  The standard arra...
Thursday, February 12, 2015

Dictionary – Minor Refactoring

›
Before continuing with the reduction of the virtual table functions for the codes with operands, some minor refactoring and clean up was per...
Wednesday, February 11, 2015

Dictionary – Proper Base Class

›
The Dictionary class was not designed to be an abstract base class in a dictionary class hierarchy.  An abstract base class contains virtua...
Tuesday, February 10, 2015

Program – Dictionary Class Problem

›
While investigating how clean up the chain calling mentioned in the previous post, it was discovered that the dictionary class hierarchy wit...
Sunday, February 8, 2015

Program Model Access Refactoring (Part 2)

›
The next observation was that the program line reader argument of the operand text and remove virtual table functions was accompanied by ...
›
Home
View web version
Powered by Blogger.