rpl 0.1.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.
data/lib/rpl.rb ADDED
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rpl/interpreter'
4
+
5
+ require 'rpl/core/branch'
6
+ require 'rpl/core/general'
7
+ require 'rpl/core/mode'
8
+ require 'rpl/core/operations'
9
+ require 'rpl/core/program'
10
+ require 'rpl/core/stack'
11
+ require 'rpl/core/store'
12
+ require 'rpl/core/string'
13
+ require 'rpl/core/test'
14
+ require 'rpl/core/time-date'
15
+ require 'rpl/core/trig'
16
+ require 'rpl/core/logarithm'
17
+ require 'rpl/core/filesystem'
18
+ require 'rpl/core/list'
19
+
20
+ class Rpl < Interpreter
21
+ def initialize( stack = [], dictionary = Dictionary.new )
22
+ super
23
+
24
+ populate_dictionary if @dictionary.words.empty?
25
+ end
26
+
27
+ prepend RplLang::Core::Branch
28
+ prepend RplLang::Core::FileSystem
29
+ prepend RplLang::Core::General
30
+ prepend RplLang::Core::List
31
+ prepend RplLang::Core::Logarithm
32
+ prepend RplLang::Core::Mode
33
+ prepend RplLang::Core::Operations
34
+ prepend RplLang::Core::Program
35
+ prepend RplLang::Core::Stack
36
+ prepend RplLang::Core::Store
37
+ prepend RplLang::Core::String
38
+ prepend RplLang::Core::Test
39
+ prepend RplLang::Core::TimeAndDate
40
+ prepend RplLang::Core::Trig
41
+
42
+ def populate_dictionary; end
43
+ end
metadata ADDED
@@ -0,0 +1,61 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rpl
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Gwenhael Le Moine
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-02-15 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A language inspired by HP's RPL and https://github.com/louisrubet/rpn/
14
+ email: gwenhael@le-moine.org
15
+ executables:
16
+ - rpl
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - bin/rpl
21
+ - lib/rpl.rb
22
+ - lib/rpl/core/branch.rb
23
+ - lib/rpl/core/filesystem.rb
24
+ - lib/rpl/core/general.rb
25
+ - lib/rpl/core/list.rb
26
+ - lib/rpl/core/logarithm.rb
27
+ - lib/rpl/core/mode.rb
28
+ - lib/rpl/core/operations.rb
29
+ - lib/rpl/core/program.rb
30
+ - lib/rpl/core/stack.rb
31
+ - lib/rpl/core/store.rb
32
+ - lib/rpl/core/string.rb
33
+ - lib/rpl/core/test.rb
34
+ - lib/rpl/core/time-date.rb
35
+ - lib/rpl/core/trig.rb
36
+ - lib/rpl/dictionary.rb
37
+ - lib/rpl/interpreter.rb
38
+ homepage: https://github.com/gwenhael-le-moine/rpl.rb
39
+ licenses:
40
+ - GPL-3.0
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - "~>"
49
+ - !ruby/object:Gem::Version
50
+ version: '2.7'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ requirements: []
57
+ rubygems_version: 3.0.3.1
58
+ signing_key:
59
+ specification_version: 4
60
+ summary: Functional Stack Language
61
+ test_files: []