- if (next->type != NODE_EXPRESSION) {
- fprintf(stderr, "[error] %s: Expecting expression.\n", __func__);
- return NULL;
- }
- if (next->u.expression.type != AST_EXP_IDENTIFIER) {
- fprintf(stderr, "[error] %s: Expecting identifier.\n", __func__);
- return NULL;
- }
- if (next->u.expression.pre_op != AST_LINK_UNKNOWN) {
- fprintf(stderr, "[error] %s: dotted and dereferenced identifiers not supported after identifier\n", __func__);
+ name++; /* Skip . */
+ if (!strlen(name)) {
+ fprintf(stderr, "[error] %s: Expecting a context name, e.g. \'$ctx.name\'.\n", __func__);