Sha256: 0f10945cc0bc88ddbfe6afbb682777af3f286a5eed4e56d5e2d50e5f4fb5bd38

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

module Gisele
  module Language
    class SugarRemoval < Sexpr::Rewriter
      grammar Language

      # (elsif ... -> else if ...)
      use ElsifFlattener

      def apply(sexpr)
        # all is already done by preprocessors so that we can simply return
        # the s-expression.
        sexpr
      end

    end # class SugarRemoval
  end # module Language
end # module Gisele

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
gisele-language-0.6.0 lib/gisele/language/processors/sugar_removal.rb
gisele-language-0.5.1 lib/gisele/language/processors/sugar_removal.rb
gisele-language-0.5.0 lib/gisele/language/processors/sugar_removal.rb
gisele-0.5.0 lib/gisele/language/processors/sugar_removal.rb