Sha256: 93c56197d661608357c0ae3f5084dd1334784588f0d0575e8d9bde8a4bda9e3e

Contents?: true

Size: 911 Bytes

Versions: 14

Compression:

Stored size: 911 Bytes

Contents

require 'java'
require 'mirah/syntax_checker'
require 'mirah/repl_mirror'

module Redcar
  class Mirah

    def self.menus
      Menu::Builder.build do
        sub_menu "Plugins" do
          sub_menu "REPL" do
            item "Open Mirah REPL", OpenMirahREPL
          end
        end
      end
    end

    def self.load_dependencies
      unless @loaded
        require File.join(File.dirname(__FILE__),'..','vendor','mirah-parser')
        import  'mirah.impl.MirahParser'
        import  'jmeta.ErrorHandler'
        require 'mirah/my_error_handler'
        @loaded = true
      end
    end

    def self.storage
      @storage ||= begin
        storage = Plugin::Storage.new('mirah')
        storage.set_default('check_for_warnings', true)
        storage
      end
    end

    class OpenMirahREPL < Redcar::REPL::OpenREPL
      def execute
        open_repl(ReplMirror.new)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
redcar-mirah-0.2 lib/mirah.rb
redcar-mirah-0.1-java lib/mirah.rb
redcar-dev-0.12.12dev-java plugins/mirah/lib/mirah.rb
redcar-dev-0.12.11dev-java plugins/mirah/lib/mirah.rb
redcar-dev-0.12.10dev-java plugins/mirah/lib/mirah.rb
redcar-dev-0.12.9dev-java plugins/mirah/lib/mirah.rb
redcar-dev-0.12.8dev-java plugins/mirah/lib/mirah.rb
redcar-dev-0.12.7dev-java plugins/mirah/lib/mirah.rb
redcar-dev-0.12.6dev-java plugins/mirah/lib/mirah.rb
redcar-dev-0.12.4dev-java plugins/mirah/lib/mirah.rb
redcar-dev-0.12.3dev-java plugins/mirah/lib/mirah.rb
redcar-dev-0.12.1dev-java plugins/mirah/lib/mirah.rb
redcar-dev-0.12.0dev-java plugins/mirah/lib/mirah.rb
redcar-0.11 plugins/mirah/lib/mirah.rb