home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-09-15 | 1.6 KB | 48 lines | [TEXT/TCEd] |
- #--------------------------------------------------------------
- # Description of the C++ language
- #
- # by Thomas Carstensen May 14, 1989
- #--------------------------------------------------------------
-
- LANGUAGE 'C++'
-
- EXTENSION .h .cc
-
- COMMENT /* */
- COMMENT ONELINE // '¬' 60 # Place comment at column 60
-
- BRACKET { }
- BRACKET [ ]
- BRACKET ( )
-
- QUOTE ' '
- QUOTE " "
-
- ESCAPE '\'
-
- RESERVED asm auto break case catch char class \
- comp const continue default delete do \
- double else enum extended extern float for \
- friend goto if inherited inline int long \
- new operator overload pascal private protected \
- public register return short signed sizeof static \
- struct switch template this typedef union \
- unsigned virtual void volatile while
-
- DESCRIPTION " The C++ Programming Lanuage written by Thomas Carstensen" \
- " Wednesday, August 9, 1989"
-
- TEMPLATES
- If -> 'if (' ^ ') {' [1] ^ [-1] }
- While -> 'while (' ^ ') {' [1] ^ [-1] }
- Do -> 'do {' [1] ^ [-1] '} while (' ^ );
- Function -> ^ ' ' ^ ( ^ ) [0] { [1] ^ [-1] }
- Typedef -> 'typedef struct' ^ { [1] ^ [-1] } ^ ;
- Class -> '/*' [0] ' * HEADER' [0] ' * ' ^ \
- '.h - <one-line' ' description of module>' [0] \
- ' * ' [0] ' * COPYRIGHT' [0] \
- ' * Copyright (C) ' ^ [0] ' *' [0] \
-
- Class2 -> class ' ' ^ ' {' [1] ^ [-1] 'public:' \
- [1] ^ [-1] 'private:' [1] ^ [-1] };/*
-