Re: Writing a Parser
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: Writing a Parser




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Writing a Parser  
Cesar A. K. Grossmann


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-01-04 12:49 PM

Jens.Toerring@physik.fu-berlin.de wrote:
>
> I am still a bit confused about what you want to do so let me
> summarize how I understand you:

I received you PVT message, but the response I send was refused. The
SMTP refuses messages from the SMTP server from yahoo.com.br...

From what I can see, you understand it right:

> IDENTIFIER '=' rhs ';'
> rhs := ( NUMBER STRING STRING ) | ( STRING '{' item [ , item ] * 
'}' )
> item := NUMBER IDENTIFIER

That summarizes it pretty well.

> a string, do you perhaps meant
> rhs := ( NUMBER STRING STRING ) | ( NUMBER '{' item [ , item ] * 
'}' )
> instead?)

My error. The example I provided is wrong (I made it from memory, I
haven't Internet at home, and I'm working in this project at home). My
fault. Sorry about that.

> On this I don't dare to comment, not having seen the real code you
> had trouble with. But basically identifying STRING type tokens by
> having them enclosed in double quotes should work.

How you write rules for (f)lex to identify correctly identifiers from
strings?

I had:

[[:alpha:]][[:alnum:]_]*	return IDENTIFIER;
\"[^\"]+\"			return STRING;

It didn't worked (but the error can be in the bison rules, as the error
is a "parse error").

[]s
--
.O.  Cesar A. K. Grossmann ICQ UIN: 35659423
..O  http://www.LinuxByGrossmann.cjb.net/
OOO  Quidquid Latine dictum sit, altum viditur





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:25 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register