rpl 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rpl +2 -0
- data/lib/rpl/interpreter.rb +0 -2
- data/lib/rpl/words/general.rb +2 -4
- data/lib/rpl.rb +2 -0
- 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: 10af1c6c132173d66be7c554831cd2d86d289c401b5aa36ba16deaca62634ab6
|
4
|
+
data.tar.gz: b0a72cece6e644b76c1dfe4a4a8533936d1025b464a64cbcfa82640549209b66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae2fc038218acbaced883355476dd1fcb77d325cda5db7dc7fc49eedc70d90a58b071f6efece38929d8ac292dd325ec6b663bc70cab31f73ee9f039d5e4847c5
|
7
|
+
data.tar.gz: daabf61d638a593ca324eade777e0d26e959f29a0883b8af67c34647efd6efe7da5e5af777fac6a6ea7e4197495fa08bfe76cf9aca593c7849564d8e6fa00431
|
data/bin/rpl
CHANGED
@@ -54,6 +54,8 @@ options = { run_REPL: ARGV.empty?,
|
|
54
54
|
files: [],
|
55
55
|
programs: [] }
|
56
56
|
|
57
|
+
Version = Rpl::VERSION
|
58
|
+
|
57
59
|
OptionParser.new do |opts|
|
58
60
|
opts.on('-s', "--state filename", "persist state in filename (default: #{options[:persistence_filename]}) (will be created if needed)") do |filename|
|
59
61
|
options[:persistence_filename] = File.expand_path( filename )
|
data/lib/rpl/interpreter.rb
CHANGED
data/lib/rpl/words/general.rb
CHANGED
@@ -35,15 +35,13 @@ module RplLang
|
|
35
35
|
category,
|
36
36
|
'( -- n ) Pop the interpreter\'s version number',
|
37
37
|
proc do
|
38
|
-
@stack << Types.new_object( RplString, "\"#{
|
38
|
+
@stack << Types.new_object( RplString, "\"#{Rpl::VERSION}\"" )
|
39
39
|
end )
|
40
40
|
|
41
41
|
@dictionary.add_word( ['uname'],
|
42
42
|
category,
|
43
43
|
'( -- s ) Pop the interpreter\'s complete indentification string',
|
44
|
-
|
45
|
-
@stack << Types.new_object( RplString, "\"Rpl Interpreter version #{@version}\"" )
|
46
|
-
end )
|
44
|
+
Types.new_object( RplProgram, '« "Rpl Interpreter version " version + »' ) )
|
47
45
|
end
|
48
46
|
end
|
49
47
|
end
|
data/lib/rpl.rb
CHANGED
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.10.
|
4
|
+
version: 0.10.2
|
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-10-
|
11
|
+
date: 2022-10-05 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
|