help-bison
[Top][All Lists]
Advanced

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

Matching start and end


From: Alex Duller
Subject: Matching start and end
Date: Mon, 27 Jul 2009 16:59:07 +0100
User-agent: Thunderbird 2.0.0.21 (X11/20090327)

Hi,
I'm trying to parse the following bit of code and want to check that the yIDENTIFIER words are the same (in the following case yIDENTIFIER is TestFir). The regular expression for an yIDENTIFIER is [a-zA-Z_][a-zA-Z0-9_$]*

entity TestFir is
end entity TestFir;

The rule for parsing the above is:
yENTITY yIDENTIFIER yIS
...
yEND yENTITY yIDENTIFIER ';'

thanks,
Alex





reply via email to

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