Page MenuHomePhorge

xhpast-make.bat

Authored By
speck
Feb 6 2024, 02:28
Size
517 B
Referenced Files
None
Subscribers
None

xhpast-make.bat

REM Generate parser_nodes.php and node_names.hpp
php -f ./bin/xhpast-generate-nodes.php
REM Compile the parser and scanner, resulting in parser.yacc.o and scanner.lex.o
clang++ -c -I./ -O3 -o parser.yacc.o parser.yacc.cpp
clang++ -c -I./ -O3 -o scanner.lex.o scanner.lex.cpp
REM Compile the xhpast.exe
REM Get the XHPAST_VERSION (in this case 7.1.6) by running: php -f ./bin/xhpast-generate-version.php
clang++ -I./ -L./ -static -O3 -D XHPAST_VERSION=\"7.1.6\" -o xhpast.exe parser.yacc.o scanner.lex.o xhpast.cpp

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
467923
Default Alt Text
xhpast-make.bat (517 B)

Event Timeline