help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Restart parser (maybe lexer) at the previous state


From: Roesner, Thomas
Subject: Restart parser (maybe lexer) at the previous state
Date: Mon, 9 Jan 2006 08:41:10 +0100

Dear all,
I'd like to write a parser, that can be continued with a new input, even
if the previous input seemd to be EOF.

The background is as described below:
We have a data structure with some formating information and a 80 char
textfield. In some cases the data complete is stored in more than one
textline. I'd like to parse the first line and if the text is incomplete
the next line and so on.

In the moment I copy all possible lines of text in a char[] and start
the parser.

In all my tests the scanner (flex) and the parser seemed to be reseted
to an initial state, with the result "incomplete Syntax".

Any Ideas?

Kind Regards
Tom


reply via email to

[Prev in Thread] Current Thread [Next in Thread]