MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / ParseCommaExpression

Method ParseCommaExpression

ngstd/evalfunc.cpp:528–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526
527
528 EvalFunction::ResultType EvalFunction :: ParseCommaExpression ()
529 {
530 ResultType result = ParseExpression ();
531 if (GetToken() == COMMA)
532 {
533 ReadNext(); // ','
534 result = ParseCommaExpression ();
535 result.vecdim++;
536 AddOperation (COMMA);
537 }
538 return result;
539
540 /*
541 while (1)
542 {
543 switch (GetToken())
544 {
545 case COMMA:
546 {
547 ReadNext();
548 ParseExpression ();
549 AddOperation (COMMA);
550 break;
551 }
552 default:
553 return ResultType();
554 }
555 }
556 */
557 }
558
559
560

Callers

nothing calls this directly

Calls 2

GetTokenFunction · 0.85
AddOperationFunction · 0.85

Tested by

no test coverage detected