Bitcoin Core
31.1.0
P2P Digital Currency
Toggle main menu visibility
Loading...
Searching...
No Matches
src
script
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
12
namespace
script
{
13
19
bool
Const
(
const
std::string& str, std::span<const char>& sp,
bool
skip =
true
);
20
27
bool
Func
(
const
std::string& str, std::span<const char>& sp);
28
36
std::span<const char>
Expr
(std::span<const char>& sp);
37
38
}
// namespace script
39
40
#endif
// BITCOIN_SCRIPT_PARSING_H
script
Definition
parsing.cpp:13
script::Expr
std::span< const char > Expr(std::span< const char > &sp)
Extract the expression that sp begins with.
Definition
parsing.cpp:33
script::Func
bool Func(const std::string &str, std::span< const char > &sp)
Parse a function call.
Definition
parsing.cpp:24
script::Const
bool Const(const std::string &str, std::span< const char > &sp, bool skip)
Parse a constant.
Definition
parsing.cpp:15
span.h
Generated on
for Bitcoin Core by
1.17.0