KiCad PCB EDA Suite
|
#include <sexpr_parser.h>
Public Member Functions | |
PARSER () | |
~PARSER () | |
std::unique_ptr< SEXPR > | Parse (const std::string &aString) |
std::unique_ptr< SEXPR > | ParseFromFile (const std::string &aFilename) |
Static Public Member Functions | |
static std::string | GetFileContents (const std::string &aFilename) |
Private Member Functions | |
std::unique_ptr< SEXPR > | parseString (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" |
Definition at line 31 of file sexpr_parser.h.
SEXPR::PARSER::PARSER | ( | ) |
Definition at line 37 of file sexpr_parser.cpp.
SEXPR::PARSER::~PARSER | ( | ) |
Definition at line 41 of file sexpr_parser.cpp.
|
static |
Definition at line 59 of file sexpr_parser.cpp.
References From_UTF8().
Referenced by ParseFromFile().
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().
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().
|
private |
Definition at line 81 of file sexpr_parser.cpp.
References m_lineNumber, parseString(), res, and whitespaceCharacters.
Referenced by Parse(), ParseFromFile(), and parseString().
|
private |
Definition at line 44 of file sexpr_parser.h.
Referenced by parseString().
|
staticprivate |
Definition at line 43 of file sexpr_parser.h.
Referenced by parseString().