Page MenuHomePhabricator

Enable generation of php-parsers in texvcjs
Closed, ResolvedPublic

Description

For using parsing capabilities in php extensions a conversion of grammar and parsing is needed.
Therefore enable php conversion and check the current output.
WIP.

Problem:

  • the functions defined in the initializer code section of parser.pegs are not translated to php, the php based parser crashes when using such a function.
  • the content of parsing expressions in each rule are also not translated to php.

Possible solutions:

  • Convert the action blocks and the initializing section to php
  • Insert the information obtained in a new parser pegjs (in comments and initial code?!)
  • Use phpeggy or wikipeg for generating php based peg grammar

Event Timeline

Change 811253 had a related patch set uploaded (by Stegmujo; author: Stegmujo):

[mediawiki/services/texvcjs@master] WIP: Create a testbuilder and testphp-class.

https://gerrit.wikimedia.org/r/811253

Stegmujo updated the task description. (Show Details)
Stegmujo updated the task description. (Show Details)

Change 811253 abandoned by Stegmujo:

[mediawiki/services/texvcjs@master] WIP: Create a testbuilder and testphp-class.

Reason:

this is covered in TexVC-PHP topic

https://gerrit.wikimedia.org/r/811253