Re: Parsing functions - do I need a keyword like 'def' to indicate a function?

"Hui Zhou" <zhouhui@wam.umd.edu>
17 Oct 2004 16:13:35 -0400

          From comp.compilers

Related articles
[3 earlier articles]
Re: Parsing functions - do I need a keyword like 'def' to indicate a f alexc@TheWorld.com (Alex Colvin) (2004-10-17)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f vbdis@aol.com (2004-10-17)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f cfc@shell01.TheWorld.com (Chris F Clark) (2004-10-17)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f lkrupp@pssw.NOSPAM.com.INVALID (Louis Krupp) (2004-10-17)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f lars@bearnip.com (2004-10-17)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f codeworker@free.fr (2004-10-17)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f zhouhui@wam.umd.edu (Hui Zhou) (2004-10-17)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f postmaster@paul.washington.dc.us (Paul Robinson) (2004-10-21)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f angagon@earthlink.net (Matt O'Connor) (2004-10-30)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f alexc@TheWorld.com (Alex Colvin) (2004-11-02)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f david.thompson1@worldnet.att.net (Dave Thompson) (2004-11-02)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f clint@0lsen.net (Clint Olsen) (2004-11-06)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f kenrose@tfb.com (Ken Rose) (2004-11-14)
[2 later articles]
| List of all articles for this month |
From: "Hui Zhou" <zhouhui@wam.umd.edu>
Newsgroups: comp.compilers
Date: 17 Oct 2004 16:13:35 -0400
Organization: Compilers Central
References: 04-10-092
Keywords: syntax, design
Posted-Date: 17 Oct 2004 16:13:35 EDT

As long as your grammar is unambiguous, I don't think a keyword in the
front is necessary. For python and most other languages, without the
beginning keyword, a function declaration is easily to be confused with
normal function call.


--
Hui Zhou


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.