Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'example:': 0.03; '(at': 0.04; 'source,': 0.04; 'syntax': 0.04; 'yet.': 0.04; 'tree': 0.05; 'subject:Python': 0.06; 'agree,': 0.09; 'cc:addr:python-list': 0.11; 'language,': 0.12; 'applaud': 0.16; 'cc:name:python list': 0.16; 'janssen': 0.16; 'lexer': 0.16; 'or)': 0.16; 'language': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; '(not': 0.18; 'trying': 0.19; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'header :User-Agent:1': 0.23; 'cc:2**0': 0.24; 'compiled': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'words': 0.29; "doesn't": 0.30; 'specified': 0.30; "i'm": 0.30; 'program,': 0.31; 'easier': 0.31; 'gcc': 0.31; 'subject:end': 0.31; 'though.': 0.31; 'this.': 0.32; 'not.': 0.33; 'could': 0.34; 'no,': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'pm,': 0.38; 'previous': 0.38; 'enough': 0.39; 'skip:* 10': 0.61; 'information': 0.63; 'hear': 0.63; 'such': 0.63; 'interest': 0.64; 'become': 0.64; 'provide': 0.64; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'anything.': 0.68; 'subject.': 0.74; 'exclusive': 0.81; 'boom.': 0.84; 'inclusive': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=4NYlK0LvGc86QV5igBjwNYvQs8sUZTkWtpe6OD05MSo=; b=Of0tidsZMp2dHVZvmw4oJJzmyTeeyz1gAETrZ9PyeSw8oMIXIZmkxRzQVKIDnZX+hQ NuxAwo+1dzI5TpzwCijn8Cchc9rOaK2vptIVGu/y1ZR+JSFfg6agJ9r9hUNyUgHiZpC8 +FXSEEdjJngQCQCSKOB7sfLreFhl3yTigfBPdutJYtWjYH+x8EHnlrUgT8amEl0WLI5c hj8SUmVBa5g9eTUM6O7d8FuQOrlNCViVwWXAiqQeW5aXXiBXqTQjyURJYFdZKkjMQ1m4 6dOVQckFIpqIxHtlOhSOmgHH68EGcVr08Kcek/PWqm62URCCbv5rixWv1MzuzwhD18yR LbWQ== X-Received: by 10.236.29.106 with SMTP id h70mr1267635yha.98.1382466204572; Tue, 22 Oct 2013 11:23:24 -0700 (PDT) Sender: Ned Batchelder Date: Tue, 22 Oct 2013 14:23:22 -0400 From: Ned Batchelder User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Mark Janssen Subject: Re: Python Front-end to GCC References: <4012031f-5334-4be8-a673-e0d8c8917fb2@googlegroups.com> <5a4e0ec9-c977-4a86-83b0-9f4c55a82e37@googlegroups.com> <54f8eb09-7a2e-4306-86f2-7ae118fa8055@googlegroups.com> <52669DC3.5010601@nedbatchelder.com> <5266BC39.9070206@nedbatchelder.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Python List X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382466682 news.xs4all.nl 15925 [2001:888:2000:d::a6]:50886 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57294 On 10/22/13 2:16 PM, Mark Janssen wrote: >>>>> So which of you is confused? I ask that in the inclusive (not >>>>> exclusive OR) sense.... ;^) <-- face says "both". >>>> Could you please be less snarky? >>> Okay. The purpose of BNF (at least as I envision it) is to >>> produce/specify a *context-free* "grammar". A lexer parses the tokens >>> specified in the BNF into an Abstract Syntax Tree. If one can produce >>> such a tree for any given source, the language, in theory, can be >>> compiled by GCC into an executable. >>> >>> Boom. >> Hmm, I don't hear the boom yet. An Abstract Syntax Tree is a tree >> representation of a program. To use my previous example: the program "123 >> *!? 456" would become a tree: >> >> op: "*!?" >> num: 123 >> num: 456 >> >> There's still not enough information to compile this. > ....Is your language Turing complete? > 1) No, it's not. 2) So what? That should make it easier to compile to C, if anything. 3) Don't change the subject. A BNF doesn't provide enough information to compile a program to C. That's all I'm trying to help you understand. If you don't agree, then we have to talk about the meaning of the words BNF, compile, program, and C. I applaud your interest in this topic. I think you need to learn more before you try to claim expertise, though. --Ned.