]>
sourceware.org Git - systemtap.git/blob - parse.h
2 // Copyright (C) 2005-2010 Red Hat Inc.
3 // Copyright (C) 2007 Bull S.A.S
5 // This file is part of systemtap, and is free software. You can
6 // redistribute it and/or modify it under the terms of the GNU General
7 // Public License (GPL); either version 2, or (at your option) any
27 std::ostream
& operator << (std::ostream
& o
, const source_loc
& loc
);
31 con_unknown
, con_probe
, con_global
, con_function
, con_embedded
37 tok_junk
, tok_identifier
, tok_operator
, tok_string
, tok_number
,
38 tok_embedded
, tok_keyword
50 std::ostream
& operator << (std::ostream
& o
, const token
& t
);
53 struct parse_error
: public std::runtime_error
57 parse_error (const std::string
& msg
):
58 runtime_error (msg
), tok (0), skip_some (true) {}
59 parse_error (const std::string
& msg
, const token
* t
):
60 runtime_error (msg
), tok (t
), skip_some (true) {}
61 parse_error (const std::string
& msg
, bool skip
):
62 runtime_error (msg
), tok (0), skip_some (skip
) {}
66 struct systemtap_session
;
68 stapfile
* parse (systemtap_session
& s
, std::istream
& i
, bool privileged
);
69 stapfile
* parse (systemtap_session
& s
, const std::string
& n
, bool privileged
);
74 /* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
This page took 0.040407 seconds and 5 git commands to generate.