MCPcopy Create free account
hub / github.com/bewuethr/stroustrup-ppp / statement

Function statement

code_snippets/Chapter07/chapter.7.8.2.cpp:358–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356//------------------------------------------------------------------------------
357
358double statement()
359{
360 Token t = ts.get();
361 switch (t.kind) {
362 case let:
363 return declaration();
364 default:
365 ts.putback(t);
366 return expression();
367 }
368}
369
370//------------------------------------------------------------------------------
371

Callers 1

calculateFunction · 0.70

Calls 4

declarationFunction · 0.70
expressionFunction · 0.70
getMethod · 0.45
putbackMethod · 0.45

Tested by

no test coverage detected