home *** CD-ROM | disk | FTP | other *** search
/ cs.rhul.ac.uk / www.cs.rhul.ac.uk.zip / www.cs.rhul.ac.uk / pub / rdp / rdp_cs3460.tar / pr_c_aux.h < prev    next >
C/C++ Source or Header  |  1998-05-07  |  936b  |  25 lines

  1. /****************************************************************************
  2. *
  3. * RDP release 1.50 by Adrian Johnstone (A.Johnstone@rhbnc.ac.uk) 20 December 1997
  4. *
  5. * pr_c_aux.h - pretty printer semantic routines
  6. *
  7. * This file may be freely distributed. Please mail improvements to the author.
  8. *
  9. ****************************************************************************/
  10. enum kinds
  11. {
  12.   K_BLOCK_CLOSE, K_BLOCK_OPEN, K_CHARACTER, K_CLOSE_BRACKET, K_COMMENT, 
  13.   K_DIADIC, K_EOLN, K_FIELD_DELIM, K_KEYWORD, K_KEYWORD_INDENT, K_ITEM, 
  14.   K_MONADIC, K_OPEN_BRACKET, K_PREPROCESSOR, K_PUNCTUATION, K_STRING, K_TOP
  15. }; 
  16.  
  17. extern unsigned long indent_size; 
  18. extern unsigned long comment_start; 
  19.  
  20. void pretty_close(char * sourcefilename, char * outputfilename); 
  21. void pretty_open(char * sourcefilename, char * outputfilename); 
  22. void pretty_print(char * lexeme, enum kinds kind, unsigned long column, unsigned long line); 
  23.  
  24. /* End of pr_c_aux.h */
  25.