summary refs log tree commit diff
path: root/bin/order.y
diff options
context:
space:
mode:
Diffstat (limited to 'bin/order.y')
-rw-r--r--bin/order.y7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/order.y b/bin/order.y
index 0fb882d9..b798e634 100644
--- a/bin/order.y
+++ b/bin/order.y
@@ -183,4 +183,11 @@ int main(int argc, char *argv[]) {
 		input = argv[i];
 		yyparse();
 	}
+	if (argc > 1) return EX_OK;
+	size_t cap = 0;
+	char *buf = NULL;
+	while (0 < getline(&buf, &cap, stdin)) {
+		input = buf;
+		yyparse();
+	}
 }