MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / parse_oterm

Method parse_oterm

erpcgen/src/cpptemplate/cpptempl.cpp:1477–1494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1475}
1476
1477data_ptr ExprParser::parse_oterm()
1478{
1479 data_ptr ldata = parse_bterm();
1480
1481 while (m_tok->get_type() == token_type_t::OR_TOKEN)
1482 {
1483 m_tok.match(token_type_t::OR_TOKEN);
1484
1485 data_ptr rdata = parse_bterm();
1486
1487 if (ldata->empty())
1488 {
1489 ldata = rdata;
1490 }
1491 }
1492
1493 return ldata;
1494}
1495
1496data_ptr ExprParser::parse_expr()
1497{

Callers

nothing calls this directly

Calls 3

get_typeMethod · 0.80
matchMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected