Skip to content

Instantly share code, notes, and snippets.

@jbclements
Created May 2, 2013 22:08
Show Gist options
  • Save jbclements/5505846 to your computer and use it in GitHub Desktop.
Save jbclements/5505846 to your computer and use it in GitHub Desktop.
ANTLR parses this incredibly slowly
use a::b::c;
pub fn mk_pass(name: ~str, op: @fn(&str) -> ~str) -> Pass {
let op = Cell(op);
Pass {
name: copy name,
f: |srv: astsrv::Srv, doc: doc::Doc| -> doc::Doc {
run(srv, doc, op.take())
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment