From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: Bytestructures: a "type system" for bytevectors Date: Tue, 21 Jun 2016 05:53:30 -0700 Message-ID: References: <87r3mkg2iy.fsf@T420.taylan> <87y460gfhd.fsf@pobox.com> <87k2hjseh4.fsf@T420.taylan> <23A3AD54-4CFC-42BA-8617-A2F6A587D278@gmail.com> <87porbnfor.fsf@T420.taylan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1466513727 30088 80.91.229.3 (21 Jun 2016 12:55:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2016 12:55:27 +0000 (UTC) Cc: Andy Wingo , guile-user@gnu.org To: =?utf-8?Q?Taylan_Ulrich_Bay=C4=B1rl=C4=B1/Kammer?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jun 21 14:55:22 2016 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bFLCs-0001mC-DK for guile-user@m.gmane.org; Tue, 21 Jun 2016 14:55:06 +0200 Original-Received: from localhost ([::1]:51517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFLCm-0006qY-GO for guile-user@m.gmane.org; Tue, 21 Jun 2016 08:55:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFLBS-00063C-Ga for guile-user@gnu.org; Tue, 21 Jun 2016 08:53:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFLBO-0005Vz-Ad for guile-user@gnu.org; Tue, 21 Jun 2016 08:53:37 -0400 Original-Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]:33712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFLBO-0005Vv-2K for guile-user@gnu.org; Tue, 21 Jun 2016 08:53:34 -0400 Original-Received: by mail-pf0-x235.google.com with SMTP id i123so6579549pfg.0 for ; Tue, 21 Jun 2016 05:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7Jwsljss+dPegmsf+ctDbyNQTiOcWppjM2XhDp67FVY=; b=T0JkwpUUGI6l6xz/v8S55stoIJPu3//jSzYjfIvNgguKvbBk/KqVVWPQJolVhIXvuJ 443NGfmt8CXQB5T+I0jWYSyoubLUYg3i8NdHDlguDoSaE7DgHGwFQKMS7msK9mRanQvy sMuPkKZcbUK5A8dPp1Db0Efc/s6e3qEXracmxoOOQHHmzntCN5wSO4edtAL1K991LbFG a2nsjeqaKkAHdlAPFBtMqFILwM7qnWZzokBd7Q3c/1OSYKOadVo7FnMKCmv/hqdWYeRz 6rh4PPdPOSLPDxVy0t9Vrhxl7untvpWH9D6SGPaT/HAT9fvrQaZcgduqpJnL+DhqGcUm BGzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7Jwsljss+dPegmsf+ctDbyNQTiOcWppjM2XhDp67FVY=; b=LP4BeqIqOEwVu/SURjrmEXqEY5aamvDK7UcA4OFQCzIUxe3QmlQLlhQyxLXB0VuCiL T6Sd4oohmfgYFr4f4pcDAxoUoaAKqioGxRvs8ZxN227cT5DziiNAGdoFoplKVQYU2qXf tvaviBkyHb8RsNz/83uzoglFWz+aNmidU/jpVTUa1PW/k0Do5XiCt8xQuWWAi6nirLCm hEti5KfMb7VmoMfniAwXW2TXjddJDSLIXXyTv6VzngH0znfaRcag825Seqd4FrNfzIxC DWCj0SjbwDJT/vSnV0hRMDujis3cjkIPqXgFr4FisawTKHLr7Gtu9OHB6RLO9Tup63kk iWCQ== X-Gm-Message-State: ALyK8tJcUhOy+pNgiqCbTNrF6ymP2g/WythYcI4Xs+UzKnKNGvzJ3mHRQEGdshdAp6OjgA== X-Received: by 10.98.57.12 with SMTP id g12mr28048662pfa.119.1466513613077; Tue, 21 Jun 2016 05:53:33 -0700 (PDT) Original-Received: from nautilus.championbroadband.com (216-165-228-109.championbroadband.com. [216.165.228.109]) by smtp.gmail.com with ESMTPSA id y70sm95772811pff.25.2016.06.21.05.53.31 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jun 2016 05:53:31 -0700 (PDT) In-Reply-To: <87porbnfor.fsf@T420.taylan> X-Mailer: Apple Mail (2.2104) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::235 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:12673 Archived-At: > On Jun 21, 2016, at 12:50 AM, Taylan Ulrich Bay=C4=B1rl=C4=B1/Kammer = wrote: >=20 > Matt Wette writes: >=20 >> nyacc is an all-guile implementation of yacc and comes with a c99 >> parser, available from www.nongnu.org.=20 >> The parser outputs parse trees in sxml format. It is beta-level code. >>=20 >> Matt >=20 > Wow! That covers a big chunk of the task, if I implement it from > scratch. In fact, given I don't have to deal with typedefs and such = for > doing something like Lua's FFI, it covers most of the task. There is code to expand typedefs. Check =E2=80=9Cstripdown=E2=80=9D = routine in (nyacc lang c99 util2). It also provides a keyword arg = (#:keep) to provide a list of typedefs to not expand. Matt