ROSE  0.11.145.0
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 <util/Sawyer/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. More...
 

Static Public Member Functions

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

Member Function Documentation

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

Insert function.

Also removes any previously declared function with the same name.

virtual std::string Sawyer::Document::Markup::Grammar::operator() ( const std::string &  s) const
virtual

Evaluate an entire string.

static std::string Sawyer::Document::Markup::Grammar::unescape ( const std::string &  s)
static

Expand escape sequences "@@", "@{" and "@}".

static std::string Sawyer::Document::Markup::Grammar::escape ( const std::string &  s)
static

Escape all special "@", "{", and "}".


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