char.tab 412 B

123456789101112131415161718192021222324252627282930313233343536
  1. %
  2. % CHARACTER CLASSES
  3. %
  4. % some general settings:
  5. %F %s,
  6. %S257
  7. %
  8. % START OF TOKEN
  9. %
  10. %iSTGARB
  11. STSKIP:\r \t\f\013
  12. STNL:\n
  13. STCOMP:!&<=>|
  14. STSIMP:-%()+*,/:?^~
  15. STCHAR:'
  16. STIDF:a-zA-Z_
  17. STNUM:0-9
  18. STSTR:"
  19. STEOI:\200
  20. %T/* character classes */
  21. %T#include "class.h"
  22. %Tchar tkclass[] = {
  23. %p
  24. %T};
  25. %
  26. % other kinds of classes
  27. %
  28. %C
  29. _D_|_H_|_I_|_O_:0-7
  30. _D_|_H_|_I_:89
  31. _H_|_I_:a-fA-F
  32. _I_:g-zG-Z_
  33. %Tchar tk2class[] = {
  34. %F %s,
  35. %p
  36. %T};