🕷 software projects

by ryan davis



sitemap

sexp_processor

Flexible language processing tools.

sexp_processor branches from ParseTree bringing all the generic sexp processing tools with it. Sexp, SexpProcessor, etc… all for your language processing pleasure.

  • Includes SexpProcessor and CompositeSexpProcessor.
    • Allows you to write very clean filters.
  • Sexp provides a simple and clean interface to creating and manipulating ASTs.
1
2
3
4
5
6
7
8
9
10
class MyProcessor < SexpProcessor
  def initialize
    super
    self.strict = false
  end
  def process_lit(exp)
    val = exp.shift
    return val
  end
end

Get The Code

If you just want to use sexp_processor, you can install it via RubyGems:
gem install sexp_processor
Fork me on GitHub If you want to hack on sexp_processor, clone it from GitHub:
git clone git://github.com/seattlerb/sexp_processor

Latest Activity