Disable labels in Julia

This commit is contained in:
Alex Beregszaszi 2017-05-01 17:40:37 +01:00
parent 0582fcb93b
commit d61f9c4d4e

View File

@ -84,6 +84,7 @@ assembly::Statement Parser::parseStatement()
}
case Token::Return: // opcode
case Token::Byte: // opcode
case Token::Address: // opcode
default:
break;
}
@ -119,6 +120,8 @@ assembly::Statement Parser::parseStatement()
else
{
// label
if (m_julia)
fatalParserError("Labels are not supported.");
Label label = createWithLocation<Label>(identifier.location);
label.name = identifier.name;
return label;