5#ifndef BITCOIN_SCRIPT_PARSING_H
6#define BITCOIN_SCRIPT_PARSING_H
19bool Const(
const std::string& str, std::span<const char>&
sp,
bool skip =
true);
27bool Func(
const std::string& str, std::span<const char>&
sp);
36std::span<const char>
Expr(std::span<const char>&
sp);
std::span< const char > Expr(std::span< const char > &sp)
Extract the expression that sp begins with.
bool Func(const std::string &str, std::span< const char > &sp)
Parse a function call.
bool Const(const std::string &str, std::span< const char > &sp, bool skip)
Parse a constant.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.