Gentoo Archives: gentoo-soc

From: Nathan Eloe <powerofazure@×××××.com>
To: gentoo-soc@l.g.o
Subject: [gentoo-soc] libbash: Weekly Progress: Week3
Date: Mon, 14 Jun 2010 15:08:32
Message-Id: 8913AF94-C134-4FA4-B091-01FEE30C122E@gmail.com
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hello all
5
6 So, here's what's going on with libbash.
7 Everything's moving smoothly, and all the goals that were set for the iteration were met. This means that, as of right now, the tree parser handles compound comments and arrays. Also, the tree for the arithmetic expansion has begun to be simplified.
8
9 This brings us to this week.
10
11 The timeboxed task of scoping the current AST parser against real code was very helpful and resulted in a long list of problems or missing features. Some of these fixes are fast 2-liner fixes. Others are considerably more complex as the grammar has grown very complex very quickly.
12
13 Here's what I hope to accomplish this week:
14 * Allow EOL as a delimiter in lists (and correctly handle entirely blank lines)
15 * Enable compound comments in the pipeline structure (this will allow it to parse things like conditional statements and such.
16 * Currently, it only handles ASCII character as file names and file paths, etc. This will also be a task in which I'll fix a lot of tokens and how they apply to the rules
17 * Generate the proper AST for variable assignment. Currently, part of the problem is that the tokens are conflicting with each other, which will be fixed by the previous goal.
18 * Bug Fix: allow an empty command (mostly allowing lines that are just variable assignments)
19 * Currently, Arithmetic expansion, Parameter Expansion, and Conditional statements are in separate grammar files. By the end of this week they'll be merged.
20 * Missing parsing: Process Substitution. Implement this
21 * The bash grammar allows certain expansions to be applied to certain words in certain rules. The goal for this task is to figure out what can be applied where by reading man bash and writing the proper rules.
22
23 It's going to be a big week, but by the end of it I'll be able to parse a lot of simple bash programs/scripts.
24
25 Nathan
26 -----BEGIN PGP SIGNATURE-----
27 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
28
29 iEYEARECAAYFAkwWReYACgkQFpoRlVgtqKZYBgCfUpCz8CGUV3NFBc6sPdPPbT9F
30 MhQAn1S1Q84+dW9Tuyfzt+hPpET2fT//
31 =mvkG
32 -----END PGP SIGNATURE-----