Language

Specification:

General

Scope

Normative references

Glossary

Conformance

Compiler

Compilation phases

  • Lexical Analysis
  • Syntax Analysis
  • Semantic Analysis
  • Code generation

The source file

  • Structure (order)
  • Character sets
  • Trigraph sequences
  • Multibyte characters

Project structure

Configuration

  • #get
  • #set
  • #require

Language

Keywords

Type system

Identifiers

Literals

Variables

Functions

Statements and blocks

Control flow

Expressions

Introspection

Preprocessor and metaprogramming

Memory management


To build a toy compiler you can read:

Those documents define the compilation process and minimal code generation needed.