Making a Programming Language From Scratch

Introduction

This book covers the art of language creation. Making a language is a sophisticated task; however, simple languages can be made by transpiling to other higher level languages and by using lexing and parsing packages such as Bison or Flex. This book does not cover this. It demonstrates the creation of languages from nothing at all, as most commercial languages are. Here, the basic algorithms for conversion, assembly language equivalents for some common statements, the advantages and disadvantages of each type of compilation method, basic lexing and parsing are demonstrated. Note that this book assumes that you have at least a moderate understanding of x86 assembly and can write programs in a language. Keep in mind that language creation is an exhaustive process, and thus will require many days of hard labor to create.

Chapters

Category:Books with print version#Making%20a%20Programming%20Language%20From%20Scratch

Preliminaries

Data Declarations

Expressions

Conditions

Functions

Category:Subject:Computer programming/all books Category:Subject:Computer science/all books Category:Subject:Computing/all books Category:Subject:Books by subject/all books Category:Subject:Computing/all books Category:Subject:Books by subject/all books Category:Book:Making a Programming Language From Scratch#%20 Category:Book:Wikibooks Stacks/Books#Making%20a%20Programming%20Language%20From%20ScratchCategory:Shelf:Computer programming Category:Shelf:Computer programming/all books Category:Shelf:Computer science/all books#Computer%20science Category:Department:Computing/all books#Computing Category:Alphabetical/Q
Category:Alphabetical/Q Category:Book:Making a Programming Language From Scratch Category:Book:Wikibooks Stacks/Books Category:Books by completion status/all books Category:Books with print version Category:Department:Computing/all books Category:Half-finished books Category:Shelf:Computer programming Category:Shelf:Computer programming/all books Category:Shelf:Computer science/all books Category:Subject:Books by subject/all books Category:Subject:Computer programming Category:Subject:Computer programming/all books Category:Subject:Computer science/all books Category:Subject:Computing/all books