Changeset View
Changeset View
Standalone View
Standalone View
support/xhpast/bin/xhpast-generate-nodes.php
#!/usr/bin/env php | #!/usr/bin/env php | ||||
<?php | <?php | ||||
$arcanist_root = dirname(dirname(dirname(dirname(__FILE__)))); | $arcanist_root = dirname(dirname(dirname(__DIR__))); | ||||
require_once $arcanist_root.'/support/init/init-script.php'; | require_once $arcanist_root.'/support/init/init-script.php'; | ||||
$xhpast_root = dirname(dirname(__FILE__)); | $xhpast_root = dirname(__DIR__); | ||||
$hpp_outpath = $xhpast_root.'/node_names.hpp'; | $hpp_outpath = $xhpast_root.'/node_names.hpp'; | ||||
$php_outpath = $xhpast_root.'/parser_nodes.php'; | $php_outpath = $xhpast_root.'/parser_nodes.php'; | ||||
$offset = 9000; | $offset = 9000; | ||||
$nodes = array( | $nodes = array( | ||||
'n_PROGRAM', | 'n_PROGRAM', | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0