diff options
author | fche <fche> | 2005-05-21 01:35:34 +0000 |
---|---|---|
committer | fche <fche> | 2005-05-21 01:35:34 +0000 |
commit | 2b066ec1b8801b08052a68282ce34ef9c425ae8f (patch) | |
tree | d0b8aadc2521e2fbf1adde2d330bd7a941587087 /parse.h | |
parent | a199030a268b007580b57a83b511f97bbb65996f (diff) | |
download | systemtap-steved-2b066ec1b8801b08052a68282ce34ef9c425ae8f.tar.gz systemtap-steved-2b066ec1b8801b08052a68282ce34ef9c425ae8f.tar.xz systemtap-steved-2b066ec1b8801b08052a68282ce34ef9c425ae8f.zip |
* at long last, a more full-bodied snapshot
2005-05-20 Frank Ch. Eigler <fche@redhat.com>
Many changes throughout. Partial sketch of translation output.
* elaborate.*: Elaboration pass.
* translate.*: Translation pass.
* staptree.*: Simplified for visitor concept.
* main.cxx: Translator mainline.
* *test.cxx: Removed.
* testsuite/*: Some new tests, some changed for newer syntax.
Diffstat (limited to 'parse.h')
-rw-r--r-- | parse.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -2,6 +2,9 @@ // Copyright 2005 Red Hat Inc. // GPL +#ifndef PARSE_H +#define PARSE_H + #include <string> #include <fstream> #include <iostream> @@ -20,6 +23,7 @@ struct source_loc enum token_type { tok_junk, tok_identifier, tok_operator, tok_string, tok_number + // XXX: add tok_keyword throughout }; @@ -87,7 +91,7 @@ private: // nonterminals probe* parse_probe (); probe_point* parse_probe_point (); literal* parse_literal (); - void parse_global (vector<vardecl*>&); + void parse_global (std::vector<vardecl*>&); functiondecl* parse_functiondecl (); block* parse_stmt_block (); statement* parse_statement (); @@ -111,3 +115,7 @@ private: // nonterminals expression* parse_symbol (); symbol* parse_symbol_plain (); }; + + + +#endif // PARSE_H |