From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: [ANN] Nyacc version 0.83.0 released Date: Sun, 21 Jan 2018 10:19:11 -0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1516558687 12903 195.159.176.226 (21 Jan 2018 18:18:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 21 Jan 2018 18:18:07 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jan 21 19:18:02 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edKBm-0002cF-LL for guile-user@m.gmane.org; Sun, 21 Jan 2018 19:17:54 +0100 Original-Received: from localhost ([::1]:41275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edKDn-00043w-0I for guile-user@m.gmane.org; Sun, 21 Jan 2018 13:19:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edKD8-00041s-Lz for guile-user@gnu.org; Sun, 21 Jan 2018 13:19:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edKD5-00081X-Hv for guile-user@gnu.org; Sun, 21 Jan 2018 13:19:18 -0500 Original-Received: from mail-pg0-x22b.google.com ([2607:f8b0:400e:c05::22b]:42875) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edKD5-00080X-Bw for guile-user@gnu.org; Sun, 21 Jan 2018 13:19:15 -0500 Original-Received: by mail-pg0-x22b.google.com with SMTP id q67so5298407pga.9 for ; Sun, 21 Jan 2018 10:19:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=ux0SmZUZAI+Losunc0EaV27l7Ve4Tp/hHspDpcV7Ock=; b=gp3aRTZ7vEz6tTeAwjtP8Lvg65fAYErC3qr4g2X8FDwkicoeI1pwP0IEBpfni5Rpz3 k6pEqBZmQucVk8jZblEdgidlYpj6kn6ltNILh2mmlL+sfI77peHeYJMFWfLY7k7cZOB1 FICqHNhqxzwEd4edCLsVk4zG3xoZZxg6zNiy21s0riMHhrGfwsdfb139sCppbtAXtxu2 uB6Z2V1/5DNEldCf6TvjfROQN8IHqYOHwcWr3pQ7sab8PHmQC2o2zAFeRxa73XCXxW2z rGzDyjjTE3kRES6MuajFegtTNYKNMG/3gqq96xGEUtLJnL/SqFIEj2HvlsBj0EtIS84A Lo6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=ux0SmZUZAI+Losunc0EaV27l7Ve4Tp/hHspDpcV7Ock=; b=k49dViuqmY0yjcAjTvV8/DSayb21zBTZhRWSgdF8h51A+TBF0HNd6lWW9iVMKeTmEd GNwrXzlMnnc96AOpuczA020gvYRy+z+bQYkky/mVeZMVI9cv7jRbseQz5bmFvcuvfKtt jhVKRG6ls4A+GSmHvl/JeGXU95GsUoiZ6kTWTueP3wRQMrZs1dPfJw0fpysnrtDklLVR 4K7BBBO7pluq+kAIWpSuwyD3K1ph58+5/fFcudJT76GCU1c6DDOPGct1ah+aarp4aoic 9SUgiQ8ZXxoEFXmv4vyjw9v8JuQDSBB0uoUxMaRfGf8kYYhZgEBo6PsXac2b0AY4Bp9J skyw== X-Gm-Message-State: AKwxytcIz/aGEByG/PDbYSgfN8qQ66pZf5u9CifP8f7FZ1EIlg+YAcf/ cJ77oaZcR8P7zoRlT8ofxbW2oPxB X-Google-Smtp-Source: AH8x224RowEuoaEI8an12SiR7YHgjg5TWwOAvxQCmRV1mD3ykGa7+VJugdJ6yJq1Fx4rc/8Pbx8J+g== X-Received: by 10.98.112.4 with SMTP id l4mr5884300pfc.8.1516558753780; Sun, 21 Jan 2018 10:19:13 -0800 (PST) Original-Received: from [192.168.2.183] (216-165-229-229.championbroadband.com. [216.165.229.229]) by smtp.gmail.com with ESMTPSA id t69sm29945699pfa.180.2018.01.21.10.19.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Jan 2018 10:19:13 -0800 (PST) Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22b X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14438 Archived-At: Nyacc version 0.83.0 has been released.   Nyacc is a set of Guile modules for generating parsers, parsing C code, and converting C headers to Guile Scheme. Version 0.83.0 includes the following changes over version 0.82.4: 1) changes to nyacc/lex.scm to read octal constants 2) change in C99 parser to allow lone `;' in structs and unions 3) fixed but in C99 parser which was truncating long CPP defines 4) change in C99 parser to make get-gcc-inc-dirs more accurate 5) updated C99 pretty printer to handle initializer lists 6) many changes to the ffi-helper Some FFI Helper changes: 1) many code updates, api changes, etc 2) updates to the documentation (see examples/nyacc/lang/c99/ffi-help.texi) 3) added procedure "load-include-file", which is feature Ludo asked for:      guile> (load-include-file "cairo.h" #:pkg-config "cairo")    This will load FFIs for all C declarations in cairo.h into the current module.    Not flushed out. 4) added procedure "fh-cnvt-cdecl" for playing around with the FH.      guile> (use-modules (nyacc lang c99 ffi-help))      guile> (use-modules (bytestructures guile))      guile> (use-modules (system ffi-help-rt))      guile> (use-modules ((system foreign) #:prefix ffi:))      guile> (define fh-llibs '())      guile> (define fexp (fh-cnvt-cdecl "fmod" "double fmod(double x,double y);")      guile> ,pp exp      $1 = (begin        (define ~fmod          (delay (fh-link-proc                   ffi:double                   "fmod"                   (list ffi:double ffi:double)                   fh-llibs)))        (define (fmod x y)          (let ((~x (unwrap~float x)) (~y (unwrap~float y)))            ((force ~fmod) ~x ~y)))        (export fmod))      guile> (eval exp (current-module))      guile> (fmod 2.3 0.5)      $2 = 0.2999999999999998 NYACC, for Not Yet Another Compiler Compiler!, is set of guile modules for generating parsers and lexical analyzers.  It also provides sample parsers and pretty-printers using SXML trees as an intermediate representation. NYACC maturity is beta level. NYACC is free software; the full source distribution is available through * the tarball repository:     https://download.savannah.gnu.org/releases/nyacc/ * the git repository:     git://git.savannah.nongnu.org/nyacc.git home page, project page and user's guide: * http://www.nongnu.org/nyacc * https://savannah.nongnu.org/projects/nyacc * http://www.nongnu.org/nyacc/nyacc-ug.html For support see:     https://savannah.nongnu.org/support/?group=nyacc mwette$