ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change
on this file since 6244dfb was
843054c2,
checked in by Peter A. Buhr <pabuhr@…>, 9 years ago
|
licencing: seventh groups of files
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[b87a5ed] | 1 | // |
---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo |
---|
| 3 | // |
---|
| 4 | // The contents of this file are covered under the licence agreement in the |
---|
| 5 | // file "LICENCE" distributed with Cforall. |
---|
| 6 | // |
---|
| 7 | // Parser.h -- |
---|
| 8 | // |
---|
| 9 | // Author : Rodolfo G. Esteves |
---|
| 10 | // Created On : Sat May 16 14:56:50 2015 |
---|
| 11 | // Last Modified By : Peter A. Buhr |
---|
| 12 | // Last Modified On : Sat May 16 14:58:56 2015 |
---|
| 13 | // Update Count : 2 |
---|
| 14 | // |
---|
[51b7345] | 15 | |
---|
| 16 | #ifndef PARSER_H |
---|
| 17 | #define PARSER_H |
---|
| 18 | |
---|
| 19 | #include <cstdio> |
---|
| 20 | |
---|
| 21 | #include "Parser/ParseNode.h" |
---|
| 22 | #include "LinkageSpec.h" |
---|
| 23 | |
---|
[b87a5ed] | 24 | class Parser { |
---|
| 25 | public: |
---|
| 26 | static Parser &get_parser(); |
---|
[51b7345] | 27 | |
---|
[b87a5ed] | 28 | // do the actual parse |
---|
| 29 | void parse( FILE *input ); |
---|
[51b7345] | 30 | |
---|
[b87a5ed] | 31 | // accessors to return the result of the parse |
---|
| 32 | DeclarationNode *get_parseTree() const { return parseTree; } |
---|
| 33 | int get_parseStatus() const { return parseStatus; } |
---|
[51b7345] | 34 | |
---|
[b87a5ed] | 35 | // mutators to control parse options |
---|
| 36 | void set_debug( bool debug ); |
---|
| 37 | void set_linkage( LinkageSpec::Type linkage ); |
---|
[51b7345] | 38 | |
---|
[b87a5ed] | 39 | // free the parse tree without actually destroying the parser |
---|
| 40 | void freeTree(); |
---|
[51b7345] | 41 | |
---|
[b87a5ed] | 42 | ~Parser(); |
---|
| 43 | private: |
---|
| 44 | Parser(); |
---|
| 45 | static Parser *theParser; |
---|
| 46 | DeclarationNode *parseTree; |
---|
| 47 | int parseStatus; |
---|
[51b7345] | 48 | }; |
---|
| 49 | |
---|
[b87a5ed] | 50 | #endif // PARSER_H |
---|
| 51 | |
---|
| 52 | // Local Variables: // |
---|
| 53 | // tab-width: 4 // |
---|
| 54 | // mode: c++ // |
---|
| 55 | // compile-command: "make install" // |
---|
| 56 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.