Bitcoin ABC 0.32.12
P2P Digital Currency
parsing.h
Go to the documentation of this file.
1// Copyright (c) 2018 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
20bool Const(const std::string &str, Span<const char> &sp);
21
29bool Func(const std::string &str, Span<const char> &sp);
30
41} // namespace script
42
43#endif // BITCOIN_SCRIPT_PARSING_H
A Span is an object that can refer to a contiguous sequence of objects.
Definition: span.h:94
bool Const(const std::string &str, Span< const char > &sp)
Parse a constant.
Definition: parsing.cpp:14
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:23