Added single automatic connection dialog + bugfixes
This commit is contained in:
1 parent
3172d7e4cf
commit
9b7ede933a
18 files changed
+253
-117
No files matched your search
@@ -50,12 +50,11 @@ bool ComdelParser::consume(TokenType tokenType) {
|
||||
do{}while(0)
|
||||
|
||||
void ComdelParser::bump() {
|
||||
if (tokens[position].type == TokenType::END_OF_FILE) {
|
||||
ATLAS_ASSERT_FAIL("Internal parser error, called bump after EOF");
|
||||
if (tokens[position].type != TokenType::END_OF_FILE) {
|
||||
++position;
|
||||
} else {
|
||||
tokens[++position];
|
||||
ATLAS_ASSERT_FAIL("Internal parser error, called bump after EOF");
|
||||
}
|
||||
|
||||
expectedTokens.clear();
|
||||
}
|
||||
|
||||
@@ -1348,7 +1347,7 @@ PResult<ValueNode> ComdelParser::parseConnectionWire() {
|
||||
bump();
|
||||
return spanner(ValueNode::ofNull());
|
||||
} else if (check(TokenType::STRING)) {
|
||||
return spanner(ValueNode::ofString(parseString()->value));
|
||||
return spanner(ValueNode::ofString(parseString()->asString()));
|
||||
} else if (check(TokenType::IDENTIFIER)) {
|
||||
return spanner(ValueNode::ofIdentifier(parseIdentifier()->value));
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user