149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
-
+
-
|
}
// Standalone (ie not part of a grammar construct that expects them such as a decl), unresolved identifiers
// end up here.
bool Parser::parsePrefix( StringId strid, uint32_t )
{
auto tok = m_resolver->consume();
DiagnosticsManager::GetInstance().emitSyntaxErrorMessage( tok->second,
pushValue( ToValue( strid ).setLocationId( tok->second ) );
"undefined identifier.", 0 );
return true;
}
// Infix identifiers: if the left value is a type, then we have a decl.
optional< uint32_t > Parser::getPrecedence( const Term&, StringId strid )
{
const auto& leftVal = peekLastValue();
|