/openbmc/bmcweb/redfish-core/include/ |
H A D | filter_expr_printer.hpp | f88b21706f70ba70951c2876a7b41eb0ccaed361 Fri Apr 15 15:55:05 CDT 2022 Ed Tanous <edtanous@google.com> Filter Expression parser
This commit implements a parser for $filter expressions, per the redfish specification and odata specification. This is intended to be used to support $filter query for collections.
For parsing libraries, this commit chooses boost spirit x3. It's chosen because it doesn't require a new external dependency, and is done entirely in the compiler, using C++ syntax. While the syntax is still somewhat difficult to read, there's a slew of unit tests included to make sure that at least the common things we expect to work will parse correctly.
Tested: Unit tests pass (good coverage). Code not yet used.
Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I1b0ab615bc49064acab4dad47f0a8aa499557bfc
|
H A D | filter_expr_parser_ast.hpp | f88b21706f70ba70951c2876a7b41eb0ccaed361 Fri Apr 15 15:55:05 CDT 2022 Ed Tanous <edtanous@google.com> Filter Expression parser
This commit implements a parser for $filter expressions, per the redfish specification and odata specification. This is intended to be used to support $filter query for collections.
For parsing libraries, this commit chooses boost spirit x3. It's chosen because it doesn't require a new external dependency, and is done entirely in the compiler, using C++ syntax. While the syntax is still somewhat difficult to read, there's a slew of unit tests included to make sure that at least the common things we expect to work will parse correctly.
Tested: Unit tests pass (good coverage). Code not yet used.
Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I1b0ab615bc49064acab4dad47f0a8aa499557bfc
|
H A D | filter_expr_parser_grammar.hpp | f88b21706f70ba70951c2876a7b41eb0ccaed361 Fri Apr 15 15:55:05 CDT 2022 Ed Tanous <edtanous@google.com> Filter Expression parser
This commit implements a parser for $filter expressions, per the redfish specification and odata specification. This is intended to be used to support $filter query for collections.
For parsing libraries, this commit chooses boost spirit x3. It's chosen because it doesn't require a new external dependency, and is done entirely in the compiler, using C++ syntax. While the syntax is still somewhat difficult to read, there's a slew of unit tests included to make sure that at least the common things we expect to work will parse correctly.
Tested: Unit tests pass (good coverage). Code not yet used.
Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I1b0ab615bc49064acab4dad47f0a8aa499557bfc
|
/openbmc/bmcweb/redfish-core/src/ |
H A D | filter_expr_printer.cpp | f88b21706f70ba70951c2876a7b41eb0ccaed361 Fri Apr 15 15:55:05 CDT 2022 Ed Tanous <edtanous@google.com> Filter Expression parser
This commit implements a parser for $filter expressions, per the redfish specification and odata specification. This is intended to be used to support $filter query for collections.
For parsing libraries, this commit chooses boost spirit x3. It's chosen because it doesn't require a new external dependency, and is done entirely in the compiler, using C++ syntax. While the syntax is still somewhat difficult to read, there's a slew of unit tests included to make sure that at least the common things we expect to work will parse correctly.
Tested: Unit tests pass (good coverage). Code not yet used.
Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I1b0ab615bc49064acab4dad47f0a8aa499557bfc
|
/openbmc/bmcweb/test/redfish-core/include/ |
H A D | filter_expr_parser_test.cpp | f88b21706f70ba70951c2876a7b41eb0ccaed361 Fri Apr 15 15:55:05 CDT 2022 Ed Tanous <edtanous@google.com> Filter Expression parser
This commit implements a parser for $filter expressions, per the redfish specification and odata specification. This is intended to be used to support $filter query for collections.
For parsing libraries, this commit chooses boost spirit x3. It's chosen because it doesn't require a new external dependency, and is done entirely in the compiler, using C++ syntax. While the syntax is still somewhat difficult to read, there's a slew of unit tests included to make sure that at least the common things we expect to work will parse correctly.
Tested: Unit tests pass (good coverage). Code not yet used.
Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I1b0ab615bc49064acab4dad47f0a8aa499557bfc
|
/openbmc/bmcweb/ |
H A D | meson.build | diff f88b21706f70ba70951c2876a7b41eb0ccaed361 Fri Apr 15 15:55:05 CDT 2022 Ed Tanous <edtanous@google.com> Filter Expression parser
This commit implements a parser for $filter expressions, per the redfish specification and odata specification. This is intended to be used to support $filter query for collections.
For parsing libraries, this commit chooses boost spirit x3. It's chosen because it doesn't require a new external dependency, and is done entirely in the compiler, using C++ syntax. While the syntax is still somewhat difficult to read, there's a slew of unit tests included to make sure that at least the common things we expect to work will parse correctly.
Tested: Unit tests pass (good coverage). Code not yet used.
Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I1b0ab615bc49064acab4dad47f0a8aa499557bfc
|