Text-scope stack

Top  Previous  Next

Scripts > Class elements and c++ instructions > Parser class methods > Plugin methods > Text-scope stack

 

By means of the scope stack you can record, which part of the text just is processed. Parts of text can be the introduction, a heading, a subparagraph etc. or the declaration part or the corresponding definition part of a class in a programming language.

Dynamic scanners, which are presented on the next page, can "remember" tokens, which belong to a certain scope.

 

Methods of the text-scope stack

 

 

void PushScope(const str& xs)

 

By this method the name of a part of text is put on the stack.

 

 

void PopScope()

 

By PopScope the uppermost value of the stack is removed.

 

 

void ClearScopes()

 

Removes all values from the stack

 

 

str ScopeStr() const

 

ScopeStr returns the name of the part of text, which is stored on the top of the stack.

 

 

 

 



This page belongs to the TextTransformer Documentation

Home  Content  German