summaryrefslogtreecommitdiffstats
path: root/parse.h
diff options
context:
space:
mode:
authorfche <fche>2005-03-04 20:10:09 +0000
committerfche <fche>2005-03-04 20:10:09 +0000
commit0fefb486c5965e371cb52f55548123233da85f72 (patch)
treed8f847e4fa6972bdd9ff22b180a5f057d52d579e /parse.h
parent8af3da4621b58b8bf39f42f65cac2d6111928fd7 (diff)
downloadsystemtap-steved-0fefb486c5965e371cb52f55548123233da85f72.tar.gz
systemtap-steved-0fefb486c5965e371cb52f55548123233da85f72.tar.xz
systemtap-steved-0fefb486c5965e371cb52f55548123233da85f72.zip
2005-03-04 Frank Ch. Eigler <fche@redhat.com>
* parse.cxx (scan): Support '$' characters in identifiers. (parse_symbol): Support thread-> / process-> shorthand. * staptree.cxx (symresolution_info::find): Split up into find_scalar, find_array, find_function. (resolve_symbols): Call the above for symbol/arrayindex/functioncall. (find_scalar): Add stub support for synthetic builtin variables. * staptree.h: Corresponding changes. * testsuite/*: Some new tests.
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.h b/parse.h
index ddfb19c1..c8008bc7 100644
--- a/parse.h
+++ b/parse.h
@@ -22,6 +22,7 @@ enum token_type
tok_junk, tok_identifier, tok_operator, tok_string, tok_number
};
+
struct token
{
source_loc location;
@@ -29,6 +30,7 @@ struct token
std::string content;
};
+
std::ostream& operator << (std::ostream& o, const token& t);