fOOrth 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +21 -0
  3. data/.rdoc_options +17 -0
  4. data/Gemfile +4 -0
  5. data/README.md +67 -0
  6. data/bin/fOOrth +8 -0
  7. data/demo.rb +24 -0
  8. data/fOOrth.gemspec +40 -0
  9. data/fOOrth.reek +109 -0
  10. data/integration/README.md +12 -0
  11. data/integration/_FILE_test.foorth +5 -0
  12. data/integration/array_lib_tests.rb +360 -0
  13. data/integration/class_lib_tests.rb +116 -0
  14. data/integration/clone_lib_tests.rb +108 -0
  15. data/integration/comparison_tests.rb +132 -0
  16. data/integration/compile_lib_tests.rb +190 -0
  17. data/integration/ctrl_struct_lib_tests.rb +80 -0
  18. data/integration/data_ref_lib_tests.rb +43 -0
  19. data/integration/exception_lib_tests.rb +86 -0
  20. data/integration/fiber_bundle_tests.rb +380 -0
  21. data/integration/hash_lib_tests.rb +120 -0
  22. data/integration/in_stream_test_1.txt +4 -0
  23. data/integration/load_test_one.foorth +6 -0
  24. data/integration/load_test_two.foorth +4 -0
  25. data/integration/numeric_lib_tests.rb +321 -0
  26. data/integration/object_lib_tests.rb +38 -0
  27. data/integration/procedure_lib_tests.rb +40 -0
  28. data/integration/queue_lib_tests.rb +66 -0
  29. data/integration/stack_lib_tests.rb +70 -0
  30. data/integration/standard_lib_tests.rb +208 -0
  31. data/integration/stdio_lib_tests.rb +52 -0
  32. data/integration/stream_lib_tests.rb +196 -0
  33. data/integration/string_lib_tests.rb +217 -0
  34. data/integration/support/foorth_testing.rb +135 -0
  35. data/integration/thread_lib_tests.rb +83 -0
  36. data/integration/time_lib_tests.rb +791 -0
  37. data/integration/vm_lib_tests.rb +38 -0
  38. data/lib/fOOrth.rb +57 -0
  39. data/lib/fOOrth/compiler.rb +78 -0
  40. data/lib/fOOrth/compiler/context.rb +49 -0
  41. data/lib/fOOrth/compiler/context/locals.rb +34 -0
  42. data/lib/fOOrth/compiler/context/map_name.rb +92 -0
  43. data/lib/fOOrth/compiler/context/tags.rb +48 -0
  44. data/lib/fOOrth/compiler/modes.rb +32 -0
  45. data/lib/fOOrth/compiler/modes/compiled.rb +41 -0
  46. data/lib/fOOrth/compiler/modes/deferred.rb +57 -0
  47. data/lib/fOOrth/compiler/modes/delayed.rb +40 -0
  48. data/lib/fOOrth/compiler/modes/nested.rb +34 -0
  49. data/lib/fOOrth/compiler/modes/suspend.rb +32 -0
  50. data/lib/fOOrth/compiler/parser.rb +26 -0
  51. data/lib/fOOrth/compiler/parser/get_string.rb +71 -0
  52. data/lib/fOOrth/compiler/parser/normal.rb +53 -0
  53. data/lib/fOOrth/compiler/parser/skip.rb +50 -0
  54. data/lib/fOOrth/compiler/parser/special.rb +42 -0
  55. data/lib/fOOrth/compiler/process.rb +47 -0
  56. data/lib/fOOrth/compiler/process/generate.rb +24 -0
  57. data/lib/fOOrth/compiler/process/get_token.rb +23 -0
  58. data/lib/fOOrth/compiler/process/procedure.rb +55 -0
  59. data/lib/fOOrth/compiler/process/string.rb +20 -0
  60. data/lib/fOOrth/compiler/source.rb +51 -0
  61. data/lib/fOOrth/compiler/source/console.rb +70 -0
  62. data/lib/fOOrth/compiler/source/file_source.rb +37 -0
  63. data/lib/fOOrth/compiler/source/read_point.rb +46 -0
  64. data/lib/fOOrth/compiler/source/string_source.rb +28 -0
  65. data/lib/fOOrth/compiler/token.rb +37 -0
  66. data/lib/fOOrth/compiler/word_specs.rb +178 -0
  67. data/lib/fOOrth/core.rb +27 -0
  68. data/lib/fOOrth/core/class.rb +116 -0
  69. data/lib/fOOrth/core/object.rb +78 -0
  70. data/lib/fOOrth/core/virtual_machine.rb +28 -0
  71. data/lib/fOOrth/debug.rb +13 -0
  72. data/lib/fOOrth/debug/context_dump.rb +31 -0
  73. data/lib/fOOrth/debug/dbg_puts.rb +17 -0
  74. data/lib/fOOrth/debug/display_abort.rb +37 -0
  75. data/lib/fOOrth/debug/vm_dump.rb +27 -0
  76. data/lib/fOOrth/initialize.rb +83 -0
  77. data/lib/fOOrth/interpreter.rb +24 -0
  78. data/lib/fOOrth/interpreter/add_to_hash.rb +17 -0
  79. data/lib/fOOrth/interpreter/data_stack.rb +125 -0
  80. data/lib/fOOrth/interpreter/do_loop.rb +55 -0
  81. data/lib/fOOrth/interpreter/squash.rb +25 -0
  82. data/lib/fOOrth/library.rb +38 -0
  83. data/lib/fOOrth/library/array_library.rb +577 -0
  84. data/lib/fOOrth/library/bundle_library.rb +112 -0
  85. data/lib/fOOrth/library/class_library.rb +90 -0
  86. data/lib/fOOrth/library/clone_library.rb +72 -0
  87. data/lib/fOOrth/library/command_library.rb +205 -0
  88. data/lib/fOOrth/library/compile_library.rb +181 -0
  89. data/lib/fOOrth/library/complex_library.rb +81 -0
  90. data/lib/fOOrth/library/ctrl_struct_library.rb +116 -0
  91. data/lib/fOOrth/library/data_ref_library.rb +100 -0
  92. data/lib/fOOrth/library/duration/arithmetic.rb +114 -0
  93. data/lib/fOOrth/library/duration/formatter.rb +152 -0
  94. data/lib/fOOrth/library/duration/intervals.rb +233 -0
  95. data/lib/fOOrth/library/duration/make.rb +75 -0
  96. data/lib/fOOrth/library/duration_library.rb +52 -0
  97. data/lib/fOOrth/library/fiber_library.rb +120 -0
  98. data/lib/fOOrth/library/hash_library.rb +203 -0
  99. data/lib/fOOrth/library/in_stream_library.rb +81 -0
  100. data/lib/fOOrth/library/integer_library.rb +104 -0
  101. data/lib/fOOrth/library/mutex_library.rb +31 -0
  102. data/lib/fOOrth/library/numeric_library.rb +380 -0
  103. data/lib/fOOrth/library/object_library.rb +80 -0
  104. data/lib/fOOrth/library/other_value_types_library.rb +96 -0
  105. data/lib/fOOrth/library/out_stream_library.rb +146 -0
  106. data/lib/fOOrth/library/procedure_library.rb +65 -0
  107. data/lib/fOOrth/library/queue_library.rb +47 -0
  108. data/lib/fOOrth/library/rational_library.rb +90 -0
  109. data/lib/fOOrth/library/stack_library.rb +56 -0
  110. data/lib/fOOrth/library/stdio_library.rb +56 -0
  111. data/lib/fOOrth/library/string_library.rb +285 -0
  112. data/lib/fOOrth/library/stubs.rb +76 -0
  113. data/lib/fOOrth/library/sync_bundle_library.rb +50 -0
  114. data/lib/fOOrth/library/thread_library.rb +73 -0
  115. data/lib/fOOrth/library/time_library.rb +302 -0
  116. data/lib/fOOrth/library/vm_library.rb +105 -0
  117. data/lib/fOOrth/main.rb +125 -0
  118. data/lib/fOOrth/monkey_patch.rb +14 -0
  119. data/lib/fOOrth/monkey_patch/complex.rb +30 -0
  120. data/lib/fOOrth/monkey_patch/exceptions.rb +154 -0
  121. data/lib/fOOrth/monkey_patch/false.rb +11 -0
  122. data/lib/fOOrth/monkey_patch/float.rb +22 -0
  123. data/lib/fOOrth/monkey_patch/integer.rb +22 -0
  124. data/lib/fOOrth/monkey_patch/nil.rb +11 -0
  125. data/lib/fOOrth/monkey_patch/numeric.rb +33 -0
  126. data/lib/fOOrth/monkey_patch/object.rb +43 -0
  127. data/lib/fOOrth/monkey_patch/rational.rb +31 -0
  128. data/lib/fOOrth/monkey_patch/string.rb +51 -0
  129. data/lib/fOOrth/symbol_map.rb +82 -0
  130. data/lib/fOOrth/version.rb +7 -0
  131. data/license.txt +21 -0
  132. data/rakefile.rb +65 -0
  133. data/reek.txt +1 -0
  134. data/sire.rb +132 -0
  135. data/t.txt +3 -0
  136. data/test.foorth +5 -0
  137. data/tests/compiler/context_tests.rb +180 -0
  138. data/tests/compiler/file_source_test_one.txt +1 -0
  139. data/tests/compiler/file_source_test_three.txt +3 -0
  140. data/tests/compiler/file_source_test_two.txt +3 -0
  141. data/tests/compiler/file_source_tests.rb +130 -0
  142. data/tests/compiler/mode_tests.rb +45 -0
  143. data/tests/compiler/parser_tests.rb +116 -0
  144. data/tests/compiler/spec_tests.rb +113 -0
  145. data/tests/compiler/string_source_tests.rb +128 -0
  146. data/tests/core_tests.rb +138 -0
  147. data/tests/interpreter/data_stack_tests.rb +119 -0
  148. data/tests/monkey_patch/coerce_test.rb +131 -0
  149. data/tests/monkey_patch/complex_test.rb +25 -0
  150. data/tests/monkey_patch/numeric_test.rb +62 -0
  151. data/tests/monkey_patch/object_test.rb +49 -0
  152. data/tests/monkey_patch/rational_test.rb +57 -0
  153. data/tests/monkey_patch/string_test.rb +53 -0
  154. data/tests/symbol_map_tests.rb +53 -0
  155. metadata +366 -0
@@ -0,0 +1,49 @@
1
+ # coding: utf-8
2
+
3
+ require_relative '../../lib/fOOrth/monkey_patch'
4
+ gem 'minitest'
5
+ require 'minitest/autorun'
6
+ require 'minitest_visible'
7
+
8
+ #Test the monkey patches applied to the Object class.
9
+ class ObjectMonkeyPatchTester < Minitest::Test
10
+
11
+ #Track mini-test progress.
12
+ include MinitestVisible
13
+
14
+ #Test that it does NOT foorth_embed.
15
+ def test_foorth_embed_error
16
+ obj = Object.new
17
+ assert_raises(XfOOrth::XfOOrthError) { obj.foorth_embed }
18
+ end
19
+
20
+ #Test for conversion to a boolean.
21
+ def test_to_boolean
22
+ obj = Object.new
23
+ assert_equal(obj.to_foorth_b, true)
24
+ end
25
+
26
+ #Test for conversion to a character.
27
+ def test_to_character
28
+ obj = Object.new
29
+ assert_equal(obj.to_foorth_c, "\x00")
30
+ end
31
+
32
+ #Test for conversion to a number.
33
+ def test_to_number
34
+ obj = Object.new
35
+ assert_equal(obj.to_foorth_n, nil)
36
+ end
37
+
38
+ #Test for conversion to a rational.
39
+ def test_to_rational
40
+ obj = Object.new
41
+ assert_equal(obj.to_foorth_r, nil)
42
+ end
43
+
44
+ #Test the quick fail raise in fOOrth.
45
+ def test_that_exceptions_are_easy_to_raise
46
+ assert_raises(XfOOrth::XfOOrthError) { error('Failure IS an option!') }
47
+ end
48
+
49
+ end
@@ -0,0 +1,57 @@
1
+ # coding: utf-8
2
+
3
+ require_relative '../../lib/fOOrth/monkey_patch/numeric'
4
+ require_relative '../../lib/fOOrth/monkey_patch/rational'
5
+ gem 'minitest'
6
+ require 'minitest/autorun'
7
+ require 'minitest_visible'
8
+
9
+ #Test the monkey patches applied to the Object class.
10
+ class RationalMonkeyPatchTester < Minitest::Test
11
+
12
+ #Track mini-test progress.
13
+ include MinitestVisible
14
+
15
+ #Test that it embeds
16
+ def test_foorth_embed
17
+ rat = '1/2'.to_r
18
+ assert_equal(rat.foorth_embed, "'1/2'.to_r")
19
+ end
20
+
21
+ #Test for conversion to a rational.
22
+ def test_to_rational
23
+ rat = '1/2'.to_r
24
+ assert_equal(rat.to_foorth_r, rat)
25
+ end
26
+
27
+ def test_coerce
28
+ assert_equal(Rational(1,2), Rational.foorth_coerce(0.5))
29
+ assert_equal(Rational(5,1), Rational.foorth_coerce(5))
30
+ assert_equal(Rational(13,10), Rational.foorth_coerce(1.3))
31
+
32
+ assert_raises(XfOOrth::XfOOrthError) do
33
+ Rational.foorth_coerce("apple")
34
+ end
35
+
36
+ assert_raises(XfOOrth::XfOOrthError) do
37
+ Rational.foorth_coerce(nil)
38
+ end
39
+
40
+ rat = '1/2'.to_r
41
+
42
+ assert_equal(Rational(1,2), rat.foorth_coerce(0.5))
43
+ assert_equal(Rational(5,1), rat.foorth_coerce(5))
44
+ assert_equal(Rational(13,10), rat.foorth_coerce(1.3))
45
+
46
+ assert_raises(XfOOrth::XfOOrthError) do
47
+ rat.foorth_coerce("apple")
48
+ end
49
+
50
+ assert_raises(XfOOrth::XfOOrthError) do
51
+ rat.foorth_coerce(nil)
52
+ end
53
+ end
54
+
55
+
56
+
57
+ end
@@ -0,0 +1,53 @@
1
+ # coding: utf-8
2
+
3
+ require_relative '../../lib/fOOrth/monkey_patch/string'
4
+ gem 'minitest'
5
+ require 'minitest/autorun'
6
+ require 'minitest_visible'
7
+
8
+ #Test the monkey patches applied to the Object class.
9
+ class StringMonkeyPatchTester < Minitest::Test
10
+
11
+ #Track mini-test progress.
12
+ include MinitestVisible
13
+
14
+ #Test that it embeds
15
+ def test_foorth_embed
16
+ assert_equal("A big blue cat".foorth_embed, "\"A big blue cat\"")
17
+ assert_equal("The cat's toy".foorth_embed, "\"The cat's toy\"")
18
+ assert_equal('A dog\cat race'.foorth_embed, "\"A dog\\\\cat race\"")
19
+ assert_equal('A dog/cat race'.foorth_embed, "\"A dog/cat race\"")
20
+ end
21
+
22
+ #Test converting to a character.
23
+ def test_to_character
24
+ assert_equal('ABC'.to_foorth_c, 'A')
25
+ assert_equal('A'.to_foorth_c, 'A')
26
+ assert_equal(''.to_foorth_c, nil)
27
+ end
28
+
29
+ #Test converting to a number.
30
+ def test_to_number
31
+ assert_equal('123'.to_foorth_n, 123)
32
+ assert_equal('123.4'.to_foorth_n, 123.4)
33
+ assert_equal('1/2'.to_foorth_n, '1/2'.to_r)
34
+ assert_equal('1+2i'.to_foorth_n, Complex(1,2))
35
+ assert_equal('2i'.to_foorth_n, Complex(0,2))
36
+ assert_equal('1-2i'.to_foorth_n, Complex(1,-2))
37
+ assert_equal('-2i'.to_foorth_n, Complex(0,-2))
38
+ assert_equal('+1+2i'.to_foorth_n, Complex(1,2))
39
+ assert_equal('+2i'.to_foorth_n, Complex(0,2))
40
+ assert_equal('+1-2i'.to_foorth_n, Complex(1,-2))
41
+
42
+ assert_equal('fubar'.to_foorth_n, nil)
43
+ assert_equal('2cats'.to_foorth_n, nil)
44
+ end
45
+
46
+ def test_to_rational
47
+ assert_equal(Rational(1,2), '1/2'.to_foorth_r)
48
+ assert_equal(nil, 'apple'.to_foorth_r)
49
+
50
+ end
51
+
52
+
53
+ end
@@ -0,0 +1,53 @@
1
+ # coding: utf-8
2
+
3
+ require_relative '../lib/fOOrth/monkey_patch'
4
+ require_relative '../lib/fOOrth/symbol_map'
5
+ gem 'minitest'
6
+ require 'minitest/autorun'
7
+ require 'minitest_visible'
8
+
9
+ #Test the monkey patches applied to the Object class.
10
+ class SymbolMapTester < Minitest::Test
11
+
12
+ #Track mini-test progress.
13
+ include MinitestVisible
14
+
15
+ #Test that we can add, map, and un-map names.
16
+ def test_adding_mappings
17
+ XfOOrth::SymbolMap.restart('test_10')
18
+ assert_equal(XfOOrth::SymbolMap.add_entry('foo'), :test_11)
19
+ assert_equal(XfOOrth::SymbolMap.add_entry('bar'), :test_12)
20
+ assert_equal(XfOOrth::SymbolMap.add_entry('foo'), :test_11)
21
+ assert_equal(XfOOrth::SymbolMap.map('foo'), :test_11)
22
+ refute(XfOOrth::SymbolMap.map('goo'))
23
+ assert_equal(XfOOrth::SymbolMap.unmap(:test_11), 'foo')
24
+ assert_equal(XfOOrth::SymbolMap.unmap(:test_12), 'bar')
25
+ refute(XfOOrth::SymbolMap.unmap(:test_ikle))
26
+
27
+ assert_raises(XfOOrth::XfOOrthError) do
28
+ XfOOrth::SymbolMap.add_entry('foo', :evil_method)
29
+ end
30
+ end
31
+
32
+ #Test the special mappings facility
33
+ def test_special_mappings
34
+ assert_equal(XfOOrth::SymbolMap.map('.init'), :foorth_init)
35
+ assert_equal(XfOOrth::SymbolMap.unmap(:foorth_init), '.init')
36
+
37
+ assert_raises(XfOOrth::XfOOrthError) do
38
+ XfOOrth::SymbolMap.add_entry('.init', :evil_method)
39
+ end
40
+
41
+ assert_raises(XfOOrth::XfOOrthError) do
42
+ XfOOrth::SymbolMap.add_entry('.wrong', :foorth_init)
43
+ end
44
+
45
+ end
46
+
47
+ #Test mapping with . and ~
48
+ def test_mapping_with_dot_and_tilde
49
+ XfOOrth::SymbolMap.restart('test_20')
50
+ assert_equal(XfOOrth::SymbolMap.add_entry('.foo'), :test_21)
51
+ assert_equal(XfOOrth::SymbolMap.map('.foo'), :test_21)
52
+ end
53
+ end
metadata ADDED
@@ -0,0 +1,366 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fOOrth
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
+ platform: ruby
6
+ authors:
7
+ - Peter Camilleri
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-03-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: reek
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '5.7'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '5.7'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest_visible
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 0.1.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 0.1.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: rdoc
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 4.0.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 4.0.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: ruby_sscanf
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: 0.2.0
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 0.2.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: format_engine
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: 0.7.0
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 0.7.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: full_clone
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: safe_clone
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: in_array
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: mini_readline
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: 0.3.3
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 0.3.3
181
+ description: An Object Oriented FORTHesque language gem.
182
+ email: peter.c.camilleri@gmail.com
183
+ executables:
184
+ - fOOrth
185
+ extensions: []
186
+ extra_rdoc_files: []
187
+ files:
188
+ - ".gitignore"
189
+ - ".rdoc_options"
190
+ - Gemfile
191
+ - README.md
192
+ - bin/fOOrth
193
+ - demo.rb
194
+ - fOOrth.gemspec
195
+ - fOOrth.reek
196
+ - integration/README.md
197
+ - integration/_FILE_test.foorth
198
+ - integration/array_lib_tests.rb
199
+ - integration/class_lib_tests.rb
200
+ - integration/clone_lib_tests.rb
201
+ - integration/comparison_tests.rb
202
+ - integration/compile_lib_tests.rb
203
+ - integration/ctrl_struct_lib_tests.rb
204
+ - integration/data_ref_lib_tests.rb
205
+ - integration/exception_lib_tests.rb
206
+ - integration/fiber_bundle_tests.rb
207
+ - integration/hash_lib_tests.rb
208
+ - integration/in_stream_test_1.txt
209
+ - integration/load_test_one.foorth
210
+ - integration/load_test_two.foorth
211
+ - integration/numeric_lib_tests.rb
212
+ - integration/object_lib_tests.rb
213
+ - integration/procedure_lib_tests.rb
214
+ - integration/queue_lib_tests.rb
215
+ - integration/stack_lib_tests.rb
216
+ - integration/standard_lib_tests.rb
217
+ - integration/stdio_lib_tests.rb
218
+ - integration/stream_lib_tests.rb
219
+ - integration/string_lib_tests.rb
220
+ - integration/support/foorth_testing.rb
221
+ - integration/thread_lib_tests.rb
222
+ - integration/time_lib_tests.rb
223
+ - integration/vm_lib_tests.rb
224
+ - lib/fOOrth.rb
225
+ - lib/fOOrth/compiler.rb
226
+ - lib/fOOrth/compiler/context.rb
227
+ - lib/fOOrth/compiler/context/locals.rb
228
+ - lib/fOOrth/compiler/context/map_name.rb
229
+ - lib/fOOrth/compiler/context/tags.rb
230
+ - lib/fOOrth/compiler/modes.rb
231
+ - lib/fOOrth/compiler/modes/compiled.rb
232
+ - lib/fOOrth/compiler/modes/deferred.rb
233
+ - lib/fOOrth/compiler/modes/delayed.rb
234
+ - lib/fOOrth/compiler/modes/nested.rb
235
+ - lib/fOOrth/compiler/modes/suspend.rb
236
+ - lib/fOOrth/compiler/parser.rb
237
+ - lib/fOOrth/compiler/parser/get_string.rb
238
+ - lib/fOOrth/compiler/parser/normal.rb
239
+ - lib/fOOrth/compiler/parser/skip.rb
240
+ - lib/fOOrth/compiler/parser/special.rb
241
+ - lib/fOOrth/compiler/process.rb
242
+ - lib/fOOrth/compiler/process/generate.rb
243
+ - lib/fOOrth/compiler/process/get_token.rb
244
+ - lib/fOOrth/compiler/process/procedure.rb
245
+ - lib/fOOrth/compiler/process/string.rb
246
+ - lib/fOOrth/compiler/source.rb
247
+ - lib/fOOrth/compiler/source/console.rb
248
+ - lib/fOOrth/compiler/source/file_source.rb
249
+ - lib/fOOrth/compiler/source/read_point.rb
250
+ - lib/fOOrth/compiler/source/string_source.rb
251
+ - lib/fOOrth/compiler/token.rb
252
+ - lib/fOOrth/compiler/word_specs.rb
253
+ - lib/fOOrth/core.rb
254
+ - lib/fOOrth/core/class.rb
255
+ - lib/fOOrth/core/object.rb
256
+ - lib/fOOrth/core/virtual_machine.rb
257
+ - lib/fOOrth/debug.rb
258
+ - lib/fOOrth/debug/context_dump.rb
259
+ - lib/fOOrth/debug/dbg_puts.rb
260
+ - lib/fOOrth/debug/display_abort.rb
261
+ - lib/fOOrth/debug/vm_dump.rb
262
+ - lib/fOOrth/initialize.rb
263
+ - lib/fOOrth/interpreter.rb
264
+ - lib/fOOrth/interpreter/add_to_hash.rb
265
+ - lib/fOOrth/interpreter/data_stack.rb
266
+ - lib/fOOrth/interpreter/do_loop.rb
267
+ - lib/fOOrth/interpreter/squash.rb
268
+ - lib/fOOrth/library.rb
269
+ - lib/fOOrth/library/array_library.rb
270
+ - lib/fOOrth/library/bundle_library.rb
271
+ - lib/fOOrth/library/class_library.rb
272
+ - lib/fOOrth/library/clone_library.rb
273
+ - lib/fOOrth/library/command_library.rb
274
+ - lib/fOOrth/library/compile_library.rb
275
+ - lib/fOOrth/library/complex_library.rb
276
+ - lib/fOOrth/library/ctrl_struct_library.rb
277
+ - lib/fOOrth/library/data_ref_library.rb
278
+ - lib/fOOrth/library/duration/arithmetic.rb
279
+ - lib/fOOrth/library/duration/formatter.rb
280
+ - lib/fOOrth/library/duration/intervals.rb
281
+ - lib/fOOrth/library/duration/make.rb
282
+ - lib/fOOrth/library/duration_library.rb
283
+ - lib/fOOrth/library/fiber_library.rb
284
+ - lib/fOOrth/library/hash_library.rb
285
+ - lib/fOOrth/library/in_stream_library.rb
286
+ - lib/fOOrth/library/integer_library.rb
287
+ - lib/fOOrth/library/mutex_library.rb
288
+ - lib/fOOrth/library/numeric_library.rb
289
+ - lib/fOOrth/library/object_library.rb
290
+ - lib/fOOrth/library/other_value_types_library.rb
291
+ - lib/fOOrth/library/out_stream_library.rb
292
+ - lib/fOOrth/library/procedure_library.rb
293
+ - lib/fOOrth/library/queue_library.rb
294
+ - lib/fOOrth/library/rational_library.rb
295
+ - lib/fOOrth/library/stack_library.rb
296
+ - lib/fOOrth/library/stdio_library.rb
297
+ - lib/fOOrth/library/string_library.rb
298
+ - lib/fOOrth/library/stubs.rb
299
+ - lib/fOOrth/library/sync_bundle_library.rb
300
+ - lib/fOOrth/library/thread_library.rb
301
+ - lib/fOOrth/library/time_library.rb
302
+ - lib/fOOrth/library/vm_library.rb
303
+ - lib/fOOrth/main.rb
304
+ - lib/fOOrth/monkey_patch.rb
305
+ - lib/fOOrth/monkey_patch/complex.rb
306
+ - lib/fOOrth/monkey_patch/exceptions.rb
307
+ - lib/fOOrth/monkey_patch/false.rb
308
+ - lib/fOOrth/monkey_patch/float.rb
309
+ - lib/fOOrth/monkey_patch/integer.rb
310
+ - lib/fOOrth/monkey_patch/nil.rb
311
+ - lib/fOOrth/monkey_patch/numeric.rb
312
+ - lib/fOOrth/monkey_patch/object.rb
313
+ - lib/fOOrth/monkey_patch/rational.rb
314
+ - lib/fOOrth/monkey_patch/string.rb
315
+ - lib/fOOrth/symbol_map.rb
316
+ - lib/fOOrth/version.rb
317
+ - license.txt
318
+ - rakefile.rb
319
+ - reek.txt
320
+ - sire.rb
321
+ - t.txt
322
+ - test.foorth
323
+ - tests/compiler/context_tests.rb
324
+ - tests/compiler/file_source_test_one.txt
325
+ - tests/compiler/file_source_test_three.txt
326
+ - tests/compiler/file_source_test_two.txt
327
+ - tests/compiler/file_source_tests.rb
328
+ - tests/compiler/mode_tests.rb
329
+ - tests/compiler/parser_tests.rb
330
+ - tests/compiler/spec_tests.rb
331
+ - tests/compiler/string_source_tests.rb
332
+ - tests/core_tests.rb
333
+ - tests/interpreter/data_stack_tests.rb
334
+ - tests/monkey_patch/coerce_test.rb
335
+ - tests/monkey_patch/complex_test.rb
336
+ - tests/monkey_patch/numeric_test.rb
337
+ - tests/monkey_patch/object_test.rb
338
+ - tests/monkey_patch/rational_test.rb
339
+ - tests/monkey_patch/string_test.rb
340
+ - tests/symbol_map_tests.rb
341
+ homepage: http://teuthida-technologies.com/
342
+ licenses:
343
+ - MIT
344
+ metadata: {}
345
+ post_install_message:
346
+ rdoc_options: []
347
+ require_paths:
348
+ - lib
349
+ required_ruby_version: !ruby/object:Gem::Requirement
350
+ requirements:
351
+ - - ">="
352
+ - !ruby/object:Gem::Version
353
+ version: 1.9.3
354
+ required_rubygems_version: !ruby/object:Gem::Requirement
355
+ requirements:
356
+ - - ">="
357
+ - !ruby/object:Gem::Version
358
+ version: '0'
359
+ requirements: []
360
+ rubyforge_project:
361
+ rubygems_version: 2.2.2
362
+ signing_key:
363
+ specification_version: 4
364
+ summary: FNF == fOOrth is Not FORTH.
365
+ test_files: []
366
+ has_rdoc: