Changeset View
Changeset View
Standalone View
Standalone View
support/xhpast/xhpast.cpp
| #include "ast.hpp" | #include "ast.hpp" | ||||
| #include <iostream> | #include <iostream> | ||||
| #include <sstream> | #include <sstream> | ||||
| #include <fstream> | #include <fstream> | ||||
| using namespace std; | using namespace std; | ||||
| int xhpastparse(void*, xhpast::Node **); | int xhpastparse(void*, xhpast::Node **); | ||||
| int xhpast_process(std::string &in); | int xhpast_process(std::string &in); | ||||
| void print_node(xhpast::Node *node); | void print_node(xhpast::Node *node); | ||||
| int main(int argc, char* argv[]) { | int main(int argc, char* argv[]) { | ||||
| if (argc != 1) { | if (argc != 1) { | ||||
| // Coupling: modify also src/parser/xhpast/bin/PhutilXHPASTBinary.php | // Coupling: modify also src/parser/xhpast/bin/PhutilXHPASTBinary.php | ||||
| cout << "7.0.3\n"; | cout << "7.1.0\n"; | ||||
joshuaspence: Actually, given that nullable types were added in PHP 7.1, maybe I'll bump this to 7.1.0. | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| ifstream inputFile; | ifstream inputFile; | ||||
| istream *inputStream; | istream *inputStream; | ||||
| inputStream = &cin; | inputStream = &cin; | ||||
| std::stringbuf sb; | std::stringbuf sb; | ||||
| ▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines | |||||
Actually, given that nullable types were added in PHP 7.1, maybe I'll bump this to 7.1.0.