lex.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* Token type definitions for bison's input reader,
  2. Copyright (C) 1984 Bob Corbett and Free Software Foundation, Inc.
  3. BISON is distributed in the hope that it will be useful, but WITHOUT ANY
  4. WARRANTY. No author or distributor accepts responsibility to anyone
  5. for the consequences of using it or for whether it serves any
  6. particular purpose or works at all, unless he says so in writing.
  7. Refer to the BISON General Public License for full details.
  8. Everyone is granted permission to copy, modify and redistribute BISON,
  9. but only under the conditions described in the BISON General Public
  10. License. A copy of this license is supposed to have been given to you
  11. along with BISON so you can know your rights and responsibilities. It
  12. should be in a file named COPYING. Among other things, the copyright
  13. notice and this notice must be preserved on all copies.
  14. In other words, you are welcome to use, share and improve this program.
  15. You are forbidden to forbid anyone else to use, share and improve
  16. what you give them. Help stamp out software-hoarding! */
  17. #define ENDFILE 0
  18. #define IDENTIFIER 1
  19. #define COMMA 2
  20. #define COLON 3
  21. #define SEMICOLON 4
  22. #define BAR 5
  23. #define LEFT_CURLY 6
  24. #define TWO_PERCENTS 7
  25. #define PERCENT_LEFT_CURLY 8
  26. #define TOKEN 9
  27. #define NTERM 10
  28. #define GUARD 11
  29. #define TYPE 12
  30. #define UNION 13
  31. #define START 14
  32. #define LEFT 15
  33. #define RIGHT 16
  34. #define NONASSOC 17
  35. #define PREC 18
  36. #define SEMANTIC_PARSER 19
  37. #define PURE_PARSER 20
  38. #define TYPENAME 21
  39. #define NUMBER 22
  40. #define EXPECT 23
  41. #define ILLEGAL 24
  42. #define MAXTOKEN 1024