From 5811366a62325d2cacf5509c25ee564ae3269f9b Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 4 Apr 2007 21:18:23 +0000 Subject: 2007-04-03 Pierre Peiffer * parse.cxx, parse.h (lexer::scan): Add $# and @# identifiers. (eval_pp_conditional, scan_pp): Allow the use of $x and @x identifiers. Produce more accurate error messages. * stap.1.in: Document $# and @# identifiers. 2007-04-04 Pierre Peiffer * parseok/fourteen.stp: Add test about $# and @# usage during the preprocessing. * parseko/preprocess10.stp: New test. * parseko/preprocess11.stp: New test. * parseko/preprocess12.stp: New test. --- parse.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'parse.h') diff --git a/parse.h b/parse.h index c6a778ca..b160b4f9 100644 --- a/parse.h +++ b/parse.h @@ -1,5 +1,6 @@ // -*- C++ -*- // Copyright (C) 2005 Red Hat Inc. +// Copyright (C) 2007 Bull S.A.S // // This file is part of systemtap, and is free software. You can // redistribute it and/or modify it under the terms of the GNU General @@ -68,7 +69,7 @@ struct systemtap_session; class lexer { public: - token* scan (); + token* scan (bool expand_args=true); lexer (std::istream&, const std::string&, systemtap_session&); private: @@ -128,7 +129,7 @@ private: // preprocessing subordinate std::vector enqueued_pp; - const token* scan_pp (); + const token* scan_pp (bool expand_args=true); // scanning state const token* last (); -- cgit