39 void Foam::token::parseError(
const char* expected)
const
42 <<
"Parse error, expected a " << expected
57 const word& compoundType,
61 IstreamConstructorTable::iterator cstrIter =
62 IstreamConstructorTablePtr_->find(compoundType);
64 if (cstrIter == IstreamConstructorTablePtr_->end())
66 FatalErrorIn(
"token::compound::New(const word&, Istream&)")
67 <<
"Unknown compound type " << compoundType <<
nl <<
nl
68 <<
"Valid compound types:" <<
endl
69 << IstreamConstructorTablePtr_->sortedToc()
83 IstreamConstructorTablePtr_
84 && IstreamConstructorTablePtr_->found(name)
91 if (type_ == COMPOUND)
93 if (compoundTokenPtr_->empty())
96 <<
"compound has already been transfered from token\n "
101 compoundTokenPtr_->empty() =
true;
104 return *compoundTokenPtr_;
108 parseError(
"compound");
109 return *compoundTokenPtr_;