Sha256: 210c8085f4bdd67b9248568e5ea00da9d1355e1f4bc01d0099d27fa89c6e5b0b

Contents?: true

Size: 345 Bytes

Versions: 7

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

begin
  require 'c_lexer'
rescue LoadError
  $stderr.puts 'Failed to load WithCLexer, using pure Ruby lexer'
end

if defined? Parser::Ruby25WithWithCLexer
  class Opal::Parser::WithCLexer < Parser::Ruby25WithWithCLexer
    include Opal::Parser::DefaultConfig
    Opal::Parser.default_parser_class = self
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
opal-1.0.5 lib/opal/parser/with_c_lexer.rb
opal-1.0.4 lib/opal/parser/with_c_lexer.rb
opal-1.0.3 lib/opal/parser/with_c_lexer.rb
opal-1.0.2 lib/opal/parser/with_c_lexer.rb
opal-1.0.1 lib/opal/parser/with_c_lexer.rb
opal-1.0.0 lib/opal/parser/with_c_lexer.rb
opal-1.0.0.beta1 lib/opal/parser/with_c_lexer.rb