From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: [GSoC] Bourne-shell compiler front-end for Guile Date: Tue, 22 Mar 2016 21:18:01 +0200 Message-ID: <20160322211801.595f63e7@debian-netbook> References: <20160321142205.5949d36c@debian-netbook> <87fuvj5uwi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/_R3mJOkBHuZ40k/QVI3Csfp"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiRog-0007v8-HJ for guix-devel@gnu.org; Tue, 22 Mar 2016 15:18:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiRoc-0006Ct-8S for guix-devel@gnu.org; Tue, 22 Mar 2016 15:18:10 -0400 In-Reply-To: <87fuvj5uwi.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?UTF-8?B?Q291cnTDqHM=?= Cc: guix-devel@gnu.org --Sig_/_R3mJOkBHuZ40k/QVI3Csfp Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 21 Mar 2016 23:27:25 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > Hi Efraim, >=20 > Thanks for your proposal! >=20 > This project can be pretty fun, I think, and quite rewarding if it > indeed allows us to get rid of a bunch of bootstrap binaries. >=20 > As I see it, the project covers mostly two areas: >=20 > 1. Lexing & parsing. This compiler front-end will need a real parser > for the Bourne shell syntax, notably semicolon-separated command > sequences, pipes, brace-delimited blocks, functions, variables, and > =E2=80=98test=E2=80=99 and =E2=80=98[=E2=80=99. >=20 > The available tools could be SILex + (system base lalr) (the latter > is part of Guile, the former is maintained separately; a copy can > be found in Guile-RPC for instance.) >=20 > 2. Run-time support: redirections, pipes, background execution, C-c > (SIGINT) and C-z (SIGTSTP), globbing, and so on. >=20 > Guile provides just the basic here, and a little more with (ice-9 > popen). Scsh and its Guile port(s) provide a lot of that, so it > might be a good idea to see what can be stolen from these. >=20 > It may be that some of your CS classes cover some of this ground (a > fairly common programming project here at university is to implement a > small shell precisely because it covers several areas.) >=20 > How does that sound? >=20 > Perhaps one way to get started would be by looking at the available > tools for #1, and experimenting with hacks for #2, possibly borrowing > code from Scsh. >=20 > Thoughts? Sounds like lots of fun, I'm really looking forward to it. And it sounds li= ke I'll need to dive deeper into bash to see what I get to implement >=20 > Thanks, > Ludo=E2=80=99. >=20 > PS: Would be nice to have a second mentor on this, either officially or > unofficially (if you don=E2=80=99t want to have a to be known to Goog= le=E2=80=A6). > Any takers? :-) --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --Sig_/_R3mJOkBHuZ40k/QVI3Csfp Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJW8ZppAAoJEPTB05F+rO6TPRAP/ierzT7RZ8MRmexDxHpyqEUu Hdsb9f3/3WtfJ2SyDaJJRP8+OJhLoGVLT7425Fa3D/MP+jlG6ptIiOPusro1wlYI lcSV0h59m1BoFlql2WF09oK97jL9+tXiYmMUT1X+K96emwUk+UmoG41PRtqDizq/ OsdThUSwCYhvM0f56drSCUgECnxv6NCGvvMrEx+x+BgsdXULzYevqHKHL6vtU5Jb +X+oG5NChxRAcrchodzZHoou1NJJhIgbnOOrHhN2Hn5Hb9cmKhifmh3yPBhPnVFf qG2ZBjLEdrcspMfcm1hTqov0whe+qnWJG6jzjDNzV7EuT+3SR3N1bHv+CIr0NSZP 42cR22QgBpWx1Tyi28u+zqg0Z+uTDh2WyqmGuEkljI4pB/dbTLYsOWo8UhlnjX7x 5FpSri1ZIg2jJMihdkcTunbR+ssAgDez0hZ69R8ivvhtomqOkAd2IvDrYsCa2bsR nS4piqJ0bpMZvjz9eYqX47EKp7rXjWfsTHL4GgCI8YzjLX1ebBfmPNDasvgvTGTU Hsgc3kr35geyezoRJU2gQEYknA24IntabZ7jQ5VvMwcoYdVdCZBa67sXkvG/964V geWAedlHIPkoTdXNIOAbqgvnQxjJ+/b8yIeG8t7YbzwTkKbD7nlt0dF93rthNn60 jiEYH7NA11POw/pyW2Jy =zXJw -----END PGP SIGNATURE----- --Sig_/_R3mJOkBHuZ40k/QVI3Csfp--