Nix 2.29.1
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::Parser Struct Referenceabstract
Inheritance diagram for nix::Parser:
nix::ParseQuoted nix::ParseUnquoted

Public Member Functions

virtual void operator() (std::shared_ptr< Parser > &state, Strings &r)=0
 Parse the next character(s)
 
 Parser (std::string_view s)
 

Public Attributes

std::string_view remaining
 

Detailed Description

Basically this is typedef std::optional<Parser> Parser(std::string_view s, Strings & r);

Except we can't recursively reference the Parser typedef, so we have to write a class.

Member Function Documentation

◆ operator()()

virtual void nix::Parser::operator() ( std::shared_ptr< Parser > & state,
Strings & r )
pure virtual

Parse the next character(s)

Implemented in nix::ParseQuoted, and nix::ParseUnquoted.


The documentation for this struct was generated from the following file: