static L<S> allCurlyBracketPhrases(S s) {
  L<S> tok = javaTok(s);
  Map<Int> map = curlyBracketMap(tok);
  new L<S> phrases;
  for (int i : keys(map)) {
    int j = map.get(i);
    phrases.add(trimJoinSubList(tok, i+1, j-1));
  }
  ret phrases;
}