KiCad PCB EDA Suite
No Matches
SEXPR::PARSER Class Reference

#include <sexpr_parser.h>

Public Member Functions

std::unique_ptr< SEXPRParse (const std::string &aString)
std::unique_ptr< SEXPRParseFromFile (const std::string &aFilename)

Static Public Member Functions

static std::string GetFileContents (const std::string &aFilename)

Private Member Functions

std::unique_ptr< SEXPRparseString (const std::string &aString, std::string::const_iterator &it)

Private Attributes

int m_lineNumber

Static Private Attributes

static const std::string whitespaceCharacters = " \t\n\r\b\f\v"

Detailed Description

Definition at line 31 of file sexpr_parser.h.

Constructor & Destructor Documentation



Definition at line 37 of file sexpr_parser.cpp.



Definition at line 41 of file sexpr_parser.cpp.

Member Function Documentation

◆ GetFileContents()

std::string SEXPR::PARSER::GetFileContents ( const std::string &  aFilename)

Definition at line 59 of file sexpr_parser.cpp.

References From_UTF8().

Referenced by ParseFromFile().

◆ Parse()

std::unique_ptr< SEXPR > SEXPR::PARSER::Parse ( const std::string &  aString)

Definition at line 45 of file sexpr_parser.cpp.

References parseString().

Referenced by TEST_SEXPR_PARSER_FIXTURE::Parse(), and QA_SEXPR_PARSER::Parse().

◆ ParseFromFile()

std::unique_ptr< SEXPR > SEXPR::PARSER::ParseFromFile ( const std::string &  aFilename)

Definition at line 51 of file sexpr_parser.cpp.

References GetFileContents(), and parseString().

Referenced by SCH::IFACE::SaveFileAs().

◆ parseString()

std::unique_ptr< SEXPR > SEXPR::PARSER::parseString ( const std::string &  aString,
std::string::const_iterator &  it 

Definition at line 81 of file sexpr_parser.cpp.

References m_lineNumber, parseString(), res, and whitespaceCharacters.

Referenced by Parse(), ParseFromFile(), and parseString().

Member Data Documentation

◆ m_lineNumber

int SEXPR::PARSER::m_lineNumber

Definition at line 44 of file sexpr_parser.h.

Referenced by parseString().

◆ whitespaceCharacters

const std::string SEXPR::PARSER::whitespaceCharacters = " \t\n\r\b\f\v"

Definition at line 43 of file sexpr_parser.h.

Referenced by parseString().

The documentation for this class was generated from the following files: