Commit Graph

8 Commits

Author SHA1 Message Date
Saif Eddin Gmati
b72751d3c7
chore: remove tokens test (#180)
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-08 18:47:54 +01:00
azjezz
ad0623ed20
chore: remove Parser structure
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-07 23:11:37 +01:00
Saif Eddin Gmati
52b60e11f8
chore: separate source from state (#173)
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-07 16:58:59 +01:00
Saif Eddin Gmati
9a2a903fb9
chore: refactor ast (#162)
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-06 09:33:29 +01:00
azjezz
479f51913c
chore: remove build script
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-05 18:36:04 +01:00
Saif Eddin Gmati
77ff227bc0 feat: make parser, and lexer immutable 2022-12-04 08:56:53 +00:00
Saif Eddin Gmati
ac42958b4f chore: refactor project structure
- added `prelude`
- moved `ast` to `parser`
- moved `Lexer` from `crate::lexer::lexer::Lexer` to `crate::lexer::Lexer`
- renamed `LexerError` to `SyntaxError`
- moved `SyntaxError` to `token::error`
- implemented `Display` for `SyntaxError`
- add `tokens.txt` to integration tests
- removed all unit tests for `Lexer` ( everything is tested in integration tests )
- improved syntax error assertations
2022-12-04 08:56:53 +00:00
Saif Eddin Gmati
558ce71563
feat: add test generator (#134)
Co-authored-by: Ryan Chandler <ryangjchandler@gmail.com>
closes https://github.com/ryangjchandler/php-parser-rs/issues/130
2022-11-29 23:19:51 +00:00