Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(at': 0.04; 'source,': 0.04; 'syntax': 0.04; 'tree': 0.05; 'subject:Python': 0.06; '*is*': 0.09; 'language,': 0.12; 'ast': 0.16; 'lexer': 0.16; 'to:name:python list': 0.16; 'specify': 0.24; 'guys': 0.24; 'compiled': 0.26; 'least': 0.26; 'world,': 0.26; 'header:In-Reply- To:1': 0.27; 'specified': 0.30; 'message-id:@mail.gmail.com': 0.30; 'gcc': 0.31; 'subject:end': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:* 10': 0.61; 'such': 0.63; 'world': 0.66; 'boom.': 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 :content-type; bh=9Wnpl2lo7mZB20A5ad+Zfp3GR2IgZbilriBVY0QY4Qs=; b=r8Y7AtVIBkXHKzDimG467GEG+uF0rbfXaD2GiOGhQIH+OT/y6nqC7MFaK9CZjkgH0k d/3myOZB75PE50wc/4QIDWo/0bVtPTd9MlrLkOjR5LO3+ESkgGJUmKTHs8mcT9wEjNeA YZEgOriv/Tml13yl5pST0vPpTS8UHxH5h/czP8ov0RVOLxIugWl05JYpmglkBglCAfDv LnSlMSV+fPGypLP8TgJXV60stQ3MHX17ZKQ6TheIhWvsDvOShvHmiyE2FqY08ldIj7iN doyjSSvf4AnQKkxW5U9lyBFE4aCTqt4fgLmxUAk9GMyydMOpbVEIynINLqLR0gyonGMo DOMA== MIME-Version: 1.0 X-Received: by 10.180.219.33 with SMTP id pl1mr15936041wic.49.1382466161299; Tue, 22 Oct 2013 11:22:41 -0700 (PDT) In-Reply-To: <5266C0E4.7060309@mrabarnett.plus.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> <5266C0E4.7060309@mrabarnett.plus.com> Date: Tue, 22 Oct 2013 11:22:41 -0700 Subject: Re: Python Front-end to GCC From: Mark Janssen To: Python List Content-Type: text/plain; charset=ISO-8859-1 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382466169 news.xs4all.nl 15984 [2001:888:2000:d::a6]:42211 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57292 >> 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. >> > But you still need to specify the semantics. In my world, like writing pseudo-code or flow-charts, the AST *is* the semantics. What world are you guys from? -- MarkJ Tacoma, Washington