added AWk:getRunContext()

This commit is contained in:
hyung-hwan 2010-07-09 05:28:22 +00:00
parent 99c72b1755
commit b758ed8ab3

View File

@ -1,5 +1,5 @@
/* /*
* $Id: Awk.hpp 328 2010-07-08 06:58:44Z hyunghwan.chung $ * $Id: Awk.hpp 329 2010-07-08 11:28:22Z hyunghwan.chung $
* *
Copyright 2006-2009 Chung, Hyung-Hwan. Copyright 2006-2009 Chung, Hyung-Hwan.
This file is part of QSE. This file is part of QSE.
@ -808,6 +808,30 @@ public:
Source& out ///< deparsing target Source& out ///< deparsing target
); );
///
/// The getRunContext() funciton returns the execution context
/// returned by the parse() function. The returned context
/// is valid if parse() has been called. You may call this
/// function to get the context if you forgot to store it
/// in a call to parse().
///
const Awk::Run* getRunContext () const
{
return &runctx;
}
///
/// The getRunContext() funciton returns the execution context
/// returned by the parse() function. The returned context
/// is valid if parse() has been called. You may call this
/// function to get the context if you forgot to store it
/// in a call to parse().
///
Awk::Run* getRunContext ()
{
return &runctx;
}
/// ///
/// The loop() function executes the BEGIN block, pattern-action blocks, /// The loop() function executes the BEGIN block, pattern-action blocks,
/// and the END block. The return value is stored into @a ret. /// and the END block. The return value is stored into @a ret.