loxxy 0.3.00 → 0.3.01

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: 231fc227cc66ebd0b4f47a00f9fe7260146d70e64cea3581df6cfc5c71937bef
4
- data.tar.gz: cd8117dc8ae9b631ad0d7bef34ee972bdcaa8c758045637bae2f3ea0ed25bb79
3
+ metadata.gz: f6a77cf0f7f4cd0c445d597c534ecc1de82a31222d54a3d0da30330ccbcb216e
4
+ data.tar.gz: c10cab44247a3f7d75382c7a6bbfbc7938bce368ba14ea48878643ea7778aca5
5
5
  SHA512:
6
- metadata.gz: ca714bbd5fa4fcbae67548cdae0d8c43236b02f30adc45e939c0e1dcd3e6694471ea429f902d5e1a7335d4a4cf9779d167a9387b0f4f0732325bd31237630e8d
7
- data.tar.gz: '008526b6d9a2e9f5cf27a68f796e53aa5312d67523a53d8c8682cf944ee6cd990adf3928a3af7fb66e056bca4fc6e45fc11119ffcab1dda4d41fb2ca1c1207be'
6
+ metadata.gz: 5f76a5a66ff5ecdc76207802e195c7becdaf214cb687f9a62be1b58dc56d3ea0a9b3320bb2b8a105a72e3ff79801e3065eb3c10cab6246de2a4a5e74f4ebb722
7
+ data.tar.gz: eafb0e81fa6c6b5c8c3c2a017907b14e3a4ebadd04ec51cb9d79030905562e86ecf37d9e68511ff52ab4ae45eb598f8c7de4fa6344f90034f21635b8f2c983ff
data/CHANGELOG.md CHANGED
@@ -1,8 +1,17 @@
1
+ ## [0.3.01] - 2021-05-08
2
+ - Fix in `Scanner` class, added more tests in test suite.
3
+
4
+ ### New
5
+ - Added the new subfolder `extra` under `test_suite`. It will contain tests for non-standard features or tests not covered in standard test suite.
6
+
7
+ ### Fixed
8
+ - Class `FrontEnd::Scanner`: Couldn't correctly recognize a plus preceding directly a number literal
9
+
1
10
  ## [0.3.00] - 2021-05-07
2
11
  - Milestone: `Loxxy` passes all reference test suite.
3
12
 
4
13
  ### Fixed
5
- - Method `BackEdn::Resolver#before_variable_expr`: Standard `Lox` allows re-declaration of a variable at top-level scope
14
+ - Method `BackEnd::Resolver#before_variable_expr`: Standard `Lox` allows re-declaration of a variable at top-level scope
6
15
 
7
16
 
8
17
  ## [0.2.06] - 2021-05-04
@@ -99,12 +99,9 @@ module Loxxy
99
99
 
100
100
  token = nil
101
101
 
102
- if '(){},.;-/*'.include? curr_ch
102
+ if '(){},.;+-/*'.include? curr_ch
103
103
  # Single delimiter or separator character
104
104
  token = build_token(@@lexeme2name[curr_ch], scanner.getch)
105
- elsif (lexeme = scanner.scan(/\+(?!\d)/))
106
- # Minus or plus character not preceding a digit
107
- token = build_token(@@lexeme2name[lexeme], lexeme)
108
105
  elsif (lexeme = scanner.scan(/[!=><]=?/))
109
106
  # One or two special character tokens
110
107
  token = build_token(@@lexeme2name[lexeme], lexeme)
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.3.00'
4
+ VERSION = '0.3.01'
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.3.00
4
+ version: 0.3.01
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-05-07 00:00:00.000000000 Z
11
+ date: 2021-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rley