rpl 0.7.2 → 0.8.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14743c6b30b8c1cccd4d1147b75062f239f6bde4e90704f3e3e12f7040997165
4
- data.tar.gz: 7081e6d58e3066f148379b4e091e0de9e955f6c821a47857d28e466f56bfb782
3
+ metadata.gz: c6394da05e2547dd85c3ab87e8ad841d72edc90b99e16bb1abbd43850e4c824d
4
+ data.tar.gz: 87e6d2304b45909e04ccdae776cea33fb26048c98f6488ceb44539c348ad7063
5
5
  SHA512:
6
- metadata.gz: d315a8b60972828ed69369f1ac17150357430e5066629ec88c3c16bc97e8c9d2cffaf3323f9526c86ea32a8a052b53887e61ca328a178dee19bf0eec88e8cd0b
7
- data.tar.gz: 631502e4025f34fbcd7355922e2c6b2d77af8b326b4b2900c8cb12a2ac9824e44a5c7bc52ceff8f1b2130e82220864d76ecc90110dc02a942f9795a19466a35d
6
+ metadata.gz: 0fbe309e4c373ab91b0f50022c3571d28e387b9476d7deb96fb35fb2db25970a946f254a4819b088a0741b3271fa07d6710165f186365478726ad01e6d3ce788
7
+ data.tar.gz: 5d928b2865843d21275a26e14dce2fc4be75ddb371a7d0dd0cf185037c2766af85186da83fd8acdd56f6500647d4610bd245ae7fe243ef53790871a396d5f4c3
@@ -18,7 +18,7 @@ class Interpreter
18
18
  attr_accessor :precision
19
19
 
20
20
  def initialize( stack = [], dictionary = Rpl::Lang::Dictionary.new )
21
- @version = 0.72
21
+ @version = 0.8
22
22
 
23
23
  @dictionary = dictionary
24
24
  @stack = stack
data/lib/rpl/parser.rb CHANGED
@@ -7,7 +7,7 @@ class Parser
7
7
  unless input.index("\n").nil?
8
8
  input = input.split("\n")
9
9
  .map do |line|
10
- comment_begin_index = line.index('#')
10
+ comment_begin_index = line.index('@')
11
11
 
12
12
  case comment_begin_index
13
13
  when nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gwenhael Le Moine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-09 00:00:00.000000000 Z
11
+ date: 2022-03-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A language inspired by HP's RPL and https://github.com/louisrubet/rpn/
14
14
  email: gwenhael@le-moine.org