Skip to content

Commit d5b355e

Browse files
committed
chore: conseqeuent changes as part of sync
1 parent c008889 commit d5b355e

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

grammar/asdl_py.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import sys
66
import os
77

8-
sys.path.append("src/libasr")
8+
sys.path.append("libasr/src/libasr")
99
import asdl
1010

1111
products = []

src/lpython/python_evaluator.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -542,21 +542,21 @@ std::string PythonCompiler::aggregate_type_to_string(const struct EvalResult &r)
542542
result += ")";
543543

544544
} else if (asr_type->type == ASR::ttypeType::StructType) {
545-
ASR::StructType_t *class_type = ASR::down_cast<ASR::StructType_t>(asr_type);
546-
ASR::Struct_t *struct_info = ASR::down_cast<ASR::Struct_t>(class_type->m_derived_type);
547-
LCOMPILERS_ASSERT(class_type->n_data_member_types == struct_info->n_members)
548-
result += struct_info->m_name;
549-
result += "(";
550-
for (size_t i = 0; i < struct_info->n_members - 1; i++) {
551-
result += struct_info->m_members[i];
552-
result += "=";
553-
print_type(class_type->m_data_member_types[i], ((char*)data)+offsets[i], result);
554-
result += ", ";
555-
}
556-
result += struct_info->m_members[struct_info->n_members - 1];
557-
result += "=";
558-
print_type(class_type->m_data_member_types[struct_info->n_members - 1], ((char*)data)+offsets[struct_info->n_members - 1], result);
559-
result += ")";
545+
// ASR::StructType_t *class_type = ASR::down_cast<ASR::StructType_t>(asr_type);
546+
// ASR::Struct_t *struct_info = ASR::down_cast<ASR::Struct_t>(class_type->m_derived_type);
547+
// LCOMPILERS_ASSERT(class_type->n_data_member_types == struct_info->n_members)
548+
// result += struct_info->m_name;
549+
// result += "(";
550+
// for (size_t i = 0; i < struct_info->n_members - 1; i++) {
551+
// result += struct_info->m_members[i];
552+
// result += "=";
553+
// print_type(class_type->m_data_member_types[i], ((char*)data)+offsets[i], result);
554+
// result += ", ";
555+
// }
556+
// result += struct_info->m_members[struct_info->n_members - 1];
557+
// result += "=";
558+
// print_type(class_type->m_data_member_types[struct_info->n_members - 1], ((char*)data)+offsets[struct_info->n_members - 1], result);
559+
// result += ")";
560560

561561
} else {
562562
throw LCompilersException("PythonCompiler::evaluate(): Return type not supported");

0 commit comments

Comments
 (0)