// abstract syntax for a col signature public class colsig { public String id; public ctype type; public colsig next; /* linked list */ public colsig(String i, ctype t, colsig n) { id = i; type = t; next = n; } public int length() { int ax = 0; for(colsig i=this;i!=null;i=i.next) ax++; return ax; } // length }