I am using the Console as an input source. I looked for a way qi would parse a line and then it'd wait for the next line and continue parsing from that point. for example take the following grammar
start = MultiLine | Line;
Multiline = "{" *(Line) "}";
Line = *(char_("A-Za-z0-9"));
As an input
{ AAAA
Bbbb
lllll
lalala
}
Taking the whole thing from a file is easy. But what should i do if i need to have the input to come from the console instead? That i want to have it process what its given already and wait for the rest of the lines.