Re: [sv-ec] suggested question for Synopsys and especially Cadence


Subject: Re: [sv-ec] suggested question for Synopsys and especially Cadence
From: Paul B. Graham (pgraham@cadence.com)
Date: Sat Dec 07 2002 - 11:02:09 PST


> Is it easier/possible to limit the recognition of a "keyword" if
> it is in a subscope delimited by (say) brackets?

Sure, vhdl does it with the 'range attribute. The vhdl syntax could be:

    attribute_name :=
        id ' id
        id ' KW_RANGE

and you could do something similar for your example. Note the the lexer
doesn't do anything different, just the parser accepts keywords in some
places that identifiers are also allowed.

Paul



This archive was generated by hypermail 2b28 : Sat Dec 07 2002 - 11:03:54 PST