Internal error: with clause failed unexpectedly in rule 'control-flow-for'
code fragment:
define page classificationtable(bib : Bibliography) {
var rows : List<List> := bib.matrix();
table{
for(i : Int from 0 to rows.get(0).length) {
row{
for(row : List in rows) {
column{
output(row.get(i).right)
}
}
}
}
}
}error in compiler:
Submitted by Eelco Visser on 21 June 2010 at 22:12
[ webdslc | info ] stage 9: code generationwebdslc: rewriting failed, trace:
main_0_0
webdslc_main_0_0
xtc_io_wrap_5_0
option_wrap_5_0
lifted43
xtc_io_1_0
xtc_temp_files_1_0
restore_always_2_0
lifted31
lifted4
xtc_webdslc_0_0
stage_1_1
dr_scope_1_1
lifted76
log_timed_1_1
lifted11
core_to_java_servlet_0_0
log_time_1_1
if_statistics_2_0
generate_code_java_servlet_0_0
generate_code_java_servlet_0_0
generate_code_java_servlet_0_0
generate_code_java_servlet_0_0
generate_code_java_servlet_0_0
generate_code_java_servlet_0_0
generate_code_java_servlet_0_0
dr_scope_1_1
lifted799
dr_scope_1_1
lifted800
dr_scope_1_1
lifted801
dr_scope_1_1
lifted802
dr_scope_1_1
lifted803
dr_scope_1_1
lifted804
dr_scope_1_1
lifted805
dr_scope_1_1
lifted806
scope_local_emit_1_1
dr_scope_1_1
lifted583
dr_scope_1_1
lifted584
dr_scope_1_1
lifted585
lifted810
log_time_1_1
if_statistics_2_0
lifted811
GenerateCodeJavaServlet_0_0
log_time_1_1
if_statistics_2_0
data_validation_phase_0_0
collect_data_validation_to_java_servlet_0_0
collect_om_1_0
collect_om_2_0
foldr_3_0
foldr_3_0
foldr_3_0
lifted617
collect_om_2_0
foldr_3_0
foldr_3_0
foldr_3_0
foldr_3_0
lifted617
collect_om_2_0
foldr_3_0
lifted617
collect_om_2_0
foldr_3_0
lifted617
collect_om_2_0
data_validation_to_java_servlet_0_0
control_flow_for_1_0
lifted163
collect_om_1_0
collect_om_2_0
foldr_3_0
lifted617
collect_om_2_0
foldr_3_0
foldr_3_0
foldr_3_0
foldr_3_0
lifted617
collect_om_2_0
foldr_3_0
lifted617
collect_om_2_0
foldr_3_0
lifted617
collect_om_2_0
data_validation_to_java_servlet_0_0
control_flow_for_1_0
[ webdslc | critical ] Internal error: with clause failed unexpectedly in rule ‘control-flow-for’
For(“classificationtable_row1”{OriginalNameAnno(“row”{“classificationtable_row1”})},GenericSort(“List”,[SimpleSort(“StringPair”){EntityAnno(“id”,None,False),DefValueAnno(Null)}]){DefValueAnno(TypedListCreation(SimpleSort(“StringPair”),[]))},Var(“classificationtable_rows0”{OriginalNameAnno(“rows”{“classificationtable_rows0”})}){TypeAnno(GenericSort(“List”,[GenericSort(“List”,[SimpleSort(“StringPair”){EntityAnno(“id”,None,False),DefValueAnno(Null)}]){DefValueAnno(TypedListCreation(SimpleSort(“StringPair”),[]))}]){DefValueAnno(TypedListCreation(GenericSort(“List”,[SimpleSort(“StringPair”)]),[]))})},Filter(True{TypeAnno(SimpleSort(“Bool”){DefValueAnno(False)})},OrderAscending(Null{TypeAnno(SimpleSort(“Null”))}){TypeAnno(SimpleSort(“Null”))},Limit(Int(“1000”){TypeAnno(SimpleSort(“Int”){DefValueAnno(Int(“0”))})},Int(“0”){TypeAnno(SimpleSort(“Int”){DefValueAnno(Int(“0”))})})),[TemplateCall(“column”,[],[],TemplateBody([TemplateCall(“text”,[FieldAccess(Call(Var(“classificationtable_row1”{OriginalNameAnno(“row”{“classificationtable_row1”})}){TypeAnno(GenericSort(“List”,[SimpleSort(“StringPair”){EntityAnno(“id”,None,False),DefValueAnno(Null)}]){DefValueAnno(TypedListCreation(SimpleSort(“StringPair”),[]))})},“get”,[Var(“classificationtable_i0”{OriginalNameAnno(“i”{“classificationtable_i0”})}){TypeAnno(SimpleSort(“Int”){DefValueAnno(Int(“0”))})}]){TypeAnno(SimpleSort(“StringPair”){EntityAnno(“id”,None,False),DefValueAnno(Null)})},“right”){TypeAnno(SimpleSort(“String”){DefValueAnno(String(""))})}],[],TemplateBody([]))])){[]}],None)
Log in to post comments