Skip to content

Instantly share code, notes, and snippets.

@mcpherrinm
Created March 12, 2014 00:54
Show Gist options
  • Save mcpherrinm/9498433 to your computer and use it in GitHub Desktop.
Save mcpherrinm/9498433 to your computer and use it in GitHub Desktop.
Notes on Regex derivatives in rust
05:52 PM -!- brson [brson@moz-BBE3ABD.mv.mozilla.com] has joined #rust
05:52 PM -!- mode/#rust [+ao brson brson] by ChanServ
05:52 PM < mcpherrin> there's a bit of info on https://github.com/mozilla/rust/pull/11151 I guess
05:53 PM <@huon> https://github.com/sfackler/syntax-ext-talk/blob/gh-pages/simple-ext/lib.rs
05:53 PM <@huon> https://github.com/sfackler/rust-phf/
05:53 PM < sfackler> mcpherrin: libfourcc in the rust repo, or https://github.com/sfackler/rust-phf or https://github.com/sfackler/syntax-ext-talk/blob/gh-pages/simple-ext/lib.rs
The paper:
http://www.mpi-sws.org/~turon/re-deriv.pdf
@mcpherrinm
Copy link
Author

@mcpherrinm
Copy link
Author

04:00 PM < sfackler> mcpherrin: take a look at the quasiquoter, it should make your life way less painful than manually constructing the AST
04:06 PM < sfackler> mcpherrin: e.g. let e: @item = quote_item!(cx, struct Foo { bar: int, baz: ~str });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment