Permalink
Browse files

Added q as command for exit from parser

  • Loading branch information...
luk0104 committed Aug 6, 2011
1 parent 61dc32b commit eadbc1af2006fe7dddd8107a356bc7274d2506fe
Showing with 2 additions and 0 deletions.
  1. +2 −0 plis.c
View
2 plis.c
@@ -196,6 +196,8 @@ int main(void)
if (strlen(code) == 0) {
continue;
}
+ if (!strncmp (code, "q", 1))
+ break;
add_history(code);
Node *ast = plis_parse(code);
if (ast) {

0 comments on commit eadbc1a

Please sign in to comment.