loxxy 0.4.02 → 0.4.03

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5a4313b7377778f23e130f599cb4d28d43fd4ff3d56ec2c93c9b9636ac04743
4
- data.tar.gz: 17f543465f55d0e83e2145973522da4230d7162d72f81d54ea957ac1522be412
3
+ metadata.gz: 5a500598bd4afc6d330a6e661bc9686b86de41c921fc7fea04ea0293dd97c057
4
+ data.tar.gz: 7e3f0335e8f9d7914d36db4e0e306ce053f9df18d5efce5cca1f43d22c866402
5
5
  SHA512:
6
- metadata.gz: 18ab688d47ee5d2b98ae1be44bba06740f9299d58b22cbe37b477d4a27624a0b7e3b0a761cde422993a8270d15df3c6113ee50876fb16b5d6a1b2d6e13ed4719
7
- data.tar.gz: 5353f0cb4d853a15a3f5f156e19176d8c3e3a9e64bd186d53a9caec78edb4393e96b2be339634907bf2871a5a974f409d224b9de11a9940e24615fd2b55fb825
6
+ metadata.gz: 51affe131c074f29e887b83de9263cedf31394d9c9254877ddcf971d8e5d41f7035abb50b95af8f98c18a2d9cee06bfb3df7e6c9c97db24e31dbad7fb124c2f5
7
+ data.tar.gz: 6e16c93754aa0bbe32815b78b2362ade39e7823dafc677cb1c2694f3bdec8c07e59820487464634bde7ab08221da4f83381b38149bd68bfd18987d19565a71ab
@@ -44,7 +44,7 @@ module Loxxy
44
44
 
45
45
  # Statements: produce side effects, but don't introduce bindings
46
46
  rule('stmt' => 'statement')
47
- rule('stmt' => 'unbalancedStmt') # Tweak to cope with "dangling else" problem
47
+ # rule('stmt' => 'unbalancedStmt') # Tweak to cope with "dangling else" problem
48
48
  rule('statement' => 'exprStmt')
49
49
  rule('statement' => 'forStmt')
50
50
  rule('statement' => 'ifStmt')
@@ -62,9 +62,12 @@ module Loxxy
62
62
  rule('forInitialization' => 'SEMICOLON').as 'empty_for_initialization'
63
63
  rule('forTest' => 'expression? SEMICOLON').as 'for_test'
64
64
 
65
- rule('ifStmt' => 'IF ifCondition statement ELSE statement').as 'if_else_stmt'
66
- rule('unbalancedStmt' => 'IF ifCondition stmt').as 'if_stmt'
67
- rule('unbalancedStmt' => 'IF ifCondition statement ELSE unbalancedStmt').as 'if_else_stmt'
65
+ rule('ifStmt' => 'IF ifCondition statement ELSE {match_closest: "IF"} statement').as 'if_else_stmt'
66
+ rule('ifStmt' => 'IF ifCondition stmt').as 'if_stmt'
67
+ # rule('unbalancedStmt' => 'IF ifCondition statement ELSE unbalancedStmt').as 'if_else_stmt'
68
+ # rule('ifStmt' => 'IF ifCondition statement ELSE statement').as 'if_else_stmt'
69
+ # rule('unbalancedStmt' => 'IF ifCondition stmt').as 'if_stmt'
70
+ # rule('unbalancedStmt' => 'IF ifCondition statement ELSE unbalancedStmt').as 'if_else_stmt'
68
71
  rule('ifCondition' => 'LEFT_PAREN expression RIGHT_PAREN').as 'keep_symbol2'
69
72
 
70
73
  rule('printStmt' => 'PRINT expression SEMICOLON').as 'print_stmt'
data/lib/loxxy/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Loxxy
4
- VERSION = '0.4.02'
4
+ VERSION = '0.4.03'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loxxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.02
4
+ version: 0.4.03
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-09-10 00:00:00.000000000 Z
11
+ date: 2021-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rley