Mihai Badea | 9 Oct 11:18
Favicon

LexerInput

Hi,

I am studying a way to parse text data directly from memory (without using 
aditional temporary buffers). My questions are:
For C Flex:
What is the procedure to make sure that after using scan_buffer() as input 
method for Flex, the directly-scanned memory buffer remains intact (the 
content is restored)?
For Flex++:
Is there a way to addapt LexerInput() in such a way the scanning is done 
directly from the memory instead of reading into an additional buffer? If 
so, I have the same question regarding to the preservation of the buffer.
Any information or link to something would be helpful.

Thanks and best regards,
Mihai
Mihai Badea | 24 Nov 10:14
Favicon

Re: LexerInput

Mihai Badea wrote:
> Hi,
> 
> I am studying a way to parse text data directly from memory (without using 
> aditional temporary buffers). My questions are:
> For C Flex:
> What is the procedure to make sure that after using scan_buffer() as input 
> method for Flex, the directly-scanned memory buffer remains intact (the 
> content is restored)?
> For Flex++:
> Is there a way to addapt LexerInput() in such a way the scanning is done 
> directly from the memory instead of reading into an additional buffer? If 
> so, I have the same question regarding to the preservation of the buffer.
> Any information or link to something would be helpful.
> 
> Thanks and best regards,
> Mihai

Well seems to me that either my question was not well stated, or maybe 
it was not a problem of any interest or I don't know...
Please someone reply to me (even in pvt) and say anything (stupid 
question etc.).
Mihai Badea | 27 Nov 14:47
Favicon

Re: LexerInput

Mihai Badea wrote:
> Mihai Badea wrote:
>> Hi,
>>
>> I am studying a way to parse text data directly from memory (without 
>> using aditional temporary buffers). My questions are:
>> For C Flex:
>> What is the procedure to make sure that after using scan_buffer() as 
>> input method for Flex, the directly-scanned memory buffer remains 
>> intact (the content is restored)?
>> For Flex++:
>> Is there a way to addapt LexerInput() in such a way the scanning is 
>> done directly from the memory instead of reading into an additional 
>> buffer? If so, I have the same question regarding to the preservation 
>> of the buffer.
>> Any information or link to something would be helpful.
>>
>> Thanks and best regards,
>> Mihai
> 
> Well seems to me that either my question was not well stated, or maybe 
> it was not a problem of any interest or I don't know...
> Please someone reply to me (even in pvt) and say anything (stupid 
> question etc.).

Hi Martin,

Thanks for your answer:

 >   Did you try it, and it corrupted your buffer?  Since flex can read
(Continue reading)


Gmane