home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / CMTEX330 / SOURCE / SCAN.H < prev    next >
Text File  |  1992-02-19  |  2KB  |  79 lines

  1.  
  2. /*
  3.  * %Y%:%M%:%I%:%Q%
  4.  *
  5.  * Copyright 1987,1988,1991 Pat J Monardo
  6.  *
  7.  * Redistribution of this file is permitted through
  8.  * the specifications in the file COPYING.
  9.  *
  10.  *
  11.  */
  12.  
  13. void    scan_left_brace();
  14. void    scan_optional_equals();
  15. bool    scan_keyword();
  16.  
  17. global    int    cur_val_level;
  18. global    int    cur_val;
  19.  
  20. void    scan_something_internal();
  21.  
  22. void    mu_error();
  23.  
  24. #define INT_VAL        0
  25. #define DIMEN_VAL    1
  26. #define GLUE_VAL    2
  27. #define MU_VAL        3
  28. #define IDENT_VAL    4
  29. #define TOK_VAL        5
  30.  
  31. #define INPUT_LINE_NO_CODE    3
  32. #define BADNESS_CODE        4
  33.  
  34. void    scan_eight_bit_int();
  35. void    scan_char_num();
  36. void    scan_four_bit_int();
  37. void    scan_fifteen_bit_int();
  38. void    scan_twenty_seven_bit_int();
  39.  
  40. void    scan_int();
  41. #define INFINITY    017777777777
  42.  
  43. global    int    radix;
  44.  
  45. #define PLUS_TOKEN        (OTHER_TOKEN + '+')
  46. #define MINUS_TOKEN        (OTHER_TOKEN + '-')
  47. #define ZERO_TOKEN        (OTHER_TOKEN + '0')
  48. #define A_TOKEN            (LETTER_TOKEN + 'A')
  49. #define OTHER_A_TOKEN        (OTHER_TOKEN + 'A')
  50. #define OCTAL_TOKEN        (OTHER_TOKEN + '\'')
  51. #define HEX_TOKEN        (OTHER_TOKEN + '"')
  52. #define ALPHA_TOKEN        (OTHER_TOKEN + '`')
  53. #define POINT_TOKEN        (OTHER_TOKEN + '.')
  54. #define EURO_POINT_TOKEN    (OTHER_TOKEN + ',')
  55.  
  56. void    scan_dimen();
  57. #define MAX_DIMEN    07777777777
  58.  
  59. #define scan_normal_dimen()    scan_dimen(FALSE, FALSE, FALSE)
  60.  
  61. global    int    cur_order;
  62.  
  63. void    scan_glue();
  64.  
  65. #define scan_optional_space() \
  66.     {get_x_token(); if (cur_cmd != SPACER) back_input();}
  67.  
  68. #define get_nbx_token() \
  69.     {do get_x_token(); while (cur_cmd == SPACER);}
  70.  
  71. #define get_nbrx_token() \
  72.     {do get_x_token(); while (cur_cmd == SPACER || cur_cmd == RELAX);}
  73.  
  74. void    scan_spec();
  75. ptr    scan_rule_spec();
  76.  
  77. void    _scan_init();
  78. void    _scan_init_once();
  79.