Sha256: 4b2705a95d5322ff24f389c32c827f282f9f9be08c7bb6d373915bf540dcb950

Contents?: true

Size: 457 Bytes

Versions: 13

Compression:

Stored size: 457 Bytes

Contents

require 'treetop'
module OrigenVerilog
  module Preprocessor
    # Responsible for parsing a Verilog file to an AST
    class Parser < OrigenVerilog::Parser
      def self.node
        OrigenVerilog::Preprocessor::Node
      end

      def self.parser
        @parser ||= begin
          require "#{Origen.root!}/grammars/verilog"
          require "#{Origen.root!}/grammars/preprocessor"
          GrammarParser.new
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
origen_verilog-0.6.3 lib/origen_verilog/preprocessor/parser.rb
origen_verilog-0.6.2 lib/origen_verilog/preprocessor/parser.rb
origen_verilog-0.6.1 lib/origen_verilog/preprocessor/parser.rb
origen_verilog-0.6.0 lib/origen_verilog/preprocessor/parser.rb
origen_verilog-0.5.2 lib/origen_verilog/preprocessor/parser.rb
origen_verilog-0.5.1 lib/origen_verilog/preprocessor/parser.rb
origen_verilog-0.5.0 lib/origen_verilog/preprocessor/parser.rb
origen_verilog-0.4.0 lib/origen_verilog/preprocessor/parser.rb
origen_verilog-0.3.1 lib/origen_verilog/preprocessor/parser.rb
origen_verilog-0.3.0 lib/origen_verilog/preprocessor/parser.rb
origen_verilog-0.2.2 lib/origen_verilog/preprocessor/parser.rb
origen_verilog-0.2.1 lib/origen_verilog/preprocessor/parser.rb
origen_verilog-0.2.0 lib/origen_verilog/preprocessor/parser.rb