LEX.H 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* Token type definitions for bison's input reader,
  2. Copyright (C) 1984, 1989 Free Software Foundation, Inc.
  3. This file is part of Bison, the GNU Compiler Compiler.
  4. Bison is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 1, or (at your option)
  7. any later version.
  8. Bison is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with Bison; see the file COPYING. If not, write to
  14. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  15. #define ENDFILE 0
  16. #define IDENTIFIER 1
  17. #define COMMA 2
  18. #define COLON 3
  19. #define SEMICOLON 4
  20. #define BAR 5
  21. #define LEFT_CURLY 6
  22. #define TWO_PERCENTS 7
  23. #define PERCENT_LEFT_CURLY 8
  24. #define TOKEN 9
  25. #define NTERM 10
  26. #define GUARD 11
  27. #define TYPE 12
  28. #define UNION 13
  29. #define START 14
  30. #define LEFT 15
  31. #define RIGHT 16
  32. #define NONASSOC 17
  33. #define PREC 18
  34. #define SEMANTIC_PARSER 19
  35. #define PURE_PARSER 20
  36. #define TYPENAME 21
  37. #define NUMBER 22
  38. #define EXPECT 23
  39. #define ILLEGAL 24
  40. #define MAXTOKEN 1024