facebook/pfff — Issue #17: Can't parse PHP namespaces
Author: Weltraumschaf
Created: 2011-11-20 11:20:00+00:00
State: open

I tried to call pfff - parse_php ./bin/ebnf with this file https://github.com/Weltraumschaf/ebnf/blob/master/bin/ebnf. It seems that the parse can't habdle PHPs namespace statement:

```bash
pfff -parse_php bin/ebnf
PARSING: bin/ebnf
(ONCE) LEXER:unrecognised symbol, in token rule:\
parse error
= File "bin/ebnf", line 21, column 10, charpos = 796
around = 'de', whole content = namespace de\weltraumschaf\ebnf;
badcount: 26
bad: #!/usr/bin/env php
bad: .
bad: *
bad: * @author Vincent Tscherter
bad: * @author Sven Strittmatter
bad: */
bad:
BAD:!!!!! namespace de\weltraumschaf\ebnf;
bad:
bad: use \Exception as Exception;
bad:
bad: require_once dirname(__DIR__) . "/src/Command.php";
bad:
bad: exit(Command::main(getopt("s:f:o:hd"), basename(__FILE__)));

---------------------------------------------------------------
NB total files = 1; perfect = 0; =========> 0%
nb good = 0, nb bad = 27 =========> 0.000000%
```