Sha256: 564b1033d6ad86eb9e76c1e53267bb9f2680df3424a1ab686088cd9f3cf7f222

Contents?: true

Size: 287 Bytes

Versions: 4

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true

module Phlex
	class Compiler
		module Visitors
			class BaseVisitor < SyntaxTree::Visitor
				def initialize(compiler = nil)
					@compiler = compiler
				end

				private

				def format(node)
					Formatter.format("", node)
				end
			end
		end
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phlex-0.4.0 lib/phlex/compiler/visitors/base_visitor.rb
phlex-0.3.2 lib/phlex/compiler/visitors/base_visitor.rb
phlex-0.3.1 lib/phlex/compiler/visitors/base_visitor.rb
phlex-0.3.0 lib/phlex/compiler/visitors/base_visitor.rb