Sha256: e8ffd0467cf00a6520a194c4a03b52934e8be03d57a02521459f6928fe89f838

Contents?: true

Size: 482 Bytes

Versions: 8

Compression:

Stored size: 482 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

      def parse_verilog(options = {})
        VerilogParser.new.run(self, options)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
origen_verilog-0.6.3 lib/origen_verilog/preprocessor/node.rb
origen_verilog-0.6.2 lib/origen_verilog/preprocessor/node.rb
origen_verilog-0.6.1 lib/origen_verilog/preprocessor/node.rb
origen_verilog-0.6.0 lib/origen_verilog/preprocessor/node.rb
origen_verilog-0.5.2 lib/origen_verilog/preprocessor/node.rb
origen_verilog-0.5.1 lib/origen_verilog/preprocessor/node.rb
origen_verilog-0.5.0 lib/origen_verilog/preprocessor/node.rb
origen_verilog-0.4.0 lib/origen_verilog/preprocessor/node.rb