hilbert 0.0.2700000

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +15 -0
  2. data/.coveralls.yml +2 -0
  3. data/.gitignore +23 -0
  4. data/.rubocop.yml +25 -0
  5. data/.travis.yml +5 -0
  6. data/Gemfile +9 -0
  7. data/Guardfile +33 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +159 -0
  10. data/Rakefile +20 -0
  11. data/bin/qlang +29 -0
  12. data/core/Q/Lexer.hs +9 -0
  13. data/core/Q/Parser.hs +9 -0
  14. data/core/Q.hs +19 -0
  15. data/ext/qlang/QMatrix/q_matrix.c +0 -0
  16. data/ext/qlang/extconf.rb +3 -0
  17. data/ext/qlang/qlang.c +65 -0
  18. data/ext/qlang/qlang.h +6 -0
  19. data/legacy_rspec/langs/Haskell/ex1_after.hs +74 -0
  20. data/legacy_rspec/langs/Haskell/ex1_before.hs +74 -0
  21. data/legacy_rspec/langs/Python/ex1_after.py +93 -0
  22. data/legacy_rspec/langs/Python/ex1_before.py +95 -0
  23. data/legacy_rspec/langs/R/ex1_after.R +89 -0
  24. data/legacy_rspec/langs/R/ex1_before.R +89 -0
  25. data/legacy_rspec/objects/list_spec.rb +31 -0
  26. data/legacy_rspec/objects/matrix_spec.rb +55 -0
  27. data/legacy_rspec/objects/vector_spec.rb +47 -0
  28. data/lib/qlang/api/func_api.rb +17 -0
  29. data/lib/qlang/api/integral_api.rb +16 -0
  30. data/lib/qlang/api/limit_api.rb +22 -0
  31. data/lib/qlang/api/list_api.rb +16 -0
  32. data/lib/qlang/api/matrix_api.rb +20 -0
  33. data/lib/qlang/api/sigma_api.rb +16 -0
  34. data/lib/qlang/api/vector_api.rb +19 -0
  35. data/lib/qlang/api.rb +23 -0
  36. data/lib/qlang/exec.rb +64 -0
  37. data/lib/qlang/iq.rb +45 -0
  38. data/lib/qlang/lexer/base.rb +107 -0
  39. data/lib/qlang/lexer/formula_lexer.rb +20 -0
  40. data/lib/qlang/lexer/main_lexer.rb +34 -0
  41. data/lib/qlang/lexer/tokens.rb +94 -0
  42. data/lib/qlang/lexer.rb +11 -0
  43. data/lib/qlang/meta_info.rb +27 -0
  44. data/lib/qlang/parser/base.rb +7 -0
  45. data/lib/qlang/parser/formula_parser.rb +36 -0
  46. data/lib/qlang/parser/func_parser.rb +15 -0
  47. data/lib/qlang/parser/integral_parser.rb +15 -0
  48. data/lib/qlang/parser/limit_parser.rb +16 -0
  49. data/lib/qlang/parser/list_parser.rb +12 -0
  50. data/lib/qlang/parser/matrix_parser.rb +17 -0
  51. data/lib/qlang/parser/sigma_parser.rb +17 -0
  52. data/lib/qlang/parser/vector_parser.rb +13 -0
  53. data/lib/qlang/parser.rb +101 -0
  54. data/lib/qlang/utils/langs.yml +7 -0
  55. data/lib/qlang/utils/ruby_ext.rb +54 -0
  56. data/lib/qlang/version.rb +3 -0
  57. data/lib/qlang.rb +37 -0
  58. data/qlang.gemspec +28 -0
  59. data/test/internal/test_tokens.rb +35 -0
  60. data/test/interpreter/base.rb +17 -0
  61. data/test/interpreter/test_differential.rb +43 -0
  62. data/test/interpreter/test_function.rb +44 -0
  63. data/test/interpreter/test_general.rb +12 -0
  64. data/test/interpreter/test_integral.rb +38 -0
  65. data/test/interpreter/test_limit.rb +37 -0
  66. data/test/interpreter/test_matrix.rb +70 -0
  67. data/test/interpreter/test_sigma.rb +25 -0
  68. data/test/interpreter/test_vector.rb +28 -0
  69. data/test/langs/test_r.rb +32 -0
  70. data/test/langs/test_ruby.rb +9 -0
  71. data/test/minitest_helper.rb +8 -0
  72. data/test/q_matrix/test_q_matrix.rb +13 -0
  73. data/test/test_qlang.rb +24 -0
  74. metadata +203 -0
metadata ADDED
@@ -0,0 +1,203 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hilbert
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2700000
5
+ platform: ruby
6
+ authors:
7
+ - gogotanaka
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-11-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: dydx
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.41421
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.41421
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
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: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake-compiler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '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'
83
+ description: Enjoy MATH!
84
+ email:
85
+ - mail@tanakakazuki.com
86
+ executables:
87
+ - qlang
88
+ extensions:
89
+ - ext/qlang/extconf.rb
90
+ extra_rdoc_files: []
91
+ files:
92
+ - .coveralls.yml
93
+ - .gitignore
94
+ - .rubocop.yml
95
+ - .travis.yml
96
+ - Gemfile
97
+ - Guardfile
98
+ - LICENSE.txt
99
+ - README.md
100
+ - Rakefile
101
+ - bin/qlang
102
+ - core/Q.hs
103
+ - core/Q/Lexer.hs
104
+ - core/Q/Parser.hs
105
+ - ext/qlang/QMatrix/q_matrix.c
106
+ - ext/qlang/extconf.rb
107
+ - ext/qlang/qlang.c
108
+ - ext/qlang/qlang.h
109
+ - legacy_rspec/langs/Haskell/ex1_after.hs
110
+ - legacy_rspec/langs/Haskell/ex1_before.hs
111
+ - legacy_rspec/langs/Python/ex1_after.py
112
+ - legacy_rspec/langs/Python/ex1_before.py
113
+ - legacy_rspec/langs/R/ex1_after.R
114
+ - legacy_rspec/langs/R/ex1_before.R
115
+ - legacy_rspec/objects/list_spec.rb
116
+ - legacy_rspec/objects/matrix_spec.rb
117
+ - legacy_rspec/objects/vector_spec.rb
118
+ - lib/qlang.rb
119
+ - lib/qlang/api.rb
120
+ - lib/qlang/api/func_api.rb
121
+ - lib/qlang/api/integral_api.rb
122
+ - lib/qlang/api/limit_api.rb
123
+ - lib/qlang/api/list_api.rb
124
+ - lib/qlang/api/matrix_api.rb
125
+ - lib/qlang/api/sigma_api.rb
126
+ - lib/qlang/api/vector_api.rb
127
+ - lib/qlang/exec.rb
128
+ - lib/qlang/iq.rb
129
+ - lib/qlang/lexer.rb
130
+ - lib/qlang/lexer/base.rb
131
+ - lib/qlang/lexer/formula_lexer.rb
132
+ - lib/qlang/lexer/main_lexer.rb
133
+ - lib/qlang/lexer/tokens.rb
134
+ - lib/qlang/meta_info.rb
135
+ - lib/qlang/parser.rb
136
+ - lib/qlang/parser/base.rb
137
+ - lib/qlang/parser/formula_parser.rb
138
+ - lib/qlang/parser/func_parser.rb
139
+ - lib/qlang/parser/integral_parser.rb
140
+ - lib/qlang/parser/limit_parser.rb
141
+ - lib/qlang/parser/list_parser.rb
142
+ - lib/qlang/parser/matrix_parser.rb
143
+ - lib/qlang/parser/sigma_parser.rb
144
+ - lib/qlang/parser/vector_parser.rb
145
+ - lib/qlang/utils/langs.yml
146
+ - lib/qlang/utils/ruby_ext.rb
147
+ - lib/qlang/version.rb
148
+ - qlang.gemspec
149
+ - test/internal/test_tokens.rb
150
+ - test/interpreter/base.rb
151
+ - test/interpreter/test_differential.rb
152
+ - test/interpreter/test_function.rb
153
+ - test/interpreter/test_general.rb
154
+ - test/interpreter/test_integral.rb
155
+ - test/interpreter/test_limit.rb
156
+ - test/interpreter/test_matrix.rb
157
+ - test/interpreter/test_sigma.rb
158
+ - test/interpreter/test_vector.rb
159
+ - test/langs/test_r.rb
160
+ - test/langs/test_ruby.rb
161
+ - test/minitest_helper.rb
162
+ - test/q_matrix/test_q_matrix.rb
163
+ - test/test_qlang.rb
164
+ homepage: http://q-language.org/
165
+ licenses:
166
+ - MIT
167
+ metadata: {}
168
+ post_install_message:
169
+ rdoc_options: []
170
+ require_paths:
171
+ - lib
172
+ required_ruby_version: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ required_rubygems_version: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ requirements: []
183
+ rubyforge_project:
184
+ rubygems_version: 2.4.2
185
+ signing_key:
186
+ specification_version: 4
187
+ summary: Enjoy MATH!
188
+ test_files:
189
+ - test/internal/test_tokens.rb
190
+ - test/interpreter/base.rb
191
+ - test/interpreter/test_differential.rb
192
+ - test/interpreter/test_function.rb
193
+ - test/interpreter/test_general.rb
194
+ - test/interpreter/test_integral.rb
195
+ - test/interpreter/test_limit.rb
196
+ - test/interpreter/test_matrix.rb
197
+ - test/interpreter/test_sigma.rb
198
+ - test/interpreter/test_vector.rb
199
+ - test/langs/test_r.rb
200
+ - test/langs/test_ruby.rb
201
+ - test/minitest_helper.rb
202
+ - test/q_matrix/test_q_matrix.rb
203
+ - test/test_qlang.rb