Spicy
Public Attributes | List of all members
spicy::rt::Configuration Struct Reference

#include <configuration.h>

Public Attributes

std::optional< std::function< void()> > hook_accept_input
 
std::optional< std::function< void(const std::string &)> > hook_decline_input
 

Detailed Description

Configuration parameters for the Spicy runtime system.

Member Data Documentation

◆ hook_accept_input

std::optional<std::function<void()> > spicy::rt::Configuration::hook_accept_input

Optional callback to execute when a Spicy parser calls spicy::accept_input().

◆ hook_decline_input

std::optional<std::function<void(const std::string&)> > spicy::rt::Configuration::hook_decline_input

Optional callback to execute when a Spicy parser calls spicy::decline_input(). This string argument is the reason provided by the caller.


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