lex.h 1.5 KB

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