News for hackers. Stuff that matters.
Re:Implementing a programming language in D: Lexical Analysis by groovy2shoes on Monday December 28, 2015 @03:19PM (#10803118)
If you want to see what a lexical analyzer looks like in Rust, here's one that I wrote for Lua:

https://github.com/aswyk/oxidation/blob/master/oxidation/src...

Of course, Rust's own lexer is also written in Rust.

ETA: I can't promise my lexer is actually any good... it's really the first non-trivial thing I've written in Rust. But it works ;)

Re:Implementing a programming language in D: Lexical Analysis by gnuvince on Monday December 28, 2015 @04:42PM (#10803565)
Thanks for that link! I'm currently writing a compiler for a minuscule language[1] and it's great to be able to look at how other people tackle the same problem and learn.

[1] https://github.com/gnuvince/minilang-rs/