Bitcoin Core 29.99.0
P2P Digital Currency
parsing.h
Go to the documentation of this file.
1// Copyright (c) 2018-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_SCRIPT_PARSING_H
6#define BITCOIN_SCRIPT_PARSING_H
7
8#include <span.h>
9
10#include <string>
11
12namespace script {
13
19bool Const(const std::string& str, std::span<const char>& sp);
20
27bool Func(const std::string& str, std::span<const char>& sp);
28
36std::span<const char> Expr(std::span<const char>& sp);
37
38} // namespace script
39
40#endif // BITCOIN_SCRIPT_PARSING_H
std::span< const char > Expr(std::span< const char > &sp)
Extract the expression that sp begins with.
Definition: parsing.cpp:33
bool Const(const std::string &str, std::span< const char > &sp)
Parse a constant.
Definition: parsing.cpp:15
bool Func(const std::string &str, std::span< const char > &sp)
Parse a function call.
Definition: parsing.cpp:24