added token_data and token_code replacements for global Token information; added debug message for missing replacements
This commit is contained in:
1 parent
62fd96ad9b
commit
4ec500a2fb
4 files changed
+27
-14
No files matched your search
+3
-2
@@ -23,7 +23,7 @@ static TokenRef buildToken(int typeindex)
|
||||
TokenRef token;
|
||||
switch (typeindex)
|
||||
{
|
||||
//%buildToken%
|
||||
{%buildToken%}
|
||||
}
|
||||
return token;
|
||||
}
|
||||
@@ -149,8 +149,9 @@ refptr<Node> Node::operator[](const std::string & index)
|
||||
: NULL;
|
||||
}
|
||||
|
||||
void Token::process()
|
||||
void Token::process(MatchesRef matches)
|
||||
{
|
||||
{%token_code%}
|
||||
}
|
||||
|
||||
Matches::Matches(pcre * re, const char * data, int * ovector, int ovec_size)
|
||||
|
||||
+4
-1
@@ -153,12 +153,15 @@ typedef refptr<Node> NodeRef;
|
||||
class Token : public Node
|
||||
{
|
||||
public:
|
||||
virtual void process();
|
||||
virtual void process(MatchesRef matches);
|
||||
|
||||
protected:
|
||||
{%token_data%}
|
||||
};
|
||||
typedef refptr<Token> TokenRef;
|
||||
|
||||
{%token_classes%}
|
||||
|
||||
#ifdef I_NAMESPACE
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user