Sha256: 00f0e2e5340f1ee901f081096cea4791c2095299c27bccb85a585ff37cff755f

Contents?: true

Size: 839 Bytes

Versions: 12

Compression:

Stored size: 839 Bytes

Contents

require "liquidscript/compiler/icr/expressions"
require "liquidscript/compiler/icr/functions"
require "liquidscript/compiler/icr/literals"
require "liquidscript/compiler/icr/classes"
require "liquidscript/compiler/icr/helpers"

module Liquidscript
  module Compiler
    class ICR < Base

      include Expressions
      include Functions
      include Literals
      include Classes
      include Helpers

      # (see Base#reset!)
      def reset!
        @top         = Liquidscript::ICR::Set.new
        @top.context = Liquidscript::ICR::Context.new
        @set         = [@top]
        super
      end

      # (see Base#top)
      def top
        @set.last
      end

      # Sets the starting point for compiliation.
      #
      # @return [ICR::Code]
      def compile_start
        compile_expression
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
liquidscript-0.4.1 lib/liquidscript/compiler/icr.rb
liquidscript-0.4.0 lib/liquidscript/compiler/icr.rb
liquidscript-0.3.1 lib/liquidscript/compiler/icr.rb
liquidscript-0.3.0 lib/liquidscript/compiler/icr.rb
liquidscript-0.2.1 lib/liquidscript/compiler/icr.rb
liquidscript-0.2.0 lib/liquidscript/compiler/icr.rb
liquidscript-0.1.5 lib/liquidscript/compiler/icr.rb
liquidscript-0.1.4 lib/liquidscript/compiler/icr.rb
liquidscript-0.1.3 lib/liquidscript/compiler/icr.rb
liquidscript-0.1.2 lib/liquidscript/compiler/icr.rb
liquidscript-0.1.1 lib/liquidscript/compiler/icr.rb
liquidscript-0.1.0 lib/liquidscript/compiler/icr.rb