Bitcoin Core 31.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>
9#include <string>
10
11namespace script {
12
18bool Const(const std::string& str, std::span<const char>& sp, bool skip = true);
19
26bool Func(const std::string& str, std::span<const char>& sp);
27
35std::span<const char> Expr(std::span<const char>& sp);
36
37} // namespace script
38
39#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:31
bool Func(const std::string &str, std::span< const char > &sp)
Parse a function call.
Definition: parsing.cpp:22
bool Const(const std::string &str, std::span< const char > &sp, bool skip)
Parse a constant.
Definition: parsing.cpp:13