Bitcoin Core  28.1.0
P2P Digital Currency
parsing.h
Go to the documentation of this file.
1 // Copyright (c) 2018-2022 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, Span<const char>& sp);
20 
27 bool Func(const std::string& str, Span<const char>& sp);
28 
37 
38 } // namespace script
39 
40 #endif // BITCOIN_SCRIPT_PARSING_H
Span< const char > Expr(Span< const char > &sp)
Extract the expression that sp begins with.
Definition: parsing.cpp:33
bool Func(const std::string &str, Span< const char > &sp)
Parse a function call.
Definition: parsing.cpp:24
bool Const(const std::string &str, Span< const char > &sp)
Parse a constant.
Definition: parsing.cpp:15
A Span is an object that can refer to a contiguous sequence of objects.
Definition: solver.h:20