|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
#include <simple_parser.hpp>

Public Member Functions | |
| SimpleParser (const std::string &input) | |
| file | parse () |
Private Member Functions | |
| void | skipWhitespace () |
| bool | match (const std::string &str) |
| bool | match (char c) |
| void | expect (const std::string &str) |
| void | expect (char c) |
| std::string | parseQuotedString () |
| std::string | parseIdentifier () |
| std::string | parseString () |
| version | parseVersion () |
| description | parseDescription () |
| parameter | parseParameter () |
| column | parseColumn () |
| associate | parseAssociate () |
| array | parseArray () |
| include | parseInclude () |
| data | parseData () |
Private Attributes | |
| std::string | input_ |
| size_t | pos_ |
Definition at line 29 of file simple_parser.hpp.
|
inline |
Definition at line 31 of file simple_parser.hpp.
|
inlineprivate |
Definition at line 115 of file simple_parser.hpp.
References match().

|
inlineprivate |
Definition at line 109 of file simple_parser.hpp.
References match().
Referenced by parseArray(), parseAssociate(), parseColumn(), parseData(), parseDescription(), parseInclude(), parseParameter(), and parseVersion().

|
inlineprivate |
Definition at line 100 of file simple_parser.hpp.
References input_, pos_, and skipWhitespace().

|
inlineprivate |
Definition at line 91 of file simple_parser.hpp.
References input_, pos_, and skipWhitespace().
Referenced by expect(), expect(), parse(), parseArray(), parseAssociate(), parseColumn(), parseData(), parseDescription(), parseInclude(), and parseParameter().

|
inline |
Definition at line 33 of file simple_parser.hpp.
References input_, match(), parseArray(), parseAssociate(), parseColumn(), parseData(), parseDescription(), parseInclude(), parseParameter(), parseVersion(), pos_, SDDS::file::sddsArrays_m, SDDS::file::sddsAssociates_m, SDDS::file::sddsColumns_m, SDDS::file::sddsData_m, SDDS::file::sddsDescription_m, SDDS::file::sddsIncludes_m, SDDS::file::sddsParameters_m, SDDS::file::sddsVersion_m, and skipWhitespace().
Referenced by SDDS::SDDSParser::run().

|
inlineprivate |
Definition at line 320 of file simple_parser.hpp.
References expect(), input_, match(), parseString(), pos_, and skipWhitespace().
Referenced by parse().

|
inlineprivate |
Definition at line 306 of file simple_parser.hpp.
References expect(), input_, match(), parseString(), pos_, and skipWhitespace().
Referenced by parse().

|
inlineprivate |
Definition at line 257 of file simple_parser.hpp.
References SDDS::ast::CHARACTER, SDDS::column::description_m, SDDS::ast::DOUBLE, expect(), SDDS::ast::FLOAT, input_, SDDS::ast::LONG, match(), SDDS::column::name_m, parseString(), pos_, SDDS::ast::SHORT, skipWhitespace(), SDDS::ast::STRING, SDDS::column::type_m, and SDDS::column::units_m.
Referenced by parse().

|
inlineprivate |
Definition at line 348 of file simple_parser.hpp.
References SDDS::ast::ASCII, SDDS::ast::BINARY, expect(), match(), SDDS::data::mode_m, parseString(), and skipWhitespace().
Referenced by parse().

|
inlineprivate |
Definition at line 184 of file simple_parser.hpp.
References SDDS::description::content_m, expect(), input_, match(), parseString(), pos_, skipWhitespace(), and SDDS::description::text_m.
Referenced by parse().

|
inlineprivate |
Definition at line 142 of file simple_parser.hpp.
References input_, pos_, and skipWhitespace().
Referenced by parseString().

|
inlineprivate |
Definition at line 334 of file simple_parser.hpp.
References expect(), input_, match(), parseString(), pos_, and skipWhitespace().
Referenced by parse().

|
inlineprivate |
Definition at line 208 of file simple_parser.hpp.
References SDDS::ast::CHARACTER, SDDS::parameter::description_m, SDDS::ast::DOUBLE, expect(), SDDS::ast::FLOAT, input_, SDDS::ast::LONG, match(), SDDS::parameter::name_m, parseString(), pos_, SDDS::ast::SHORT, skipWhitespace(), SDDS::ast::STRING, SDDS::parameter::type_m, and SDDS::parameter::units_m.
Referenced by parse().

|
inlineprivate |
Definition at line 121 of file simple_parser.hpp.
Referenced by parseString().
|
inlineprivate |
Definition at line 159 of file simple_parser.hpp.
References input_, parseIdentifier(), parseQuotedString(), pos_, and skipWhitespace().
Referenced by parseArray(), parseAssociate(), parseColumn(), parseData(), parseDescription(), parseInclude(), and parseParameter().

|
inlineprivate |
Definition at line 167 of file simple_parser.hpp.
References expect(), input_, SDDS::version::layoutVersion_m, pos_, and skipWhitespace().
Referenced by parse().

|
inlineprivate |
Definition at line 76 of file simple_parser.hpp.
Referenced by match(), match(), parse(), parseArray(), parseAssociate(), parseColumn(), parseData(), parseDescription(), parseIdentifier(), parseInclude(), parseParameter(), parseString(), and parseVersion().
|
private |
Definition at line 73 of file simple_parser.hpp.
Referenced by match(), match(), parse(), parseArray(), parseAssociate(), parseColumn(), parseDescription(), parseIdentifier(), parseInclude(), parseParameter(), parseQuotedString(), parseString(), parseVersion(), and skipWhitespace().
|
private |
Definition at line 74 of file simple_parser.hpp.
Referenced by match(), match(), parse(), parseArray(), parseAssociate(), parseColumn(), parseDescription(), parseIdentifier(), parseInclude(), parseParameter(), parseQuotedString(), parseString(), parseVersion(), and skipWhitespace().