]>
Commit | Line | Data |
---|---|---|
30fdf114 LG |
1 | /* ANTLRTokenStream.h\r |
2 | *\r | |
3 | * SOFTWARE RIGHTS\r | |
4 | *\r | |
5 | * We reserve no LEGAL rights to the Purdue Compiler Construction Tool\r | |
6 | * Set (PCCTS) -- PCCTS is in the public domain. An individual or\r | |
7 | * company may do whatever they wish with source code distributed with\r | |
8 | * PCCTS or the code generated by PCCTS, including the incorporation of\r | |
9 | * PCCTS, or its output, into commerical software.\r | |
10 | *\r | |
11 | * We encourage users to develop software with PCCTS. However, we do ask\r | |
12 | * that credit is given to us for developing PCCTS. By "credit",\r | |
13 | * we mean that if you incorporate our source code into one of your\r | |
14 | * programs (commercial product, research project, or otherwise) that you\r | |
15 | * acknowledge this fact somewhere in the documentation, research report,\r | |
16 | * etc... If you like PCCTS and have developed a nice tool with the\r | |
17 | * output, please mention that you developed it using PCCTS. In\r | |
18 | * addition, we ask that this header remain intact in our source code.\r | |
19 | * As long as these guidelines are kept, we expect to continue enhancing\r | |
20 | * this system and expect to make other tools available as they are\r | |
21 | * completed.\r | |
22 | *\r | |
23 | * ANTLR 1.33\r | |
24 | * Terence Parr\r | |
25 | * Parr Research Corporation\r | |
26 | * with Purdue University and AHPCRC, University of Minnesota\r | |
27 | * 1989-2000\r | |
28 | */\r | |
29 | \r | |
30 | #ifndef ATOKENSTREAM_H_GATE\r | |
31 | #define ATOKENSTREAM_H_GATE\r | |
32 | \r | |
33 | #include "pcctscfg.h"\r | |
34 | \r | |
35 | /* This is really a behavior or protocol; it merely indicates the behavior\r | |
36 | * required of the input and output of an ANTLRTokenBuffer. You could\r | |
37 | * subclass it, but you can also just pass any old pointer to ANTLRTokenBuffer\r | |
38 | * with a type cast (in which case, your getANTLRToken() would have to\r | |
39 | * explicitly cast the input pointer to your REAL type (typically your lexer)).\r | |
40 | */\r | |
41 | \r | |
42 | class ANTLRParser; // MR1\r | |
43 | \r | |
44 | class DllExportPCCTS ANTLRTokenStream {\r | |
45 | public:\r | |
46 | virtual _ANTLRTokenPtr getToken() = 0;\r | |
47 | virtual ANTLRParser * setParser(ANTLRParser * /*p MR23*/) {return 0; }; // MR12\r | |
48 | virtual ANTLRParser * getParser() { return 0; }; // MR12\r | |
49 | };\r | |
50 | \r | |
51 | #endif\r |