Rewrite of bjam.

[SVN r40217]
Translate the Jam grammar to lemon parser.

[SVN r40258]