home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Tools / Preditor 2.0 / Preditor Folder / LDC Source / C++.ldf < prev    next >
Encoding:
Text File  |  1989-09-15  |  1.6 KB  |  48 lines  |  [TEXT/TCEd]

  1. #--------------------------------------------------------------
  2. #                 Description of the C++ language
  3. #
  4. #  by Thomas Carstensen                        May 14, 1989
  5. #--------------------------------------------------------------
  6.  
  7. LANGUAGE 'C++'
  8.  
  9. EXTENSION .h .cc
  10.  
  11. COMMENT /* */
  12. COMMENT ONELINE // '¬'        60   # Place comment at column 60
  13.  
  14. BRACKET { }
  15. BRACKET [ ]
  16. BRACKET ( )
  17.  
  18. QUOTE ' '
  19. QUOTE " "
  20.  
  21. ESCAPE '\'
  22.  
  23. RESERVED  asm      auto      break  case     catch    char     class \
  24.           comp     const     continue        default  delete   do \
  25.           double   else      enum   extended extern   float    for \
  26.           friend   goto      if     inherited inline  int      long \
  27.           new      operator  overload        pascal   private  protected \
  28.           public   register  return   short  signed   sizeof   static \
  29.           struct   switch    template this   typedef  union \
  30.           unsigned virtual   void     volatile        while
  31.  
  32. DESCRIPTION " The C++ Programming Lanuage              written by Thomas Carstensen" \
  33.              "                     Wednesday, August 9, 1989"
  34.  
  35. TEMPLATES
  36.     If        -> 'if (' ^ ') {' [1] ^ [-1] }
  37.     While    -> 'while (' ^ ') {' [1] ^ [-1] }
  38.     Do        -> 'do {' [1] ^ [-1] '} while (' ^ );
  39.     Function -> ^ ' ' ^ ( ^ ) [0] { [1] ^ [-1] }
  40.     Typedef    -> 'typedef struct' ^ { [1] ^ [-1] } ^ ;
  41.     Class   -> '/*' [0] ' * HEADER' [0] ' *    ' ^ \
  42.                 '.h - <one-line' ' description of module>' [0] \
  43.                 ' * ' [0] ' * COPYRIGHT' [0] \
  44.                 ' *    Copyright (C) ' ^ [0] ' *' [0] \
  45.                 
  46.     Class2   -> class ' ' ^ ' {' [1] ^ [-1] 'public:' \
  47.                [1] ^ [-1] 'private:' [1] ^ [-1] };/*
  48.