Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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; 'cc:addr:python-list': 0.11; 'language,': 0.12; 'cc:name:python list': 0.16; 'lexer': 0.16; 'or)': 0.16; 'language': 0.16; '(not': 0.18; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'compiled': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'cc:2**2': 0.30; 'specified': 0.30; 'message- id:@mail.gmail.com': 0.30; '>>>>': 0.31; 'gcc': 0.31; 'subject:end': 0.31; 'this.': 0.32; 'could': 0.34; 'received:google.com': 0.35; 'previous': 0.38; 'enough': 0.39; 'skip:* 10': 0.61; 'information': 0.63; 'hear': 0.63; 'such': 0.63; 'become': 0.64; 'exclusive': 0.81; 'boom.': 0.84; 'inclusive': 0.84; 'washington': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wlEP8y7jFOflGx1yz3jAp6SuhagUGpcGx+BqnYqxAV4=; b=OLTTfnJewmHBzkH08/59u/0pm8MWesAS6CHjQJWU1e/6+6iugmq1QIp3kMAkNQ6th9 eIjimNUk/z8xHeHoCr1PxMPCNovM+3FHVy0ifsSv86ZRuOoJ1KKTMmu54SA8CTzw1/sZ EavJpvoP+I+RSbqzo6OhyIF5MtM7ADEPNxZirDZBWefRF6qXxthtzMpXayhYZ7HSVie0 tcOvqe9Ot9lNEOzdVzliehgGW9eK5sgqXAWPFHvpbVMsZb04EM9XYxcMXUC4uA7uJeA+ qymfPsPTOxoRZ4/sMVoSLw/ZsrXM2EqDefQ1afupEp56kexF4uuEcH2ro36km9B8H5dp 1urg== MIME-Version: 1.0 X-Received: by 10.180.73.113 with SMTP id k17mr15738794wiv.6.1382465814127; Tue, 22 Oct 2013 11:16:54 -0700 (PDT) In-Reply-To: <5266BC39.9070206@nedbatchelder.com> 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> Date: Tue, 22 Oct 2013 11:16:54 -0700 Subject: Re: Python Front-end to GCC From: Mark Janssen To: Ned Batchelder Content-Type: text/plain; charset=ISO-8859-1 Cc: Python List , Dave Angel , Steven D'Aprano 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382465816 news.xs4all.nl 15917 [2001:888:2000:d::a6]:34858 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57290 >>>> 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? -- MarkJ Tacoma, Washington