phpeg and similar modules like wikipeg can not convert or read javascript in
action blocks and introduction code of peg based grammar files.
To enable conversion of LaTeX to MML in the future in texvcjs, the already existing functionalities in javascript have to be converted.
To created a more readable form of the existing modules in php, understand the visitor-pattern and eventually use another pattern in the php based classes.
- Convert the node modules referenced in parser.pegjs to php and in the render functionality: texutil, render and ast shall be refactored with the new classbased-implmnentation.
- Convert the action blocks to php.
- Create a php based grammar and ensure its functionality.
- Write or convert some basic unit tests to check the functionality