Skip to content
Benjamin Kowarsch edited this page Jun 23, 2026 · 10 revisions

Portable Pragmas for Pascal, Modula-2 and Oberon

This document represents a common portable pragma specification for Wirthian languages and their dialects. The pragmas are designed both for adoption in new compiler projects and retrofitting to existing compilers without polluting the existing grammar. The specification is currently divided into four sections:

Pragma Scopes

Pragma Scopes

Pragma Placement

Pragma Placement

Pragma Specification

Pragma Specification

Pragma Grammar

Syntax Diagrams

Syntax Diagrams

EBNF

EBNF

Clone this wiki locally