nixd
Loading...
Searching...
No Matches
libnixf
include
nixf
Parse
include/nixf/Parse/Parser.h
Go to the documentation of this file.
1
/// \file
2
/// \brief Parser interface.
3
///
4
/// libnixf parser. This is a recursive descent parser, focusing on error
5
/// recovery.
6
#pragma once
7
8
#include <memory>
9
#include <string_view>
10
#include <vector>
11
12
namespace
nixf
{
13
14
class
Node;
15
class
Diagnostic
;
16
17
/// \brief Parse a string.
18
/// \param Src The string to parse.
19
/// \param Diags Diagnostics will be appended to this vector.
20
std::shared_ptr<Node>
parse
(std::string_view Src,
21
std::vector<Diagnostic> &Diags);
22
23
}
// namespace nixf
Diagnostic
Definition
Diagnostic.cpp.py:1
nixf
Definition
Diagnostic.h:19
nixf::parse
std::shared_ptr< Node > parse(std::string_view Src, std::vector< Diagnostic > &Diags)
Parse a string.
Definition
ParseSupport.cpp:37
Generated by
1.12.0