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 09a9a8b was
843054c2,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
licencing: seventh groups of files
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
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 | // |
---|
15 | |
---|
16 | #ifndef PARSER_H |
---|
17 | #define PARSER_H |
---|
18 | |
---|
19 | #include <cstdio> |
---|
20 | |
---|
21 | #include "Parser/ParseNode.h" |
---|
22 | #include "LinkageSpec.h" |
---|
23 | |
---|
24 | class Parser { |
---|
25 | public: |
---|
26 | static Parser &get_parser(); |
---|
27 | |
---|
28 | // do the actual parse |
---|
29 | void parse( FILE *input ); |
---|
30 | |
---|
31 | // accessors to return the result of the parse |
---|
32 | DeclarationNode *get_parseTree() const { return parseTree; } |
---|
33 | int get_parseStatus() const { return parseStatus; } |
---|
34 | |
---|
35 | // mutators to control parse options |
---|
36 | void set_debug( bool debug ); |
---|
37 | void set_linkage( LinkageSpec::Type linkage ); |
---|
38 | |
---|
39 | // free the parse tree without actually destroying the parser |
---|
40 | void freeTree(); |
---|
41 | |
---|
42 | ~Parser(); |
---|
43 | private: |
---|
44 | Parser(); |
---|
45 | static Parser *theParser; |
---|
46 | DeclarationNode *parseTree; |
---|
47 | int parseStatus; |
---|
48 | }; |
---|
49 | |
---|
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.