Page MenuHomePhabricator

Minor tidying of parser_nodes script
ClosedPublic

Authored by joshuaspence on Aug 26 2015, 8:02 AM.
Tags
None
Referenced Files
F18778306: D13994.diff
Sat, Oct 11, 8:54 AM
F18637335: D13994.id33839.diff
Sep 17 2025, 7:02 AM
F18598977: D13994.id33818.diff
Sep 13 2025, 6:20 AM
F18506374: D13994.id.diff
Sep 5 2025, 1:25 AM
F18498981: D13994.diff
Sep 4 2025, 7:14 PM
F18250333: D13994.id.diff
Aug 21 2025, 3:55 PM
F18236904: D13994.diff
Aug 20 2025, 8:37 PM
F17735546: D13994.id33818.diff
Jul 20 2025, 2:35 PM
Subscribers

Details

Summary

Various minor improvements to parser_nodes.php, including:

  • Use libphutil functions instead of vanilla PHP.
  • phtize strings.
  • Use an array instead of a heredoc for representing the nodes.
Test Plan

Ran the script and compared ouptut.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Minor tidying of parser_nodes script.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
epriestley added a reviewer: epriestley.

Seems basically fine but WIP.

This revision now requires changes to proceed.Aug 27 2015, 11:22 AM
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence edited edge metadata.
joshuaspence added inline comments.
support/xhpast/generate_nodes.php
1

This is wrong.

joshuaspence edited edge metadata.

It's good to go.

epriestley edited edge metadata.
This revision is now accepted and ready to land.Aug 27 2015, 2:50 PM
This revision was automatically updated to reflect the committed changes.