I've created a PHP4 grammar for the Java based SableCC parser generator.
http://www.mare.ee/indrek/sablecc/
As there is no PHP language specification I can't guarantee its correctness but it seems to work on most files I've fed to it. It should make working on parsing PHP for various tasks a lot easier (loads easier than using the bison mess) but it's also only for Java.
III. Language Reference
- Table of Contents
- 10. Basic syntax
- 11. Types
- 12. Variables
- 13. Constants
- 14. Expressions
- 15. Operators
- 16. Control Structures
- 17. Functions
- 18. Classes and Objects (PHP 4)
- 19. Classes and Objects (PHP 5)
- 20. Exceptions
- 21. References Explained
Language Reference
Indrek Mandre <indrek(at)mare(dot)ee>
02-Sep-2003 05:45
02-Sep-2003 05:45
