AMC User's Guide
Mark Grosberg
This document is a guide to the AMC compiler system, a meta-compiler that implements the philosophy that a programming language should adapt to the problem, not the other way around.
1.
Introduction
1.1 What is AMC?
1.2 History of AMC
1.3 Installing AMC on POSIX systems
1.4 Creating a simple project
2.
Lexical Conventions
2.1 Comments
2.2 String Literals
2.3 Integer Constants
2.4 Identifiers
3.
CGL Language Reference Manual
3.1 Constants
3.2 Expressions
3.3 Procedure definitions
3.4 Maps
3.5 Forms
4.
Built-in CGL procedures
4.1 String manipulation built-in's
4.2 Arithmatic built-in's
4.3 Looping and flow-control built-in's
4.4 Exception handling
4.5 File Operations
4.6 File name built-in's
5.
CGL Data structures
5.1 Tables
5.2 Lists
5.3 Structures
5.4 Sorting
5.5 Complex data structures
6.
AMC specific CGL built-in's
6.1 Informational
6.2 Output
6.3 State file
6.4 Utility
6.5 Errors
6.6 Interface files
6.7 Defining New Syntax
6.8 Processing tokens directly
7.
Native Languages
7.1 Copying fragments of C code
7.2 Analyzing C code
8.
Project files
8.1 Module types
8.2 Locations
8.3 Interfacing to configuration managment (version control)
8.4 File inclusion
8.5 State files
8.6 Specifying root modules
8.7 Environment variables
8.8 Executing arbitrary CGL code
8.9 Initialization
9.
Module Header Syntax
10.
Command line parameters
11.
Interactive mode
11.1 Editing
11.2 Commands
11.3 CGL Debugging
12.
Pre-defined Project Files and CGL procedures