rley 0.8.01 → 0.8.02

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.
@@ -316,6 +316,7 @@ State[5]
316
316
  S => S . + M | 0
317
317
  P. | 0
318
318
  REPR
319
+ expect(expectation).to eq(expectation)
319
320
  end
320
321
  end # context
321
322
 
@@ -133,7 +133,6 @@ module Rley # Open this namespace to avoid module qualifier prefixes
133
133
  expect(last_prod.lhs.name).to eq('value')
134
134
  expect(last_prod.rhs.members[0].name).to eq('digit_plus')
135
135
  end
136
-
137
136
  end # context
138
137
 
139
138
  context 'Building grammar:' do
@@ -16,19 +16,19 @@ module Rley # Open this namespace to avoid module qualifier prefixes
16
16
  module Syntax # Open this namespace to avoid module qualifier prefixes
17
17
  describe MatchClosest do
18
18
  # 'stmt' => 'IF boolean THEN stmt ELSE stmt'
19
- let(:boolean) { NonTerminal.new('boolean') }
19
+ let(:boolean) { NonTerminal.new('boolean') }
20
20
  let(:stmt) { NonTerminal.new('stmt') }
21
21
  let(:if_t) { Terminal.new('IF') }
22
22
  let(:then_t) { Terminal.new('THEN') }
23
- let(:else_t) { Terminal.new('ELSE') }
23
+ let(:else_t) { Terminal.new('ELSE') }
24
24
  let(:sequence) { [if_t, boolean, then_t, stmt, else_t, stmt] }
25
25
  let(:prod) { Production.new(stmt, sequence) }
26
26
 
27
- subject{ MatchClosest.new(prod.rhs.members, 4, 'IF') }
27
+ subject { MatchClosest.new(prod.rhs.members, 4, 'IF') }
28
28
 
29
29
  context 'Initialization:' do
30
30
  it 'should be created with an symbol seq., an indice and a name' do
31
- expect { MatchClosest.new(prod.rhs.members, 4, 'IF') }.not_to raise_error
31
+ expect { MatchClosest.new(prod.rhs.members, 4, 'IF') }.not_to raise_error
32
32
  end
33
33
 
34
34
  it 'should know the index argument' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rley
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.01
4
+ version: 0.8.02
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitri Geshef
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-22 00:00:00.000000000 Z
11
+ date: 2021-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake