Gentoo Archives: gentoo-soc

From: Nathan Eloe <powerofazure@×××××.com>
To: gentoo-soc@l.g.o
Subject: Re: [gentoo-soc] libbash: progress report week 2
Date: Mon, 07 Jun 2010 14:55:42
Message-Id: 69AE5333-11CA-4969-A93E-A1BB821497CD@gmail.com
In Reply to: Re: [gentoo-soc] libbash: progress report week 2 by "Domen Kožar"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 For the library itself? Nothing concrete yet. Mostly just a couple of ideas thrown back and forth with my mentor concerning how far we would like to take this. I haven't really focused too much on this yet because the AST parser isn't yet complete.
5
6 For the AST, I'm using ANTLRv3 for the grammar which I'm attempting to recreate from man bash. Right now it's outputting java files so that I can test the grammar with gunit, but when everything is implemented the output target will switch to C. Then I'll probably create a C++ friendly wrapper class to simplify using the AST.
7
8 Hopefully this answers your question.
9
10 Thanks,
11 Nate
12 On Jun 7, 2010, at 9:34 AM, Domen Ko¾ar wrote:
13
14 > Seems like an interesting project, do you have any information yet
15 > written about implementation?
16 >
17 > On Mon, 2010-06-07 at 09:15 -0500, Nathan Eloe wrote:
18 >> -----BEGIN PGP SIGNED MESSAGE-----
19 >> Hash: SHA1
20 >>
21 >> Hello all.
22 >>
23 >> This is the weekly project update for libbash.
24 >>
25 >> Libbash is being designed to allow programs like repoman to use Abstract Syntax Trees to parse bash commands instead of regular expressions. Also, it will be a library that allows C++ to talk to bash (using this AST).
26 >>
27 >> What I've accomplished this week:
28 >> The parser now handles comments, reserved words, redirection expressions, simple commands, pipelines, lists, brace expansions and command substitution.
29 >>
30 >> By the end of this week I will have added support for Arrays and compound commands, as well as simplified slightly the resulting tree from the arithmetic expansion.
31 >> Also, I plan to scope the current parser against real code to see what I'm missing.
32 >> One more goal for this week is to design an example that will show how Repoman can use this code to perform one of the many QA checks that it does.
33 >>
34 >> Nathan
35 >>
36 >> -----BEGIN PGP SIGNATURE-----
37 >> Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
38 >>
39 >> iEYEARECAAYFAkwM/xYACgkQFpoRlVgtqKZ+jgCghaRSg6DLznNjczAn+YvKtTVV
40 >> QgIAoJDQnM2aC883w7zohYrvWOcn4yk6
41 >> =N7Qj
42 >> -----END PGP SIGNATURE-----
43 >>
44 >
45
46 -----BEGIN PGP SIGNATURE-----
47 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
48
49 iEYEARECAAYFAkwNCGMACgkQFpoRlVgtqKYV/gCeM+5tCXmipbyXnGaGzAzsKPOw
50 bnwAnA4u3Mz1VMwqmj8gfKocyk/5lSs6
51 =uSnl
52 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-soc] libbash: progress report week 2 "Domen Kožar" <domen@×××.si>