lexing nested parenthesis

Carl Banks imbosol at vt.edu
Tue Jul 30 16:16:10 EDT 2002


Carl Banks wrote:
> Fran?ois Pinard wrote:
>> [Kristian Ovaska]
>> 
>>> The language category you're dealing with is called context-free grammars.
>>> It's more expressive than regular languages, and it can parse any
>>> programming language.
>> 
>> Any? :-)
>> 
>> I would not go that far.  There are strange beasts out there.
> 
> Like, for example, C.  Expressions can parse differently depending on
> whether a symbol has been typedefed or not.

Oops.  I meant declarations and statements can parse differently, not
expressions.


-- 
CARL BANKS
http://www.aerojockey.com



More information about the Python-list mailing list