ROSE  0.11.96.11
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 <DocumentMarkup.h>

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

Public Member Functions

Grammarwith (const Function::Ptr &)
 Insert function. More...
 
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 "}".
 

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: