Skip to content

Instantly share code, notes, and snippets.

View thar0x29a's full-sized avatar

Tharo thar0x29a

  • Germany
View GitHub Profile
@thar0x29a
thar0x29a / from_bass_to_basm.md
Last active May 4, 2022 14:07
Document to show changes made in basm compared to bass.

From bass to basm

This document shows changes in basm compared to the original bass Table Assembler, written by Near.

basm is a combination of the given Table Assembly Engine from bass combined with an new frontend (internally called plek) which is not exactly an assembler, but something that I call an Platypus Compiler: Something between assembly and basic.

The syntax itself mimics the old bass-macro syntax where it could.

Goal

I started this project having the wish to build a foundation for futher bass features that walks up the lane to be more programming language, and less assembler. The current macro framework of bass even struggles to have spaces on 'bad places' and to be honest, I found no way of solving this, but to switch from 'replace stuff' to 'parse stuff'. In other words: Redo the whole frontend from scratch.