Skip to content
M2SF Project Administrator edited this page Jun 12, 2017 · 23 revisions

M2BSK Modula-2 Bootstrap Kernel Project

Welcome to the Wiki of the M2BSK Modula-2 Bootstrap Kernel Project

Objective

The objective of this project is to develop a bootstrap compiler for revised Modula-2 language described in "Modula-2 Revision 2010" (Kowarsch and Sutcliffe, 2010-2015).

Purpose

The purpose of the M2BSK compiler is to facilitate bootstrapping of a self-hosting compiler for Modula-2 R10.

Dialects

The M2BSK compiler supports the Bootstrap Kernel (BSK) subset of Modula-2 R10. It does not support the full Modula-2 R10 specification, nor earlier PIM or ISO dialects.

Grammar

The grammar of the compiler is in the project repository

https://github.com/m2sf/m2bsk/blob/master/m2bsk-grammar.gll

For a graphical representation of the grammar, see section Syntax Diagrams.

License

M2BSK is licensed under the GNU Lesser General Public License (LGPL) both v.2.1 and v.3.

Prerequisites

The M2BSK compiler is written in the Modula-2 dialect described in the third and fourth editions of Niklaus Wirth's "Programming in Modula-2". Therefore a legacy Modula-2 compiler that supports either of these PIM dialects is required to build it. There are no dependencies on any third party libraries.

OS support

The M2BSK compiler will run on any operating system with target support by the host-compiler.

Collaboration

If you would like to contribute to the project, please get in touch by email

trijezdci (gmail)

+++

Clone this wiki locally