From 2b066ec1b8801b08052a68282ce34ef9c425ae8f Mon Sep 17 00:00:00 2001 From: fche Date: Sat, 21 May 2005 01:35:34 +0000 Subject: * at long last, a more full-bodied snapshot 2005-05-20 Frank Ch. Eigler 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. --- parse.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'parse.h') diff --git a/parse.h b/parse.h index 1d07645f..c0e457e9 100644 --- a/parse.h +++ b/parse.h @@ -2,6 +2,9 @@ // Copyright 2005 Red Hat Inc. // GPL +#ifndef PARSE_H +#define PARSE_H + #include #include #include @@ -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&); + void parse_global (std::vector&); 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 -- cgit