Created
March 12, 2014 00:54
-
-
Save mcpherrinm/9498433 to your computer and use it in GitHub Desktop.
Notes on Regex derivatives in rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
http://www.mpi-sws.org/~turon/re-deriv.pdf