diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2007-11-19 23:02:17 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2007-11-19 23:02:17 -0500 |
commit | f204c373c6004f9f4c9742bd04acedb2767f4806 (patch) | |
tree | eb20e3219db643c07802dbec890b704e44b87458 /parse.cxx | |
parent | 055e8b89db8f76f0ccc05d08acfe979ba50024d6 (diff) | |
parent | d898100ab001dd4b3465f738dad76d1d646c3261 (diff) | |
download | systemtap-steved-f204c373c6004f9f4c9742bd04acedb2767f4806.tar.gz systemtap-steved-f204c373c6004f9f4c9742bd04acedb2767f4806.tar.xz systemtap-steved-f204c373c6004f9f4c9742bd04acedb2767f4806.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'parse.cxx')
-rw-r--r-- | parse.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -996,7 +996,6 @@ parser::parse_probe (std::vector<probe *> & probe_ret, next (); continue; } - else if (t && t->type == tok_operator && t->content == ",") { locations.push_back(pp); @@ -1348,9 +1347,12 @@ parser::parse_probe_point () // We only fall through here at the end of a probe point (past // all the dotted/parametrized components). - if (t && t->type == tok_operator && t->content == "?") + if (t && t->type == tok_operator && + (t->content == "?" || t->content == "!")) { pl->optional = true; + if (t->content == "!") pl->sufficient = true; + // NB: sufficient implies optional next (); t = peek (); // fall through @@ -1361,7 +1363,7 @@ parser::parse_probe_point () t->content == "=" || t->content == "+=" )) break; - throw parse_error ("expected '.' or ',' or '(' or '?' or '{' or '=' or '+='"); + throw parse_error ("expected one of '. , ( ? ! { = +='"); } return pl; |