Have lexer report the position at which lexing fails.
explicitly export used decls.
Merge pull request #2 from leepike/master

Return lexer positions on error.