Viewing file: XML_unparser.h (1.38 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* * phc -- the open source PHP compiler * See doc/license/README.license for licensing information * * Convert the phc AST to XML format */
#ifndef PHC_XML_UNPARSER #define PHC_XML_UNPARSER
#include <iostream>
#include "process_ir/IR.h" #include "MICG.h"
class XML_unparser_state : public virtual GC_obj { public: std::ostream& os; bool print_attrs; bool convert_base_64; int indent;
public: XML_unparser_state (std::ostream& os, bool print_attrs, bool convert_base_64); void print_indent(); };
void xml_unparse (AST::Node*, XML_unparser_state* state); void xml_unparse (HIR::Node*, XML_unparser_state* state); void xml_unparse (MIR::Node*, XML_unparser_state* state); void xml_unparse (MICG::Node*, XML_unparser_state* state);
void xml_unparse (IR::Node*, XML_unparser_state* state); void xml_unparse (AST::Node*, std::ostream& os = std::cout, bool print_attrs = true, bool convert_base_64 = true); void xml_unparse (HIR::Node*, std::ostream& os = std::cout, bool print_attrs = true, bool convert_base_64 = true); void xml_unparse (MIR::Node*, std::ostream& os = std::cout, bool print_attrs = true, bool convert_base_64 = true); void xml_unparse (MICG::Node*, std::ostream& os = std::cout, bool print_attrs = true, bool convert_base_64 = true);
void xml_unparse (IR::PHP_script*, std::ostream& os = std::cout, bool print_attrs = true, bool convert_base_64 = true);
#endif // PHC_XML_UNPARSER
|