Path: | lib/ruby_parser/bm_sexp_processor.rb |
Last Update: | Sat Mar 02 23:43:02 +0000 2019 |
SexpProcessor provides a uniform interface to process Sexps.
In order to create your own SexpProcessor subclass you‘ll need to call super in the initialize method, then set any of the Sexp flags you want to be different from the defaults.
SexpProcessor uses a Sexp‘s type to determine which process method to call in the subclass. For Sexp s(:lit, 1) SexpProcessor will call process_lit, if it is defined.