loxxy 0.4.02 → 0.4.03
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 +4 -4
- data/lib/loxxy/front_end/grammar.rb +7 -4
- data/lib/loxxy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a500598bd4afc6d330a6e661bc9686b86de41c921fc7fea04ea0293dd97c057
|
4
|
+
data.tar.gz: 7e3f0335e8f9d7914d36db4e0e306ce053f9df18d5efce5cca1f43d22c866402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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('
|
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
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.
|
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-
|
11
|
+
date: 2021-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rley
|