help-bison
[Top][All Lists]
Advanced

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

Look ahead in Lexer causing error


From: Gurunathan_Murthy
Subject: Look ahead in Lexer causing error
Date: Fri, 28 Feb 2003 16:43:24 +0530

Hi,

I encountered a few problem while pattern mathcing in lexer:

A few declarations such as

Declare         [D][E][C][L]
String          \"[^"\n]*\"
DQString                String+     ---  Means many strings, required only to
                                   determine quoted strings.

were used and to match a pattern of "abc""def""abc" [A string that
allows double quotes to be used as a char within a string only when
prefixed with another double quote]


Rule:
{Declare}/{DQString}
{
        return DQSTRING;
}

Error Encountered :flex svt.l
"svt.l", line 21: EOF encountered inside an action
"svt.l", line 21: unrecognized rule
"svt.l", line 21: fatal parse error

where 21 is last line of the .l file

PLs help me out in solving this.

Thanks,
G S Murthy
**************************************************************************
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.

**************************************************************************


reply via email to

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