Next Index Top Open printable PDF file

Metaprogramming System

Reference Manual

Mjølner Informatics Report
MIA 91-14
August 1999
Contents
The Metaprogramming System
Introduction to Context-Free Grammers
Structured Context-Free Grammars
Example of Structured Context-Free Grammar
The Tree Level
The Context-Free Level
The Structure of the Context-free Level Interface
Example of Structured Context-Free Grammar, cont.
Using the Context-Free Level
The Semantic Level
The Fragment System Interface
Generating a Metaprogramming Interface
Constructing a Grammar
The Fragment Part
The Naming Part
The Options Part
The Rules Part
The Attributes Part
An Example Grammar
Generating the Grammar-Based Information
Generating the Metaprogramming Interface
Generating Parser and Parser Tables
Generating Pretty-printer Specification
Generating Pretty-printer Specification Tables
Generating the Grammar-based Information Easily
Registering the new grammar
Using the Pretty-printer and the Hyper-structure Editor
Modifying the Pretty-print Specification
The Pretty-print Algorithm
The Pretty-print Specification
An Example of Modifying the Pretty-print Specification
Format of Source Files
Fragment and AST Properties
The Metaprogramming System Libraries
Appendix A: The Metagrammar
Appendix B: The Pretty-print Specification Grammar
Appendix C: Expression Grammar Example
The Expression Grammar
The Expression Pretty-Print Grammar
The Expression Context-Free Level Interface
The Expression Semantic Level Interface
The Expression Evaluator Program
Interface Descriptions
Index
Copyright © 1991-99 Mjølner Informatics.
All rights reserved.
No part of this document may be copied or distributed
without the prior written permission of Mjølner Informatics


Metaprogramming System

Next Index Top