Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added q as command for exit from parser

  • Loading branch information...
commit eadbc1af2006fe7dddd8107a356bc7274d2506fe 1 parent 61dc32b
@luk0104 luk0104 authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.