ROSE 0.11.145.147
Public Member Functions | Static Public Member Functions | List of all members
Sawyer::Document::Markup::Grammar Class Reference

Description

Grammar declaration.

Definition at line 403 of file DocumentMarkup.h.

#include <Sawyer/DocumentMarkup.h>

Inheritance diagram for Sawyer::Document::Markup::Grammar:
Inheritance graph
[legend]

Public Member Functions

Grammarwith (const Function::Ptr &)
 Insert function.
 
virtual std::string operator() (const std::string &s) const
 Evaluate an entire string.
 

Static Public Member Functions

static std::string unescape (const std::string &s)
 Expand escape sequences "@@", "@{" and "@}".
 
static std::string escape (const std::string &s)
 Escape all special "@", "{", and "}".
 

Constructor & Destructor Documentation

◆ ~Grammar()

virtual Sawyer::Document::Markup::Grammar::~Grammar ( )
inlinevirtual

Definition at line 409 of file DocumentMarkup.h.

Member Function Documentation

◆ with()

Grammar & Sawyer::Document::Markup::Grammar::with ( const Function::Ptr )

Insert function.

Also removes any previously declared function with the same name.


The documentation for this class was generated from the following file: