Update doc/1_Usage_of_basic_components.markdown
Merge pull request #21 from ss23/patch-1

Update doc/1_Usage_of_basic_components.markdown
Merge pull request #22 from schmittjoh/resolveCatchType

fixes a bug where catch type was not resolved
Fix typo
Use inject-once approach for lexer

Now the lexer is injected only once when creating the parser. Instead of

    $parser = new PHPParser_Parser;
    $parser->parse(new PHPParser_Lexer($code));
    $parser->parse(new PHPParser_Lexer($code2));

you write:

    $parser = new PHPParser_Parser(new PHPParser_Lexer);
    $parser->parse($code);
    $parser->parse($code2);
Start refactoring parser skeleton

The yacc parser skeleton with all those odd $yy short names is quite
non-obvious. This commits starts to refactor it a bit, to use more
obvious names and logic.
Adjust test_old to use new Lexer injection method
Store line and doc comment as attributes
Fix NameResolver to properly copy attributes
Add progress indicator for test_old.

I hate waiting for something without seeing at least *some* output.
Generalize the attribute generation for nodes

Now two arrays are fetched from the lexer: $startAttributes and
$endAttributes. When constructing the attributes for a node, the
$startAttributes from the first token of the node and the $endAttributes
of the last token of the node are merged.

Now the end line is saved in the endLine attribute.
Collect normal comments too, not only doc comments

Comments and doc comments are now saved in the 'comments' attribute, as an
array. The are instances of PHPParser_Comment[_Doc].
Add test coverage for two things
Adjust XML unserializer for new comments attribute
Fix $node->getDocComment()

getDocComment() now returns the last comment (given that it is a doc
comment). setDocComment() no longer exists, as it doesn't make sense
with the comment objects anymore. getAttribute() now returns by reference,
so it also works in reference contexts.
Insert comments when pretty printing

This changset also adds unit tests for Comments and adds a way to test the
pretty printer.
Update docs
Add more extensive Lexer component docs
Update CHANGELOG
Fix comment reformatting on Linux

Remove the use of \R (with BSR_ANYCRLF) at two places, as it was causing
problems there.