Sha256: 5594ac55f95b75e24ad32bb7dcbb3edc85f4274caea1a75839a870b28555209b

Contents?: true

Size: 1.69 KB

Versions: 5

Compression:

Stored size: 1.69 KB

Contents

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>new (VerilogParser::Module::Port)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre>    <span class="ruby-comment cmt"># File lib/ruby-vpi/verilog_parser.rb, line 47</span>
47:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">aDecl</span>, <span class="ruby-identifier">aModule</span>
48:         <span class="ruby-ivar">@decl</span> = <span class="ruby-identifier">aDecl</span>
49:         <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">aDecl</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-regexp re">/\S+/</span>).<span class="ruby-identifier">last</span>
50: 
51:         <span class="ruby-identifier">parser</span> = <span class="ruby-node">/\b(input|output|inout)\b[^;]*\b#{@name}\b/</span><span class="ruby-identifier">m</span>
52:         <span class="ruby-identifier">aDecl</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">parser</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">aModule</span>.<span class="ruby-identifier">body</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">parser</span>
53:         <span class="ruby-ivar">@type</span> = <span class="ruby-identifier">$1</span>
54:       <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-vpi-17.0.0 ref/ruby/classes/VerilogParser/Module/Port.src/M000006.html
ruby-vpi-18.0.0 ref/ruby/classes/VerilogParser/Module/Port.src/M000006.html
ruby-vpi-19.0.0 ref/ruby/classes/VerilogParser/Module/Port.src/M000004.html
ruby-vpi-18.0.1 ref/ruby/classes/VerilogParser/Module/Port.src/M000006.html
ruby-vpi-18.0.2 ref/ruby/classes/VerilogParser/Module/Port.src/M000006.html