Start work on type checker (uh oh)

This commit is contained in:
2026-02-24 21:01:30 +11:00
parent 0613fcd957
commit 48206c2f50
10 changed files with 1260 additions and 7 deletions

View File

@@ -3,6 +3,7 @@
#include "../include/estr.h"
#include "../include/ansii.h"
#include <groundvm.h>
SolsTokenPrecedence getPrecedence(SolsToken *token) {
switch (token->type) {
@@ -139,6 +140,10 @@ static inline ResultType(Nothing, charptr) parseIdentifier(SolsParser* parser) {
return Error(Nothing, charptr, err.str);
}
node.as.success.line = peek.as.success.line;
node.as.success.accessArg = (GroundArg) {
.type = VALREF,
.value.refName = peek.as.success.as.idName
};
addChildToSolsNode(parser->currentParent, node.as.success);
return Success(Nothing, charptr, {});
}