Stefan Tilkov's Random Stuff

Ruby and ParseTree for LINQ-style Queries and Extracting Metadata

Werner Schuster:

While Ruby doesn’t have language support for accessing the AST of a piece of code, there are libraries to handle that. The most popular one is ParseTree, which returns the AST as a s-expr representation, i.e. nested lists of symbols and literals.