public inbox for gentoo-soc@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-soc] libbash: Weekly Progress report #4
@ 2010-06-21 23:34 Nathan Eloe
  0 siblings, 0 replies; only message in thread
From: Nathan Eloe @ 2010-06-21 23:34 UTC (permalink / raw
  To: gentoo-soc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello all

As of right now, the parser can handle most situations: there are very
few features of bash that are not implemented, and hopefully by the end
of this week I'll be able to parse any bash script.

Right now, I'm working on tying a lot of little things together since
I've developed small portions of the AST in isolation from the rest.
Once all of the sub-ASTs are integrated into the main grammar, I can
begin to make them use each other to allow.  With a couple of
exceptions, this is the only thing that's truly necessary to have a
functioning bash AST parser.

Individual goals that have been reached in the past week:

* Endlines are now acceptable delimiters in lists, allowing multi-line
bash programs
* Compound commands are now allowed in pipelines, which allow using
conditional statements, arithmetic statements, case statements, etc.
* the handling of non-ASCII characters has been fixed. (before, only
ASCII characters were allowed in filenames, which severely limited the
usefulness of the parser)
* the AST for variable assignments has been fixed.
* "empty commands" are now allowed: basically, now variable
declarations, etc can be on a line w/o a command.
* token fixes: A LOT of tokens were conflicting with others.  I've
removed some of the tokens and made them rules which aggregate tokens
into larger tokens.  It's messy, but then again, so is bash.  And it
works, which I was quite pleased to find as this was the major setback I
encountered.

Nathan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwf9vQACgkQFpoRlVgtqKY6twCgheSCsQjAgO35sG6eDYmhHedx
6rUAniGXPPwqBfnsc2Bt31Q8gb6Lttba
=UENz
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-21 23:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-21 23:34 [gentoo-soc] libbash: Weekly Progress report #4 Nathan Eloe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox