- lexer_pushtok(TOK_CLCLOSE); //Push "Close Directory" token
- if (DL_LEN() == -1) //If we just popped root, we're done
- return 0;
- if (!chdir("..")) //Move up a directory and start over
- goto parse;
+ if (DL_LEN() == -1) //If we just popped root,
+ goto done; //we're done
+ lexer_pushtok(CLCLOSE, 0); //Else push "Close Directory" token,
+ ntok++;
+ if (!chdir("..")) //move up a directory and
+ goto scan; //start over