antlr3.hpp 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #ifndef _ANTLR3_HPP
  2. #define _ANTLR3_HPP
  3. // [The "BSD licence"]
  4. // Copyright (c) 2005-2009 Gokulakannan Somasundaram, ElectronDB
  5. //
  6. // All rights reserved.
  7. //
  8. // Redistribution and use in source and binary forms, with or without
  9. // modification, are permitted provided that the following conditions
  10. // are met:
  11. // 1. Redistributions of source code must retain the above copyright
  12. // notice, this list of conditions and the following disclaimer.
  13. // 2. Redistributions in binary form must reproduce the above copyright
  14. // notice, this list of conditions and the following disclaimer in the
  15. // documentation and/or other materials provided with the distribution.
  16. // 3. The name of the author may not be used to endorse or promote products
  17. // derived from this software without specific prior written permission.
  18. //
  19. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  20. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  21. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  22. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  23. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  24. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  25. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  26. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  28. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. #include <cassert>
  30. #include <cstddef> // ptrdiff_t
  31. #include <cstdint> // uint32_t, ...
  32. #include <cstdio> // stderr (TODO remove fprintf(stderr)
  33. #include <cstdlib> // malloc, calloc
  34. #include <cstring>
  35. #include <algorithm>
  36. #include <deque>
  37. #include <exception>
  38. #include <iostream>
  39. #include <limits>
  40. #include <map>
  41. #include <memory>
  42. #include <new>
  43. #include <set>
  44. #include <sstream>
  45. #include <string>
  46. #include <vector>
  47. #include "antlr3defs.hpp"
  48. /* Pre declare the typedefs for all the interfaces, then
  49. * they can be inter-dependant and we will let the linker
  50. * sort it out for us.
  51. */
  52. #include "antlr3interfaces.hpp"
  53. // Include the unicode.org conversion library header.
  54. //
  55. #include "antlr3convertutf.hpp"
  56. #include "antlr3errors.hpp"
  57. #include "antlr3memory.hpp"
  58. #include "antlr3collections.hpp"
  59. #include "antlr3recognizersharedstate.hpp"
  60. #include "antlr3baserecognizer.hpp"
  61. #include "antlr3bitset.hpp"
  62. #include "antlr3commontoken.hpp"
  63. #include "antlr3commontree.hpp"
  64. #include "antlr3commontreeadaptor.hpp"
  65. #include "antlr3cyclicdfa.hpp"
  66. #include "antlr3debugeventlistener.hpp"
  67. #include "antlr3exception.hpp"
  68. #include "antlr3filestream.hpp"
  69. #include "antlr3intstream.hpp"
  70. #include "antlr3input.hpp"
  71. #include "antlr3tokenstream.hpp"
  72. #include "antlr3commontreenodestream.hpp"
  73. #include "antlr3lexer.hpp"
  74. #include "antlr3parser.hpp"
  75. //#include "antlr3rewritestreams.hpp"
  76. #include "antlr3rewriteruletokenstream.hpp"
  77. #include "antlr3rewriterulesubtreestream.hpp"
  78. #include "antlr3traits.hpp"
  79. #include "antlr3treeparser.hpp"
  80. #endif