origen_verilog 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/config/version.rb +1 -1
- data/grammars/verilog.rb +104 -71
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: baf3c21c9a1db0f3a4297888fbb7dc2945495565722cf88493803a1a6464b464
|
4
|
+
data.tar.gz: dfecefa841ca3bcc4da160b105e7af3c4556ffd7f6312f07c84c5d98565353e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48531b405f6ea7f374eb592f98c17f8a932a94b4bcad32d64634fac02cab6f92a3aa347e91a84e9797cc1e3262bebe54dc5f6848ff4b80f56a5cbf034a29d460
|
7
|
+
data.tar.gz: 5d6c02e83a3b8e4035b87e46ab0330416a31619bec2fc3c32d72344d219754fe2dc7f417e99297c66dde34fbaf85e618523e47726b8380dd14928b041b5eaeb9
|
data/config/version.rb
CHANGED
data/grammars/verilog.rb
CHANGED
@@ -48593,12 +48593,6 @@ module OrigenVerilog
|
|
48593
48593
|
r0
|
48594
48594
|
end
|
48595
48595
|
|
48596
|
-
module PortIdentifier0
|
48597
|
-
def identifier
|
48598
|
-
elements[3]
|
48599
|
-
end
|
48600
|
-
end
|
48601
|
-
|
48602
48596
|
def _nt_port_identifier
|
48603
48597
|
start_index = index
|
48604
48598
|
if node_cache[:port_identifier].has_key?(index)
|
@@ -48610,52 +48604,7 @@ module OrigenVerilog
|
|
48610
48604
|
return cached
|
48611
48605
|
end
|
48612
48606
|
|
48613
|
-
|
48614
|
-
i1 = index
|
48615
|
-
r2 = _nt_inout_declaration
|
48616
|
-
if r2
|
48617
|
-
@index = i1
|
48618
|
-
r1 = nil
|
48619
|
-
else
|
48620
|
-
@index = i1
|
48621
|
-
r1 = instantiate_node(SyntaxNode,input, index...index)
|
48622
|
-
end
|
48623
|
-
s0 << r1
|
48624
|
-
if r1
|
48625
|
-
i3 = index
|
48626
|
-
r4 = _nt_input_declaration
|
48627
|
-
if r4
|
48628
|
-
@index = i3
|
48629
|
-
r3 = nil
|
48630
|
-
else
|
48631
|
-
@index = i3
|
48632
|
-
r3 = instantiate_node(SyntaxNode,input, index...index)
|
48633
|
-
end
|
48634
|
-
s0 << r3
|
48635
|
-
if r3
|
48636
|
-
i5 = index
|
48637
|
-
r6 = _nt_output_declaration
|
48638
|
-
if r6
|
48639
|
-
@index = i5
|
48640
|
-
r5 = nil
|
48641
|
-
else
|
48642
|
-
@index = i5
|
48643
|
-
r5 = instantiate_node(SyntaxNode,input, index...index)
|
48644
|
-
end
|
48645
|
-
s0 << r5
|
48646
|
-
if r5
|
48647
|
-
r7 = _nt_identifier
|
48648
|
-
s0 << r7
|
48649
|
-
end
|
48650
|
-
end
|
48651
|
-
end
|
48652
|
-
if s0.last
|
48653
|
-
r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
|
48654
|
-
r0.extend(PortIdentifier0)
|
48655
|
-
else
|
48656
|
-
@index = i0
|
48657
|
-
r0 = nil
|
48658
|
-
end
|
48607
|
+
r0 = _nt_identifier
|
48659
48608
|
|
48660
48609
|
node_cache[:port_identifier][start_index] = r0
|
48661
48610
|
|
@@ -48684,6 +48633,9 @@ module OrigenVerilog
|
|
48684
48633
|
end
|
48685
48634
|
|
48686
48635
|
module SimpleIdentifier1
|
48636
|
+
end
|
48637
|
+
|
48638
|
+
module SimpleIdentifier2
|
48687
48639
|
def to_ast
|
48688
48640
|
text_value
|
48689
48641
|
end
|
@@ -48701,37 +48653,118 @@ module OrigenVerilog
|
|
48701
48653
|
end
|
48702
48654
|
|
48703
48655
|
i0, s0 = index, []
|
48704
|
-
|
48705
|
-
|
48706
|
-
|
48656
|
+
i1 = index
|
48657
|
+
i2, s2 = index, []
|
48658
|
+
i3 = index
|
48659
|
+
if (match_len = has_terminal?("input", false, index))
|
48660
|
+
r4 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
48661
|
+
@index += match_len
|
48707
48662
|
else
|
48708
|
-
terminal_parse_failure('
|
48709
|
-
|
48663
|
+
terminal_parse_failure('"input"')
|
48664
|
+
r4 = nil
|
48710
48665
|
end
|
48711
|
-
|
48712
|
-
|
48713
|
-
|
48714
|
-
|
48715
|
-
|
48716
|
-
|
48717
|
-
|
48666
|
+
if r4
|
48667
|
+
r4 = SyntaxNode.new(input, (index-1)...index) if r4 == true
|
48668
|
+
r3 = r4
|
48669
|
+
else
|
48670
|
+
if (match_len = has_terminal?("output", false, index))
|
48671
|
+
r5 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
48672
|
+
@index += match_len
|
48673
|
+
else
|
48674
|
+
terminal_parse_failure('"output"')
|
48675
|
+
r5 = nil
|
48676
|
+
end
|
48677
|
+
if r5
|
48678
|
+
r5 = SyntaxNode.new(input, (index-1)...index) if r5 == true
|
48679
|
+
r3 = r5
|
48680
|
+
else
|
48681
|
+
if (match_len = has_terminal?("inout", false, index))
|
48682
|
+
r6 = instantiate_node(SyntaxNode,input, index...(index + match_len))
|
48683
|
+
@index += match_len
|
48718
48684
|
else
|
48719
|
-
terminal_parse_failure('
|
48720
|
-
|
48685
|
+
terminal_parse_failure('"inout"')
|
48686
|
+
r6 = nil
|
48721
48687
|
end
|
48722
|
-
if
|
48723
|
-
|
48688
|
+
if r6
|
48689
|
+
r6 = SyntaxNode.new(input, (index-1)...index) if r6 == true
|
48690
|
+
r3 = r6
|
48724
48691
|
else
|
48725
|
-
|
48692
|
+
@index = i3
|
48693
|
+
r3 = nil
|
48726
48694
|
end
|
48727
48695
|
end
|
48696
|
+
end
|
48697
|
+
s2 << r3
|
48698
|
+
if r3
|
48699
|
+
i7 = index
|
48700
|
+
if has_terminal?(@regexps[gr = '\A[a-zA-Z0-9_]'] ||= Regexp.new(gr), :regexp, index)
|
48701
|
+
r8 = true
|
48702
|
+
@index += 1
|
48703
|
+
else
|
48704
|
+
terminal_parse_failure('[a-zA-Z0-9_]')
|
48705
|
+
r8 = nil
|
48706
|
+
end
|
48707
|
+
if r8
|
48708
|
+
@index = i7
|
48709
|
+
r7 = nil
|
48710
|
+
terminal_parse_failure('[a-zA-Z0-9_]', true)
|
48711
|
+
else
|
48712
|
+
@terminal_failures.pop
|
48713
|
+
@index = i7
|
48714
|
+
r7 = instantiate_node(SyntaxNode,input, index...index)
|
48715
|
+
end
|
48716
|
+
s2 << r7
|
48717
|
+
end
|
48718
|
+
if s2.last
|
48728
48719
|
r2 = instantiate_node(SyntaxNode,input, i2...index, s2)
|
48729
|
-
|
48720
|
+
r2.extend(SimpleIdentifier0)
|
48721
|
+
else
|
48722
|
+
@index = i2
|
48723
|
+
r2 = nil
|
48724
|
+
end
|
48725
|
+
if r2
|
48726
|
+
@index = i1
|
48727
|
+
r1 = nil
|
48728
|
+
terminal_parse_failure("<a sequence>", true)
|
48729
|
+
else
|
48730
|
+
@terminal_failures.pop
|
48731
|
+
@index = i1
|
48732
|
+
r1 = instantiate_node(SyntaxNode,input, index...index)
|
48733
|
+
end
|
48734
|
+
s0 << r1
|
48735
|
+
if r1
|
48736
|
+
if has_terminal?(@regexps[gr = '\A[a-zA-Z_]'] ||= Regexp.new(gr), :regexp, index)
|
48737
|
+
r9 = true
|
48738
|
+
@index += 1
|
48739
|
+
else
|
48740
|
+
terminal_parse_failure('[a-zA-Z_]')
|
48741
|
+
r9 = nil
|
48742
|
+
end
|
48743
|
+
s0 << r9
|
48744
|
+
if r9
|
48745
|
+
s10, i10 = [], index
|
48746
|
+
loop do
|
48747
|
+
if has_terminal?(@regexps[gr = '\A[a-zA-Z0-9_]'] ||= Regexp.new(gr), :regexp, index)
|
48748
|
+
r11 = true
|
48749
|
+
@index += 1
|
48750
|
+
else
|
48751
|
+
terminal_parse_failure('[a-zA-Z0-9_]')
|
48752
|
+
r11 = nil
|
48753
|
+
end
|
48754
|
+
if r11
|
48755
|
+
s10 << r11
|
48756
|
+
else
|
48757
|
+
break
|
48758
|
+
end
|
48759
|
+
end
|
48760
|
+
r10 = instantiate_node(SyntaxNode,input, i10...index, s10)
|
48761
|
+
s0 << r10
|
48762
|
+
end
|
48730
48763
|
end
|
48731
48764
|
if s0.last
|
48732
48765
|
r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
|
48733
|
-
r0.extend(SimpleIdentifier0)
|
48734
48766
|
r0.extend(SimpleIdentifier1)
|
48767
|
+
r0.extend(SimpleIdentifier2)
|
48735
48768
|
else
|
48736
48769
|
@index = i0
|
48737
48770
|
r0 = nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: origen_verilog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: 1.8.11
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.6
|
96
|
+
rubygems_version: 2.7.6
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: A parser and generator for Verilog (IEEE 1364)
|