Maybe some more here: In the R.pod it further says: "The virtual input stream is a series of input strings. An input string is a substring of the physical input stream. By default the virtual input stream consists of exactly one input string, one which begins at location 0 in the physical input stream and whose length is the length of the physical input stream."
This together with below and the description of resume() makes me think that when I call resume with offsets into the physical input stream (I believe that is the original input that is being parsed), then it creates a new input stream to be appended to the virtual input stream. On Monday, February 9, 2015 at 7:57:47 PM UTC-6, Thomas Weigert wrote: > > Thank you for this tip. Indeed, this was an assumption that I was making. > I got the idea from the R.pod: > > "The resume() method uses a new input string to scan the physical input > stream that was specified to the read() method. resume()'s input string > may be specified explicitly or implicitly. By default, the new input string > runs from the current location to the end of the physical input stream." > > As one cannot give an input string parameter to resume, I assumed that if > it is called, it works of the original input stream. > > I saw some hints in the manual that it is possible to change the physical > input stream that Marpa is looking at. If you have some pointers to where I > can find that described in the docu, that would be great. Or if there is a > documentation on how I can access the "bowels of Marpa" that would be > lovely also. > > Thanks, Th. > > On Monday, February 9, 2015 at 7:40:38 PM UTC-6, Jeffrey Kegler wrote: >> >> A quick response. [ I'm having Internet connectivity problems. ] The >> input string passed to read is copied into the bowels of Marpa in a >> digested form. On my first quick reading, it's looking like you are >> relying on changes to the original string being seen by Marpa. This does >> not happen. >> >> >> -- You received this message because you are subscribed to the Google Groups "marpa parser" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
