| 172 | } |
| 173 | |
| 174 | void instance_type::dump_ast(std::ostream &stream) |
| 175 | { |
| 176 | stream << "< Covariant Script AST Dump >\n< BeginMetaData >\n< Version: " << current_process->version |
| 177 | << " >\n< Standard Version: " |
| 178 | << current_process->std_version |
| 179 | << " >\n< Import Path: \"" |
| 180 | << current_process->import_path |
| 181 | << "\" >\n"; |
| 182 | #ifdef COVSCRIPT_PLATFORM_WIN32 |
| 183 | stream << "< Platform: Win32 >\n"; |
| 184 | #else |
| 185 | stream << "< Platform: Unix >\n"; |
| 186 | #endif |
| 187 | stream << "< EndMetaData >\n"; |
| 188 | for (auto &ptr : statements) |
| 189 | ptr->dump(stream); |
| 190 | stream << std::flush; |
| 191 | } |
| 192 | |
| 193 | void instance_type::check_declar_var(tree_type<token_base *>::iterator it, bool regist) |
| 194 | { |