| 13266 | Parser( std::string const & expr ) : expr( expr ), pos( 0 ) {} |
| 13267 | |
| 13268 | std::shared_ptr<Node> parse() |
| 13269 | { |
| 13270 | auto result = parse_or(); |
| 13271 | if ( pos != expr.length() ) |
| 13272 | { |
| 13273 | throw std::runtime_error( "Unexpected characters at end of expression" ); |
| 13274 | } |
| 13275 | return result; |
| 13276 | } |
| 13277 | |
| 13278 | private: |
| 13279 | std::string expr; |
no outgoing calls
no test coverage detected