Sha256: 6ebe8e0abf20838ddf08e3eab08f539b985e5722adb2060c20e264a8a07db465

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

module OrigenVerilog
  module Preprocessor
    class Node < OrigenVerilog::Node
      def process(file = nil, env = {})
        file, env = nil, file if file.is_a?(Hash)
        ast = Processor.new.run(self, env)
        if file
          Writer.new.run(file, ast)
        else
          ast
        end
      end

      def to_s
        Writer.new.to_s(self)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
origen_verilog-0.3.1 lib/origen_verilog/preprocessor/node.rb
origen_verilog-0.3.0 lib/origen_verilog/preprocessor/node.rb
origen_verilog-0.2.2 lib/origen_verilog/preprocessor/node.rb
origen_verilog-0.2.1 lib/origen_verilog/preprocessor/node.rb
origen_verilog-0.2.0 lib/origen_verilog/preprocessor/node.rb