!7 srecord NLPattern(S pat) {} srecord Definition(O lhs, O rhs) {} srecord PatternMatches(O pat, O s) {} sS defs = [[ A cup of water = A cup with water inside A cup of Peter = A cup that belongs to Peter A cup of glass = A cup that consists of glass A cup of style = A cup that has a lot of style ]]; p-exp { new L objects; for (S s : tlft(defs)) { L l = splitAtJavaToken(s, "="); objects.put(Definition(first(l), second(l))); } pnlStruct(objects); }