Skip to content

Commit e32fd78

Browse files
committed
parameter statement
1 parent 1a98104 commit e32fd78

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/fortran/ofp/XMLPrinter.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,29 @@ public void named_constant_def_list__begin() {
605605
if (!context.getTagName().equals("declaration"))
606606
contextOpen("declaration");
607607
setAttribute("type", "parameter");
608+
contextOpen("constants");
608609
if (verbosity >= 100)
609610
super.named_constant_def_list__begin();
610611
}
611612

613+
public void named_constant_def_list(int count) {
614+
contextCloseAllInner("constants");
615+
if (verbosity >= 100)
616+
super.named_constant_def_list(count);
617+
setAttribute("count", count);
618+
contextClose("constants");
619+
}
620+
621+
public void named_constant_def(Token id) {
622+
Element value = contextNode(-1);
623+
contextOpen("constant");
624+
setAttribute("name", id);
625+
moveHere(value);
626+
if (verbosity >= 100)
627+
super.named_constant_def(id);
628+
contextClose();
629+
}
630+
612631
public void pointer_decl_list__begin() {
613632
if (!context.getTagName().equals("declaration"))
614633
contextOpen("declaration");

0 commit comments

Comments
 (0)