Type Tagging #1
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "venko/wraith-lang:identifiers"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Implements identifier lookup, and type tagging of Identifier nodes in the AST. Does not perform type checking or identifier validation.
Areas of future work:
IdNode
trees.@ -0,0 +280,4 @@
// This has the notable side-effect that this function will return NULL if you attempt to look
// up a struct's internals starting from the node representing the struct itself. This is
// because an IdNode corresponds to the location *where an identifier is first declared.* Thus,
// an identifier has no knowledge of identifiers declared "inside" of it.
Use /* */ for comments please, // is technically not valid C99
@ -0,0 +287,4 @@
uint32_t idxLimit;
// If the current node forms an ordered scope then we want to prevent ourselves from looking
// up identifiers declared after the scope we have just come from.
Same here
@ -0,0 +42,4 @@
IdNode* LookdownId(IdNode *root, NodeType targetType, char *targetName);
IdNode* LookupId(IdNode *node, IdNode *prev, char* target);
//IdStatus CheckIds(Node *root);
Unused code