home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / qtawk / ansirsvg.exp < prev    next >
Text File  |  1989-04-28  |  2KB  |  72 lines

  1. BEGIN {
  2.     #
  3.     # ANSI C reserved words
  4.     #
  5.     # expression for leader
  6.     ldr = /(^|[\s\t\*\(,])/;
  7.     # upper case letters
  8.     upr = /[A-Z]/;
  9.     # lower case letters
  10.     lwr = /[a-z]/;
  11.     # characters allowed in names
  12.     alwd = /[A-Za-z0-9_]/;
  13.     # abbreviation
  14.     f = /[fl]/;
  15.     # opening function parenthesis
  16.     o_p = /{_w}*\(/;
  17. }
  18. #
  19. #
  20. #1 <errno.h> reserved words
  21. GROUP /{ldr}E{upr}{alwd}+/
  22. #
  23. #2 <ctype.h> reserved words
  24. GROUP /{ldr}(is|to){lwr}{alwd}+{o_p}/
  25. #
  26. #3 <locale.h> reserved words
  27. GROUP /{ldr}LC_{upr}{alwd}/
  28. #
  29. #4 <math.h> reserved words
  30. GROUP /{ldr}a(cos|sin|tan2?){f}{o_p}/
  31. #
  32. #5 <math.h> reserved words
  33. GROUP /{ldr}(cos|sin|tan)h?{f}{o_p}/
  34. #
  35. #6 <math.h> reserved words
  36. GROUP /{ldr}(fr|ld)?exp{f}{o_p}/
  37. #
  38. #7 <math.h> reserved words
  39. GROUP /{ldr}log(10)?{f}{o_p}/
  40. #
  41. #8 <math.h> reserved words
  42. GROUP /{ldr}modf{f}{o_p}/
  43. #
  44. #9 <math.h> reserved words
  45. GROUP /{ldr}pow{f}{o_p}/
  46. #
  47. #10 <math.h> reserved words
  48. GROUP /{ldr}sqrt{f}{o_p}/
  49. #
  50. #11 <math.h> reserved words
  51. GROUP /{ldr}ceil{f}{o_p}/
  52. #
  53. #12 <math.h> reserved words
  54. GROUP /{ldr}(f|l)?abs{f}{o_p}/
  55. #
  56. #13 <math.h> reserved words
  57. GROUP /{ldr}f(loor|mod){f}{o_p}/
  58. #
  59. #14 <signal.h> reserved words
  60. GROUP /{ldr}SIG_{upr}{alwd}+/
  61. #
  62. #15 <string.h> reserved words
  63. GROUP /{ldr}(str|mem){lwr}{alwd}+{o_p}/
  64. #
  65. #99 Variable Names Reserved by Committee for Standard Library
  66. #  ALL identifiers starting with '_'
  67. GROUP /{ldr}_{alwd}+/ { printf("%u: %s\n",FNR,$0); }
  68.  
  69. FINAL {
  70.     printf("Lines Scanned: %lu\n",NR);
  71. }
  72.