cauldron 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (409) hide show
  1. data/.gitignore +51 -0
  2. data/Gemfile +6 -3
  3. data/Gemfile.lock +16 -3
  4. data/Rakefile +94 -92
  5. data/VERSION +1 -1
  6. data/bin/cauldron +2 -2
  7. data/cauldron.gemspec +15 -451
  8. data/features/cauldron_new_approach.feature +46 -0
  9. data/features/step_definitions/cauldron_steps.rb +11 -0
  10. data/features/step_definitions/terminal_steps.rb +0 -2
  11. data/features/support/env.rb +11 -1
  12. data/features/support/hooks.rb +5 -0
  13. data/lib/cauldron.rb +13 -7
  14. data/lib/cauldron/array_reverse_operator.rb +39 -0
  15. data/lib/cauldron/concat_operator.rb +34 -0
  16. data/lib/cauldron/if_relationship.rb +37 -0
  17. data/lib/cauldron/numeric_operator.rb +45 -0
  18. data/lib/cauldron/pot.rb +54 -162
  19. data/lib/cauldron/relationship.rb +5 -0
  20. data/lib/cauldron/terminal.rb +4 -60
  21. data/lib/cauldron/version.rb +3 -0
  22. data/lib/core/string.rb +21 -0
  23. data/sandbox.rb +27 -6
  24. data/spec/cauldron/array_reverse_operator_spec.rb +59 -0
  25. data/spec/cauldron/concat_operator_spec.rb +89 -0
  26. data/spec/cauldron/if_relationship_spec.rb +25 -0
  27. data/spec/cauldron/numeric_operator_spec.rb +70 -0
  28. data/spec/cauldron/pot_spec.rb +81 -151
  29. data/spec/cauldron/terminal_spec.rb +1 -39
  30. data/spec/examples/adding_if_statement.yml +13 -0
  31. data/spec/examples/simple_head_theory.txt +13 -0
  32. data/spec/spec_helper.rb +1 -14
  33. data/tasks/theory_tasks.rake +207 -207
  34. metadata +92 -532
  35. data/cauldron/.autotest +0 -23
  36. data/cauldron/History.txt +0 -6
  37. data/cauldron/Manifest.txt +0 -8
  38. data/cauldron/README.txt +0 -57
  39. data/cauldron/Rakefile +0 -27
  40. data/cauldron/bin/cauldron +0 -3
  41. data/cauldron/lib/cauldron.rb +0 -3
  42. data/cauldron/test/test_cauldron.rb +0 -8
  43. data/features/cauldron_example_cases.feature +0 -13
  44. data/features/cauldron_generates_runtime_method.feature +0 -16
  45. data/features/cauldron_generates_single_paramter_methods.feature +0 -25
  46. data/features/cauldron_interactive_start_terminal.feature +0 -17
  47. data/features/cauldron_quit_terminal.feature +0 -9
  48. data/features/cauldron_start_terminal.feature +0 -12
  49. data/features/support/method_1.example +0 -3
  50. data/features/support/method_2.example +0 -6
  51. data/lib/Chain.rb +0 -771
  52. data/lib/ChainMapping.rb +0 -172
  53. data/lib/CodeHandler.rb +0 -513
  54. data/lib/Mapping.rb +0 -27
  55. data/lib/MappingValues.rb +0 -24
  56. data/lib/PartialChain.rb +0 -253
  57. data/lib/Theory.rb +0 -295
  58. data/lib/UnifiedChain.rb +0 -351
  59. data/lib/cauldron/conversion.rb +0 -15
  60. data/lib/cauldron/demos.rb +0 -280
  61. data/lib/cauldron/env.rb +0 -1
  62. data/lib/cauldron/sexp2cauldron.rb +0 -139
  63. data/lib/cauldron/theory_factory.rb +0 -10
  64. data/lib/cauldron/util/home.rb +0 -21
  65. data/lib/cauldron/util/saver.rb +0 -45
  66. data/lib/core/ActsAsCode.rb +0 -25
  67. data/lib/core/BlockToken.rb +0 -33
  68. data/lib/core/CCall.rb +0 -7
  69. data/lib/core/CTestCase.rb +0 -27
  70. data/lib/core/ClassMethodCallContainer.rb +0 -58
  71. data/lib/core/Container.rb +0 -95
  72. data/lib/core/InstanceCallContainer.rb +0 -298
  73. data/lib/core/MethodUsage.rb +0 -65
  74. data/lib/core/PrintVariables.rb +0 -25
  75. data/lib/core/TheoryGenerator.rb +0 -753
  76. data/lib/core/Token.rb +0 -7
  77. data/lib/core/assignment/Assignment.rb +0 -18
  78. data/lib/core/assignment/Equal.rb +0 -39
  79. data/lib/core/assignment/Equivalent.rb +0 -20
  80. data/lib/core/assignment/NotEqual.rb +0 -14
  81. data/lib/core/call_container/CallContainer.rb +0 -72
  82. data/lib/core/class_method_call/New.rb +0 -15
  83. data/lib/core/class_method_call/RuntimeClassMethodCall.rb +0 -31
  84. data/lib/core/declaration/Declaration.rb +0 -16
  85. data/lib/core/declaration/LiteralDeclaration.rb +0 -47
  86. data/lib/core/declaration/VariableDeclaration.rb +0 -59
  87. data/lib/core/instance_call/ArrayEach.rb +0 -23
  88. data/lib/core/instance_call/ArrayLength.rb +0 -15
  89. data/lib/core/instance_call/Chop.rb +0 -19
  90. data/lib/core/instance_call/Copy.rb +0 -22
  91. data/lib/core/instance_call/DeclaredVariable.rb +0 -18
  92. data/lib/core/instance_call/InstanceCall.rb +0 -77
  93. data/lib/core/instance_call/Params.rb +0 -15
  94. data/lib/core/instance_call/Push.rb +0 -20
  95. data/lib/core/instance_call/StringLength.rb +0 -32
  96. data/lib/core/instance_call/Times.rb +0 -20
  97. data/lib/core/instance_call/instance_calls.rb +0 -176
  98. data/lib/core/instance_call/length_equal.rb +0 -15
  99. data/lib/core/kernal/EvalCall.rb +0 -15
  100. data/lib/core/kernal/LocalVariablesCall.rb +0 -15
  101. data/lib/core/literal/Literal.rb +0 -111
  102. data/lib/core/literal/Raw.rb +0 -23
  103. data/lib/core/literal/RuntimeMethodLiteral.rb +0 -21
  104. data/lib/core/literal/StatementLiteral.rb +0 -28
  105. data/lib/core/method_call/AvailableVariablesCall.rb +0 -25
  106. data/lib/core/method_call/ClassCall.rb +0 -33
  107. data/lib/core/method_call/DefCall.rb +0 -72
  108. data/lib/core/method_call/EvaluateClassCall.rb +0 -29
  109. data/lib/core/method_call/MethodNameCall.rb +0 -27
  110. data/lib/core/method_call/ToDeclarationCall.rb +0 -15
  111. data/lib/core/requirement/Requirement.rb +0 -292
  112. data/lib/core/runtime_class/ArrayClass.rb +0 -19
  113. data/lib/core/runtime_class/ClassCallClass.rb +0 -23
  114. data/lib/core/runtime_class/ClassEvaluationClass.rb +0 -19
  115. data/lib/core/runtime_class/ClassName.rb +0 -18
  116. data/lib/core/runtime_class/DefCallClass.rb +0 -21
  117. data/lib/core/runtime_class/EqualClass.rb +0 -19
  118. data/lib/core/runtime_class/FixnumClass.rb +0 -15
  119. data/lib/core/runtime_class/InstanceCallClass.rb +0 -19
  120. data/lib/core/runtime_class/InstanceCallContainerClass.rb +0 -16
  121. data/lib/core/runtime_class/InstanceClassCallClass.rb +0 -19
  122. data/lib/core/runtime_class/LiteralClass.rb +0 -19
  123. data/lib/core/runtime_class/MethodParameterClass.rb +0 -27
  124. data/lib/core/runtime_class/MethodUsageClass.rb +0 -27
  125. data/lib/core/runtime_class/RequirementClass.rb +0 -19
  126. data/lib/core/runtime_class/ReturnClass.rb +0 -21
  127. data/lib/core/runtime_class/RuntimeClass.rb +0 -30
  128. data/lib/core/runtime_class/RuntimeClassClass.rb +0 -19
  129. data/lib/core/runtime_class/RuntimeMethodClass.rb +0 -34
  130. data/lib/core/runtime_class/StatementClass.rb +0 -53
  131. data/lib/core/runtime_class/StringClass.rb +0 -23
  132. data/lib/core/runtime_class/StringLengthClass.rb +0 -19
  133. data/lib/core/runtime_class/StringVariableClass.rb +0 -19
  134. data/lib/core/runtime_class/ThisClass.rb +0 -15
  135. data/lib/core/runtime_class/UnknownClass.rb +0 -23
  136. data/lib/core/runtime_class/class_names.rb +0 -95
  137. data/lib/core/runtime_class/runtime_class.rb +0 -123
  138. data/lib/core/runtime_method/ActsAsRuntimeMethod.rb +0 -293
  139. data/lib/core/runtime_method/ParametersContainer.rb +0 -29
  140. data/lib/core/runtime_method/RealisedRuntimeMethod.rb +0 -94
  141. data/lib/core/runtime_method/RuntimeMethod.rb +0 -814
  142. data/lib/core/runtime_method/WriteParameters.rb +0 -35
  143. data/lib/core/statement/ActsAsStatement.rb +0 -20
  144. data/lib/core/statement/ArrayAccess.rb +0 -122
  145. data/lib/core/statement/BlockStatement.rb +0 -348
  146. data/lib/core/statement/DeclarationStatement.rb +0 -19
  147. data/lib/core/statement/HackStatement.rb +0 -25
  148. data/lib/core/statement/HashAccess.rb +0 -18
  149. data/lib/core/statement/OpenStatement.rb +0 -178
  150. data/lib/core/statement/RealisedStatement.rb +0 -5
  151. data/lib/core/statement/SingleLineBlockStatement.rb +0 -39
  152. data/lib/core/statement/Statement.rb +0 -1091
  153. data/lib/core/statement/StatementGroup.rb +0 -157
  154. data/lib/core/statement/StatementStructure2.rb +0 -224
  155. data/lib/core/statement/TheoryStatement.rb +0 -68
  156. data/lib/core/statement/TopologicalStatements.rb +0 -34
  157. data/lib/core/syntax/Addition.rb +0 -26
  158. data/lib/core/syntax/BlockContainer.rb +0 -102
  159. data/lib/core/syntax/Boolean.rb +0 -15
  160. data/lib/core/syntax/Code.rb +0 -11
  161. data/lib/core/syntax/Do.rb +0 -20
  162. data/lib/core/syntax/False.rb +0 -12
  163. data/lib/core/syntax/If.rb +0 -36
  164. data/lib/core/syntax/Nil.rb +0 -15
  165. data/lib/core/syntax/Return.rb +0 -33
  166. data/lib/core/syntax/Subtract.rb +0 -19
  167. data/lib/core/syntax/This.rb +0 -40
  168. data/lib/core/syntax/True.rb +0 -20
  169. data/lib/core/syntax/syntax.rb +0 -24
  170. data/lib/core/tracking/ActsAsTrackable.rb +0 -65
  171. data/lib/core/tracking/History.rb +0 -167
  172. data/lib/core/tracking/RuntimeTrackingMethod.rb +0 -32
  173. data/lib/core/tracking/Step.rb +0 -52
  174. data/lib/core/variable/ArrayVariable.rb +0 -76
  175. data/lib/core/variable/BaseVariable.rb +0 -152
  176. data/lib/core/variable/BlockVariable.rb +0 -92
  177. data/lib/core/variable/FixnumVariable.rb +0 -35
  178. data/lib/core/variable/HistoryVariable.rb +0 -8
  179. data/lib/core/variable/MethodParameter.rb +0 -179
  180. data/lib/core/variable/MethodUsageVariable.rb +0 -60
  181. data/lib/core/variable/NilVariable.rb +0 -29
  182. data/lib/core/variable/RuntimeMethodParameter.rb +0 -67
  183. data/lib/core/variable/StatementVariable.rb +0 -72
  184. data/lib/core/variable/StepVariable.rb +0 -7
  185. data/lib/core/variable/StringVariable.rb +0 -46
  186. data/lib/core/variable/TypeVariable.rb +0 -72
  187. data/lib/core/variable/Unknown.rb +0 -102
  188. data/lib/core/variable/UnknownVariable.rb +0 -29
  189. data/lib/core/variable/Variable.rb +0 -70
  190. data/lib/core/variable/VariableContainer.rb +0 -28
  191. data/lib/core/variable/VariableIncluded.rb +0 -27
  192. data/lib/core/variable/VariableReference.rb +0 -85
  193. data/lib/error/FailedToFindStatementContainerError.rb +0 -7
  194. data/lib/error/FailedToFindStatementError.rb +0 -7
  195. data/lib/error/FailedToFindVariableError.rb +0 -7
  196. data/lib/error/FailedToLiteraliseError.rb +0 -7
  197. data/lib/error/FailedVariableMatch.rb +0 -7
  198. data/lib/error/ImproperStatementUsageError.rb +0 -7
  199. data/lib/error/IncompatiableRequirementsError.rb +0 -7
  200. data/lib/error/InvalidStatementError.rb +0 -7
  201. data/lib/error/MethodSizeError.rb +0 -7
  202. data/lib/error/RuntimeSyntaxError.rb +0 -7
  203. data/lib/error/UnexpectedStatementTypeError.rb +0 -7
  204. data/lib/error/UnknownStatementType.rb +0 -7
  205. data/lib/error/UnliteralisableError.rb +0 -7
  206. data/lib/implemented_chain.rb +0 -35
  207. data/lib/intrinsic/IntrinsicLastRuntimeMethod.rb +0 -20
  208. data/lib/intrinsic/IntrinsicLiteral.rb +0 -26
  209. data/lib/intrinsic/IntrinsicObject.rb +0 -22
  210. data/lib/intrinsic/IntrinsicRuntimeMethod.rb +0 -27
  211. data/lib/intrinsic/IntrinsicTestCases.rb +0 -17
  212. data/lib/logger/StandardLogger.rb +0 -62
  213. data/lib/required.rb +0 -222
  214. data/lib/ruby_code/Array.rb +0 -95
  215. data/lib/ruby_code/Fixnum.rb +0 -39
  216. data/lib/ruby_code/Hash.rb +0 -25
  217. data/lib/ruby_code/NilClass.rb +0 -19
  218. data/lib/ruby_code/Object.rb +0 -24
  219. data/lib/ruby_code/String.rb +0 -63
  220. data/lib/ruby_code/Symbol.rb +0 -7
  221. data/lib/standard_library/Tasks.rb +0 -12
  222. data/lib/theories.rb +0 -166
  223. data/lib/theory/ActionImplementation.rb +0 -17
  224. data/lib/theory/TheoryAction.rb +0 -100
  225. data/lib/theory/TheoryChainValidator.rb +0 -103
  226. data/lib/theory/TheoryComponent.rb +0 -59
  227. data/lib/theory/TheoryConnector.rb +0 -756
  228. data/lib/theory/TheoryDependent.rb +0 -135
  229. data/lib/theory/TheoryImplementation.rb +0 -75
  230. data/lib/theory/TheoryResult.rb +0 -131
  231. data/lib/theory/TheoryVariable.rb +0 -63
  232. data/lib/theory/theory_collection.rb +0 -62
  233. data/lib/util/ClassEvaluation.rb +0 -44
  234. data/lib/util/CodeEvaluation.rb +0 -39
  235. data/lib/util/DeclarationStatementEvaluation.rb +0 -32
  236. data/lib/util/MethodEvaluation.rb +0 -49
  237. data/lib/util/MethodTester.rb +0 -71
  238. data/lib/util/MethodValidation.rb +0 -149
  239. data/lib/util/MethodWriter.rb +0 -66
  240. data/lib/util/Parser.rb +0 -305
  241. data/lib/util/StatementCheck.rb +0 -44
  242. data/lib/util/StringToTheory.rb +0 -142
  243. data/lib/util/System.rb +0 -8
  244. data/spec/cauldron/chain_spec.rb +0 -24
  245. data/spec/cauldron/demos_spec.rb +0 -30
  246. data/spec/cauldron/runtime_method_spec.rb +0 -92
  247. data/spec/cauldron/saver_spec.rb +0 -45
  248. data/spec/cauldron/sexp_2_cauldron_spec.rb +0 -118
  249. data/spec/cauldron/theory_action_spec.rb +0 -25
  250. data/spec/cauldron/theory_connector_spec.rb +0 -52
  251. data/spec/cauldron/theory_spec.rb +0 -59
  252. data/spec/cauldron/unified_chain_spec.rb +0 -140
  253. data/test/fixtures/chains/1/declaration.txt +0 -26
  254. data/test/fixtures/chains/1/dump +0 -0
  255. data/test/fixtures/chains/2/declaration.txt +0 -26
  256. data/test/fixtures/chains/2/dump +0 -0
  257. data/test/fixtures/chains/3/declaration.txt +0 -26
  258. data/test/fixtures/chains/3/dump +0 -0
  259. data/test/fixtures/implementation_results/0/declaration.txt +0 -3
  260. data/test/fixtures/implementation_results/0/dump +0 -0
  261. data/test/fixtures/theories/0/declaration.txt +0 -9
  262. data/test/fixtures/theories/0/desc +0 -10
  263. data/test/fixtures/theories/0/dump +0 -0
  264. data/test/fixtures/theories/1/declaration.txt +0 -15
  265. data/test/fixtures/theories/1/desc +0 -11
  266. data/test/fixtures/theories/1/dump +0 -0
  267. data/test/fixtures/theories/10/declaration.txt +0 -23
  268. data/test/fixtures/theories/10/desc +0 -17
  269. data/test/fixtures/theories/10/dump +0 -0
  270. data/test/fixtures/theories/11/declaration.txt +0 -20
  271. data/test/fixtures/theories/11/desc +0 -14
  272. data/test/fixtures/theories/11/dump +0 -0
  273. data/test/fixtures/theories/12/declaration.txt +0 -18
  274. data/test/fixtures/theories/12/desc +0 -12
  275. data/test/fixtures/theories/12/dump +0 -0
  276. data/test/fixtures/theories/13/declaration.txt +0 -24
  277. data/test/fixtures/theories/13/desc +0 -20
  278. data/test/fixtures/theories/13/dump +0 -0
  279. data/test/fixtures/theories/14/declaration.txt +0 -26
  280. data/test/fixtures/theories/14/desc +0 -20
  281. data/test/fixtures/theories/14/dump +0 -0
  282. data/test/fixtures/theories/15/declaration.txt +0 -20
  283. data/test/fixtures/theories/15/desc +0 -14
  284. data/test/fixtures/theories/15/dump +0 -0
  285. data/test/fixtures/theories/16/declaration.txt +0 -30
  286. data/test/fixtures/theories/16/desc +0 -14
  287. data/test/fixtures/theories/16/dump +0 -0
  288. data/test/fixtures/theories/17/declaration.txt +0 -25
  289. data/test/fixtures/theories/17/desc +0 -11
  290. data/test/fixtures/theories/17/dump +0 -0
  291. data/test/fixtures/theories/18/declaration.txt +0 -23
  292. data/test/fixtures/theories/18/desc +0 -11
  293. data/test/fixtures/theories/18/dump +0 -0
  294. data/test/fixtures/theories/19/declaration.txt +0 -23
  295. data/test/fixtures/theories/19/desc +0 -11
  296. data/test/fixtures/theories/19/dump +0 -0
  297. data/test/fixtures/theories/2/declaration.txt +0 -12
  298. data/test/fixtures/theories/2/desc +0 -10
  299. data/test/fixtures/theories/2/dump +0 -0
  300. data/test/fixtures/theories/20/declaration.txt +0 -23
  301. data/test/fixtures/theories/20/desc +0 -17
  302. data/test/fixtures/theories/20/dump +0 -0
  303. data/test/fixtures/theories/3/declaration.txt +0 -19
  304. data/test/fixtures/theories/3/desc +0 -11
  305. data/test/fixtures/theories/3/dump +0 -0
  306. data/test/fixtures/theories/4/declaration.txt +0 -11
  307. data/test/fixtures/theories/4/desc +0 -11
  308. data/test/fixtures/theories/4/dump +0 -0
  309. data/test/fixtures/theories/5/declaration.txt +0 -6
  310. data/test/fixtures/theories/5/desc +0 -9
  311. data/test/fixtures/theories/5/dump +0 -0
  312. data/test/fixtures/theories/6/declaration.txt +0 -13
  313. data/test/fixtures/theories/6/desc +0 -11
  314. data/test/fixtures/theories/6/dump +0 -0
  315. data/test/fixtures/theories/7/declaration.txt +0 -19
  316. data/test/fixtures/theories/7/desc +0 -11
  317. data/test/fixtures/theories/7/dump +0 -0
  318. data/test/fixtures/theories/8/declaration.txt +0 -21
  319. data/test/fixtures/theories/8/desc +0 -11
  320. data/test/fixtures/theories/8/dump +0 -0
  321. data/test/fixtures/theories/9/declaration.txt +0 -24
  322. data/test/fixtures/theories/9/desc +0 -20
  323. data/test/fixtures/theories/9/dump +0 -0
  324. data/test/fixtures/theory_implementations/0/declaration.txt +0 -11
  325. data/test/fixtures/theory_implementations/0/desc.txt +0 -9
  326. data/test/fixtures/theory_implementations/0/dump +0 -0
  327. data/test/fixtures/theory_implementations/0/theory_id +0 -1
  328. data/test/fixtures/theory_implementations/1/declaration.txt +0 -11
  329. data/test/fixtures/theory_implementations/1/desc.txt +0 -9
  330. data/test/fixtures/theory_implementations/1/dump +0 -1
  331. data/test/fixtures/theory_implementations/1/theory_id +0 -1
  332. data/test/fixtures/theory_implementations/2/declaration.txt +0 -11
  333. data/test/fixtures/theory_implementations/2/desc.txt +0 -9
  334. data/test/fixtures/theory_implementations/2/dump +0 -0
  335. data/test/fixtures/theory_implementations/2/theory_id +0 -1
  336. data/test/output/simple_method.txt +0 -5
  337. data/test/output/test_method/first_possible_method.txt +0 -6
  338. data/test/output/test_simple_cases/simple_case_01.txt +0 -8
  339. data/test/output/test_simple_cases/simple_case_02.txt +0 -7
  340. data/test/output/test_simple_cases/simple_case_03.txt +0 -8
  341. data/test/output/test_simple_cases/simple_case_04.txt +0 -8
  342. data/test/output/test_simple_cases/simple_case_05.txt +0 -8
  343. data/test/output/test_simple_cases/simple_case_06.txt +0 -9
  344. data/test/output/test_simple_cases/simple_case_07.txt +0 -9
  345. data/test/output/test_simple_cases/simple_case_08.txt +0 -9
  346. data/test/tc_describe.rb +0 -46
  347. data/test/tc_method.rb +0 -130
  348. data/test/tc_requirement.rb +0 -30
  349. data/test/tc_suite_complete.rb +0 -26
  350. data/test/tc_variable.rb +0 -52
  351. data/test/ts_complete.rb +0 -74
  352. data/test/ts_stable.rb +0 -81
  353. data/test/unit/core/declaration/tc_literal_declaration.rb +0 -34
  354. data/test/unit/core/method_call/tc_class_call.rb +0 -20
  355. data/test/unit/core/runtime_method/tc_realised_runtime_method.rb +0 -132
  356. data/test/unit/core/runtime_method/tc_runtime_method.rb +0 -546
  357. data/test/unit/core/statement/tc_array_access.rb +0 -63
  358. data/test/unit/core/statement/tc_block_statement.rb +0 -53
  359. data/test/unit/core/statement/tc_hack_statement.rb +0 -26
  360. data/test/unit/core/statement/tc_open_statement.rb +0 -79
  361. data/test/unit/core/statement/tc_statement.rb +0 -483
  362. data/test/unit/core/statement/tc_statement_group.rb +0 -35
  363. data/test/unit/core/statement/tc_statement_replace_variable.rb +0 -61
  364. data/test/unit/core/statement/tc_theory_statement.rb +0 -53
  365. data/test/unit/core/syntax/tc_block_container.rb +0 -32
  366. data/test/unit/core/syntax/tc_if_container.rb +0 -39
  367. data/test/unit/core/tc_class_method_call.rb +0 -34
  368. data/test/unit/core/tc_container.rb +0 -41
  369. data/test/unit/core/tc_ctest_case.rb +0 -25
  370. data/test/unit/core/tc_instance_call_container.rb +0 -93
  371. data/test/unit/core/tc_literal.rb +0 -30
  372. data/test/unit/core/tc_theory_generator.rb +0 -336
  373. data/test/unit/core/tc_theory_generator_heavy.rb +0 -42
  374. data/test/unit/core/tracking/tc_history.rb +0 -104
  375. data/test/unit/core/tracking/tc_step.rb +0 -65
  376. data/test/unit/core/variable/tc_array_variable.rb +0 -61
  377. data/test/unit/core/variable/tc_block_variable.rb +0 -17
  378. data/test/unit/core/variable/tc_fixnum_variable.rb +0 -54
  379. data/test/unit/core/variable/tc_method_parameter_variable.rb +0 -22
  380. data/test/unit/core/variable/tc_runtime_method_variable.rb +0 -32
  381. data/test/unit/core/variable/tc_string_variable.rb +0 -37
  382. data/test/unit/core/variable/tc_unknown.rb +0 -24
  383. data/test/unit/core/variable/tc_variable_reference.rb +0 -28
  384. data/test/unit/ruby_code/tc_array.rb +0 -64
  385. data/test/unit/ruby_code/tc_fixnum.rb +0 -18
  386. data/test/unit/ruby_code/tc_hash.rb +0 -41
  387. data/test/unit/ruby_code/tc_string.rb +0 -38
  388. data/test/unit/tc_chain.rb +0 -434
  389. data/test/unit/tc_chain_mapping.rb +0 -62
  390. data/test/unit/tc_chain_with_case_1.rb +0 -169
  391. data/test/unit/tc_instance_call.rb +0 -40
  392. data/test/unit/tc_method_usage.rb +0 -35
  393. data/test/unit/tc_pot.rb +0 -124
  394. data/test/unit/tc_runtime_tracking_method.rb +0 -40
  395. data/test/unit/tc_theory.rb +0 -531
  396. data/test/unit/tc_variable_declaration.rb +0 -32
  397. data/test/unit/theory/tc_theory_action.rb +0 -108
  398. data/test/unit/theory/tc_theory_action_implementation.rb +0 -23
  399. data/test/unit/theory/tc_theory_chain_validator.rb +0 -340
  400. data/test/unit/theory/tc_theory_connector.rb +0 -361
  401. data/test/unit/theory/tc_theory_dependent.rb +0 -153
  402. data/test/unit/theory/tc_theory_implementation.rb +0 -137
  403. data/test/unit/theory/tc_theory_result.rb +0 -112
  404. data/test/unit/theory/tc_theory_variable.rb +0 -45
  405. data/test/unit/util/tc_method_validation.rb +0 -101
  406. data/test/unit/util/tc_parser.rb +0 -110
  407. data/test/unit/util/tc_string_to_theory.rb +0 -300
  408. data/test/unit/variable/tc_method_usage_variable.rb +0 -25
  409. data/tmp/runtime_method_evaluation.rb +0 -16
metadata CHANGED
@@ -1,159 +1,75 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cauldron
3
- version: !ruby/object:Gem::Version
4
- hash: 29
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.5
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 3
10
- version: 0.1.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Warren Sangster
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-10-09 00:00:00 +01:00
19
- default_executable: cauldron
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2014-03-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
23
17
  none: false
24
- requirements:
18
+ requirements:
25
19
  - - ~>
26
- - !ruby/object:Gem::Version
27
- hash: 21
28
- segments:
29
- - 1
30
- - 2
31
- - 5
32
- version: 1.2.5
33
- name: ruby2ruby
34
- version_requirements: *id001
35
- prerelease: false
36
- type: :runtime
37
- - !ruby/object:Gem::Dependency
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
47
- name: shoulda
48
- version_requirements: *id002
49
- prerelease: false
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
50
22
  type: :development
51
- - !ruby/object:Gem::Dependency
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
55
- - - ~>
56
- - !ruby/object:Gem::Version
57
- hash: 9
58
- segments:
59
- - 1
60
- - 0
61
- - 15
62
- version: 1.0.15
63
- name: bundler
64
- version_requirements: *id003
65
23
  prerelease: false
66
- type: :development
67
- - !ruby/object:Gem::Dependency
68
- requirement: &id004 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
69
25
  none: false
70
- requirements:
26
+ requirements:
71
27
  - - ~>
72
- - !ruby/object:Gem::Version
73
- hash: 11
74
- segments:
75
- - 1
76
- - 6
77
- - 2
78
- version: 1.6.2
79
- name: jeweler
80
- version_requirements: *id004
81
- prerelease: false
82
- type: :development
83
- - !ruby/object:Gem::Dependency
84
- requirement: &id005 !ruby/object:Gem::Requirement
28
+ - !ruby/object:Gem::Version
29
+ version: '1.3'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
85
33
  none: false
86
- requirements:
87
- - - ~>
88
- - !ruby/object:Gem::Version
89
- hash: 23
90
- segments:
91
- - 2
92
- - 6
93
- - 0
94
- version: 2.6.0
95
- name: rspec
96
- version_requirements: *id005
97
- prerelease: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
98
38
  type: :development
99
- - !ruby/object:Gem::Dependency
100
- requirement: &id006 !ruby/object:Gem::Requirement
101
- none: false
102
- requirements:
103
- - - ">="
104
- - !ruby/object:Gem::Version
105
- hash: 3
106
- segments:
107
- - 0
108
- version: "0"
109
- name: rcov
110
- version_requirements: *id006
111
39
  prerelease: false
112
- type: :development
113
- - !ruby/object:Gem::Dependency
114
- requirement: &id007 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: ruby2ruby
48
+ requirement: !ruby/object:Gem::Requirement
115
49
  none: false
116
- requirements:
50
+ requirements:
117
51
  - - ~>
118
- - !ruby/object:Gem::Version
119
- hash: 3
120
- segments:
121
- - 2
122
- - 0
123
- - 6
124
- version: 2.0.6
125
- name: ruby_parser
126
- version_requirements: *id007
52
+ - !ruby/object:Gem::Version
53
+ version: 1.2.5
54
+ type: :runtime
127
55
  prerelease: false
128
- type: :development
129
- - !ruby/object:Gem::Dependency
130
- requirement: &id008 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
131
57
  none: false
132
- requirements:
58
+ requirements:
133
59
  - - ~>
134
- - !ruby/object:Gem::Version
135
- hash: 5
136
- segments:
137
- - 0
138
- - 4
139
- - 5
140
- version: 0.4.5
141
- name: aruba
142
- version_requirements: *id008
143
- prerelease: false
144
- type: :development
145
- description: Cauldron generates a methd from a number of examples that describe the input and the expected output. It is still at a very early stage of development right now so you're unlikely to get much practical use out of it.
60
+ - !ruby/object:Gem::Version
61
+ version: 1.2.5
62
+ description: Cauldron generates a methd from a number of examples that describe the
63
+ input and the expected output. It is still at a very early stage of development
64
+ right now so you're unlikely to get much practical use out of it.
146
65
  email: warrensangster@yahoo.com
147
- executables:
66
+ executables:
148
67
  - cauldron
149
68
  extensions: []
150
-
151
- extra_rdoc_files:
152
- - LICENSE.txt
153
- - README
154
- - README.rdoc
155
- files:
69
+ extra_rdoc_files: []
70
+ files:
156
71
  - .document
72
+ - .gitignore
157
73
  - Gemfile
158
74
  - Gemfile.lock
159
75
  - History.md
@@ -164,429 +80,73 @@ files:
164
80
  - VERSION
165
81
  - bin/cauldron
166
82
  - cauldron.gemspec
167
- - cauldron/.autotest
168
- - cauldron/History.txt
169
- - cauldron/Manifest.txt
170
- - cauldron/README.txt
171
- - cauldron/Rakefile
172
- - cauldron/bin/cauldron
173
- - cauldron/lib/cauldron.rb
174
- - cauldron/test/test_cauldron.rb
175
- - features/cauldron_example_cases.feature
176
- - features/cauldron_generates_runtime_method.feature
177
- - features/cauldron_generates_single_paramter_methods.feature
178
- - features/cauldron_interactive_start_terminal.feature
179
- - features/cauldron_quit_terminal.feature
180
- - features/cauldron_start_terminal.feature
83
+ - features/cauldron_new_approach.feature
181
84
  - features/step_definitions/cauldron_steps.rb
182
85
  - features/step_definitions/terminal_steps.rb
183
86
  - features/support/env.rb
184
87
  - features/support/hooks.rb
185
- - features/support/method_1.example
186
- - features/support/method_2.example
187
- - lib/Chain.rb
188
- - lib/ChainMapping.rb
189
- - lib/CodeHandler.rb
190
- - lib/Mapping.rb
191
- - lib/MappingValues.rb
192
- - lib/PartialChain.rb
193
- - lib/Theory.rb
194
- - lib/UnifiedChain.rb
195
88
  - lib/cauldron.rb
196
- - lib/cauldron/conversion.rb
197
- - lib/cauldron/demos.rb
198
- - lib/cauldron/env.rb
89
+ - lib/cauldron/array_reverse_operator.rb
90
+ - lib/cauldron/concat_operator.rb
91
+ - lib/cauldron/if_relationship.rb
92
+ - lib/cauldron/numeric_operator.rb
199
93
  - lib/cauldron/pot.rb
200
- - lib/cauldron/sexp2cauldron.rb
94
+ - lib/cauldron/relationship.rb
201
95
  - lib/cauldron/terminal.rb
202
- - lib/cauldron/theory_factory.rb
203
- - lib/cauldron/util/home.rb
204
- - lib/cauldron/util/saver.rb
205
- - lib/core/ActsAsCode.rb
206
- - lib/core/BlockToken.rb
207
- - lib/core/CCall.rb
208
- - lib/core/CTestCase.rb
209
- - lib/core/ClassMethodCallContainer.rb
210
- - lib/core/Container.rb
211
- - lib/core/InstanceCallContainer.rb
212
- - lib/core/MethodUsage.rb
213
- - lib/core/PrintVariables.rb
214
- - lib/core/TheoryGenerator.rb
215
- - lib/core/Token.rb
216
- - lib/core/assignment/Assignment.rb
217
- - lib/core/assignment/Equal.rb
218
- - lib/core/assignment/Equivalent.rb
219
- - lib/core/assignment/NotEqual.rb
220
- - lib/core/call_container/CallContainer.rb
221
- - lib/core/class_method_call/New.rb
222
- - lib/core/class_method_call/RuntimeClassMethodCall.rb
223
- - lib/core/declaration/Declaration.rb
224
- - lib/core/declaration/LiteralDeclaration.rb
225
- - lib/core/declaration/VariableDeclaration.rb
226
- - lib/core/instance_call/ArrayEach.rb
227
- - lib/core/instance_call/ArrayLength.rb
228
- - lib/core/instance_call/Chop.rb
229
- - lib/core/instance_call/Copy.rb
230
- - lib/core/instance_call/DeclaredVariable.rb
231
- - lib/core/instance_call/InstanceCall.rb
232
- - lib/core/instance_call/Params.rb
233
- - lib/core/instance_call/Push.rb
234
- - lib/core/instance_call/StringLength.rb
235
- - lib/core/instance_call/Times.rb
236
- - lib/core/instance_call/instance_calls.rb
237
- - lib/core/instance_call/length_equal.rb
238
- - lib/core/kernal/EvalCall.rb
239
- - lib/core/kernal/LocalVariablesCall.rb
240
- - lib/core/literal/Literal.rb
241
- - lib/core/literal/Raw.rb
242
- - lib/core/literal/RuntimeMethodLiteral.rb
243
- - lib/core/literal/StatementLiteral.rb
244
- - lib/core/method_call/AvailableVariablesCall.rb
245
- - lib/core/method_call/ClassCall.rb
246
- - lib/core/method_call/DefCall.rb
247
- - lib/core/method_call/EvaluateClassCall.rb
248
- - lib/core/method_call/MethodNameCall.rb
249
- - lib/core/method_call/ToDeclarationCall.rb
250
- - lib/core/requirement/Requirement.rb
251
- - lib/core/runtime_class/ArrayClass.rb
252
- - lib/core/runtime_class/ClassCallClass.rb
253
- - lib/core/runtime_class/ClassEvaluationClass.rb
254
- - lib/core/runtime_class/ClassName.rb
255
- - lib/core/runtime_class/DefCallClass.rb
256
- - lib/core/runtime_class/EqualClass.rb
257
- - lib/core/runtime_class/FixnumClass.rb
258
- - lib/core/runtime_class/InstanceCallClass.rb
259
- - lib/core/runtime_class/InstanceCallContainerClass.rb
260
- - lib/core/runtime_class/InstanceClassCallClass.rb
261
- - lib/core/runtime_class/LiteralClass.rb
262
- - lib/core/runtime_class/MethodParameterClass.rb
263
- - lib/core/runtime_class/MethodUsageClass.rb
264
- - lib/core/runtime_class/RequirementClass.rb
265
- - lib/core/runtime_class/ReturnClass.rb
266
- - lib/core/runtime_class/RuntimeClass.rb
267
- - lib/core/runtime_class/RuntimeClassClass.rb
268
- - lib/core/runtime_class/RuntimeMethodClass.rb
269
- - lib/core/runtime_class/StatementClass.rb
270
- - lib/core/runtime_class/StringClass.rb
271
- - lib/core/runtime_class/StringLengthClass.rb
272
- - lib/core/runtime_class/StringVariableClass.rb
273
- - lib/core/runtime_class/ThisClass.rb
274
- - lib/core/runtime_class/UnknownClass.rb
275
- - lib/core/runtime_class/class_names.rb
276
- - lib/core/runtime_class/runtime_class.rb
277
- - lib/core/runtime_method/ActsAsRuntimeMethod.rb
278
- - lib/core/runtime_method/ParametersContainer.rb
279
- - lib/core/runtime_method/RealisedRuntimeMethod.rb
280
- - lib/core/runtime_method/RuntimeMethod.rb
281
- - lib/core/runtime_method/WriteParameters.rb
282
- - lib/core/statement/ActsAsStatement.rb
283
- - lib/core/statement/ArrayAccess.rb
284
- - lib/core/statement/BlockStatement.rb
285
- - lib/core/statement/DeclarationStatement.rb
286
- - lib/core/statement/HackStatement.rb
287
- - lib/core/statement/HashAccess.rb
288
- - lib/core/statement/OpenStatement.rb
289
- - lib/core/statement/RealisedStatement.rb
290
- - lib/core/statement/SingleLineBlockStatement.rb
291
- - lib/core/statement/Statement.rb
292
- - lib/core/statement/StatementGroup.rb
293
- - lib/core/statement/StatementStructure2.rb
294
- - lib/core/statement/TheoryStatement.rb
295
- - lib/core/statement/TopologicalStatements.rb
296
- - lib/core/syntax/Addition.rb
297
- - lib/core/syntax/BlockContainer.rb
298
- - lib/core/syntax/Boolean.rb
299
- - lib/core/syntax/Code.rb
300
- - lib/core/syntax/Do.rb
301
- - lib/core/syntax/False.rb
302
- - lib/core/syntax/If.rb
303
- - lib/core/syntax/Nil.rb
304
- - lib/core/syntax/Return.rb
305
- - lib/core/syntax/Subtract.rb
306
- - lib/core/syntax/This.rb
307
- - lib/core/syntax/True.rb
308
- - lib/core/syntax/syntax.rb
309
- - lib/core/tracking/ActsAsTrackable.rb
310
- - lib/core/tracking/History.rb
311
- - lib/core/tracking/RuntimeTrackingMethod.rb
312
- - lib/core/tracking/Step.rb
313
- - lib/core/variable/ArrayVariable.rb
314
- - lib/core/variable/BaseVariable.rb
315
- - lib/core/variable/BlockVariable.rb
316
- - lib/core/variable/FixnumVariable.rb
317
- - lib/core/variable/HistoryVariable.rb
318
- - lib/core/variable/MethodParameter.rb
319
- - lib/core/variable/MethodUsageVariable.rb
320
- - lib/core/variable/NilVariable.rb
321
- - lib/core/variable/RuntimeMethodParameter.rb
322
- - lib/core/variable/StatementVariable.rb
323
- - lib/core/variable/StepVariable.rb
324
- - lib/core/variable/StringVariable.rb
325
- - lib/core/variable/TypeVariable.rb
326
- - lib/core/variable/Unknown.rb
327
- - lib/core/variable/UnknownVariable.rb
328
- - lib/core/variable/Variable.rb
329
- - lib/core/variable/VariableContainer.rb
330
- - lib/core/variable/VariableIncluded.rb
331
- - lib/core/variable/VariableReference.rb
332
- - lib/error/FailedToFindStatementContainerError.rb
333
- - lib/error/FailedToFindStatementError.rb
334
- - lib/error/FailedToFindVariableError.rb
335
- - lib/error/FailedToLiteraliseError.rb
336
- - lib/error/FailedVariableMatch.rb
337
- - lib/error/ImproperStatementUsageError.rb
338
- - lib/error/IncompatiableRequirementsError.rb
339
- - lib/error/InvalidStatementError.rb
340
- - lib/error/MethodSizeError.rb
341
- - lib/error/RuntimeSyntaxError.rb
342
- - lib/error/UnexpectedStatementTypeError.rb
343
- - lib/error/UnknownStatementType.rb
344
- - lib/error/UnliteralisableError.rb
345
- - lib/implemented_chain.rb
346
- - lib/intrinsic/IntrinsicLastRuntimeMethod.rb
347
- - lib/intrinsic/IntrinsicLiteral.rb
348
- - lib/intrinsic/IntrinsicObject.rb
349
- - lib/intrinsic/IntrinsicRuntimeMethod.rb
350
- - lib/intrinsic/IntrinsicTestCases.rb
351
- - lib/logger/StandardLogger.rb
352
- - lib/required.rb
353
- - lib/ruby_code/Array.rb
354
- - lib/ruby_code/Fixnum.rb
355
- - lib/ruby_code/Hash.rb
356
- - lib/ruby_code/NilClass.rb
357
- - lib/ruby_code/Object.rb
358
- - lib/ruby_code/String.rb
359
- - lib/ruby_code/Symbol.rb
360
- - lib/standard_library/Tasks.rb
361
- - lib/theories.rb
362
- - lib/theory/ActionImplementation.rb
363
- - lib/theory/TheoryAction.rb
364
- - lib/theory/TheoryChainValidator.rb
365
- - lib/theory/TheoryComponent.rb
366
- - lib/theory/TheoryConnector.rb
367
- - lib/theory/TheoryDependent.rb
368
- - lib/theory/TheoryImplementation.rb
369
- - lib/theory/TheoryResult.rb
370
- - lib/theory/TheoryVariable.rb
371
- - lib/theory/theory_collection.rb
372
- - lib/util/ClassEvaluation.rb
373
- - lib/util/CodeEvaluation.rb
374
- - lib/util/DeclarationStatementEvaluation.rb
375
- - lib/util/MethodEvaluation.rb
376
- - lib/util/MethodTester.rb
377
- - lib/util/MethodValidation.rb
378
- - lib/util/MethodWriter.rb
379
- - lib/util/Parser.rb
380
- - lib/util/StatementCheck.rb
381
- - lib/util/StringToTheory.rb
382
- - lib/util/System.rb
96
+ - lib/cauldron/version.rb
97
+ - lib/core/string.rb
383
98
  - sandbox.rb
384
- - spec/cauldron/chain_spec.rb
385
- - spec/cauldron/demos_spec.rb
99
+ - spec/cauldron/array_reverse_operator_spec.rb
100
+ - spec/cauldron/concat_operator_spec.rb
101
+ - spec/cauldron/if_relationship_spec.rb
102
+ - spec/cauldron/numeric_operator_spec.rb
386
103
  - spec/cauldron/pot_spec.rb
387
- - spec/cauldron/runtime_method_spec.rb
388
- - spec/cauldron/saver_spec.rb
389
- - spec/cauldron/sexp_2_cauldron_spec.rb
390
104
  - spec/cauldron/terminal_spec.rb
391
- - spec/cauldron/theory_action_spec.rb
392
- - spec/cauldron/theory_connector_spec.rb
393
- - spec/cauldron/theory_spec.rb
394
- - spec/cauldron/unified_chain_spec.rb
105
+ - spec/examples/adding_if_statement.yml
106
+ - spec/examples/simple_head_theory.txt
395
107
  - spec/spec_helper.rb
396
108
  - tasks/development_tasks.rake
397
109
  - tasks/theory_tasks.rake
398
- - test/fixtures/chains/1/declaration.txt
399
- - test/fixtures/chains/1/dump
400
- - test/fixtures/chains/2/declaration.txt
401
- - test/fixtures/chains/2/dump
402
- - test/fixtures/chains/3/declaration.txt
403
- - test/fixtures/chains/3/dump
404
- - test/fixtures/implementation_results/0/declaration.txt
405
- - test/fixtures/implementation_results/0/dump
406
- - test/fixtures/theories/0/declaration.txt
407
- - test/fixtures/theories/0/desc
408
- - test/fixtures/theories/0/dump
409
- - test/fixtures/theories/1/declaration.txt
410
- - test/fixtures/theories/1/desc
411
- - test/fixtures/theories/1/dump
412
- - test/fixtures/theories/10/declaration.txt
413
- - test/fixtures/theories/10/desc
414
- - test/fixtures/theories/10/dump
415
- - test/fixtures/theories/11/declaration.txt
416
- - test/fixtures/theories/11/desc
417
- - test/fixtures/theories/11/dump
418
- - test/fixtures/theories/12/declaration.txt
419
- - test/fixtures/theories/12/desc
420
- - test/fixtures/theories/12/dump
421
- - test/fixtures/theories/13/declaration.txt
422
- - test/fixtures/theories/13/desc
423
- - test/fixtures/theories/13/dump
424
- - test/fixtures/theories/14/declaration.txt
425
- - test/fixtures/theories/14/desc
426
- - test/fixtures/theories/14/dump
427
- - test/fixtures/theories/15/declaration.txt
428
- - test/fixtures/theories/15/desc
429
- - test/fixtures/theories/15/dump
430
- - test/fixtures/theories/16/declaration.txt
431
- - test/fixtures/theories/16/desc
432
- - test/fixtures/theories/16/dump
433
- - test/fixtures/theories/17/declaration.txt
434
- - test/fixtures/theories/17/desc
435
- - test/fixtures/theories/17/dump
436
- - test/fixtures/theories/18/declaration.txt
437
- - test/fixtures/theories/18/desc
438
- - test/fixtures/theories/18/dump
439
- - test/fixtures/theories/19/declaration.txt
440
- - test/fixtures/theories/19/desc
441
- - test/fixtures/theories/19/dump
442
- - test/fixtures/theories/2/declaration.txt
443
- - test/fixtures/theories/2/desc
444
- - test/fixtures/theories/2/dump
445
- - test/fixtures/theories/20/declaration.txt
446
- - test/fixtures/theories/20/desc
447
- - test/fixtures/theories/20/dump
448
- - test/fixtures/theories/3/declaration.txt
449
- - test/fixtures/theories/3/desc
450
- - test/fixtures/theories/3/dump
451
- - test/fixtures/theories/4/declaration.txt
452
- - test/fixtures/theories/4/desc
453
- - test/fixtures/theories/4/dump
454
- - test/fixtures/theories/5/declaration.txt
455
- - test/fixtures/theories/5/desc
456
- - test/fixtures/theories/5/dump
457
- - test/fixtures/theories/6/declaration.txt
458
- - test/fixtures/theories/6/desc
459
- - test/fixtures/theories/6/dump
460
- - test/fixtures/theories/7/declaration.txt
461
- - test/fixtures/theories/7/desc
462
- - test/fixtures/theories/7/dump
463
- - test/fixtures/theories/8/declaration.txt
464
- - test/fixtures/theories/8/desc
465
- - test/fixtures/theories/8/dump
466
- - test/fixtures/theories/9/declaration.txt
467
- - test/fixtures/theories/9/desc
468
- - test/fixtures/theories/9/dump
469
- - test/fixtures/theory_implementations/0/declaration.txt
470
- - test/fixtures/theory_implementations/0/desc.txt
471
- - test/fixtures/theory_implementations/0/dump
472
- - test/fixtures/theory_implementations/0/theory_id
473
- - test/fixtures/theory_implementations/1/declaration.txt
474
- - test/fixtures/theory_implementations/1/desc.txt
475
- - test/fixtures/theory_implementations/1/dump
476
- - test/fixtures/theory_implementations/1/theory_id
477
- - test/fixtures/theory_implementations/2/declaration.txt
478
- - test/fixtures/theory_implementations/2/desc.txt
479
- - test/fixtures/theory_implementations/2/dump
480
- - test/fixtures/theory_implementations/2/theory_id
481
- - test/output/simple_method.txt
482
- - test/output/test_method/first_possible_method.txt
483
- - test/output/test_simple_cases/simple_case_01.txt
484
- - test/output/test_simple_cases/simple_case_02.txt
485
- - test/output/test_simple_cases/simple_case_03.txt
486
- - test/output/test_simple_cases/simple_case_04.txt
487
- - test/output/test_simple_cases/simple_case_05.txt
488
- - test/output/test_simple_cases/simple_case_06.txt
489
- - test/output/test_simple_cases/simple_case_07.txt
490
- - test/output/test_simple_cases/simple_case_08.txt
491
- - test/tc_describe.rb
492
- - test/tc_method.rb
493
- - test/tc_requirement.rb
494
- - test/tc_suite_complete.rb
495
- - test/tc_variable.rb
496
- - test/ts_complete.rb
497
- - test/ts_stable.rb
498
- - test/unit/core/declaration/tc_literal_declaration.rb
499
- - test/unit/core/method_call/tc_class_call.rb
500
- - test/unit/core/runtime_method/tc_realised_runtime_method.rb
501
- - test/unit/core/runtime_method/tc_runtime_method.rb
502
- - test/unit/core/statement/tc_array_access.rb
503
- - test/unit/core/statement/tc_block_statement.rb
504
- - test/unit/core/statement/tc_hack_statement.rb
505
- - test/unit/core/statement/tc_open_statement.rb
506
- - test/unit/core/statement/tc_statement.rb
507
- - test/unit/core/statement/tc_statement_group.rb
508
- - test/unit/core/statement/tc_statement_replace_variable.rb
509
- - test/unit/core/statement/tc_theory_statement.rb
510
- - test/unit/core/syntax/tc_block_container.rb
511
- - test/unit/core/syntax/tc_if_container.rb
512
- - test/unit/core/tc_class_method_call.rb
513
- - test/unit/core/tc_container.rb
514
- - test/unit/core/tc_ctest_case.rb
515
- - test/unit/core/tc_instance_call_container.rb
516
- - test/unit/core/tc_literal.rb
517
- - test/unit/core/tc_theory_generator.rb
518
- - test/unit/core/tc_theory_generator_heavy.rb
519
- - test/unit/core/tracking/tc_history.rb
520
- - test/unit/core/tracking/tc_step.rb
521
- - test/unit/core/variable/tc_array_variable.rb
522
- - test/unit/core/variable/tc_block_variable.rb
523
- - test/unit/core/variable/tc_fixnum_variable.rb
524
- - test/unit/core/variable/tc_method_parameter_variable.rb
525
- - test/unit/core/variable/tc_runtime_method_variable.rb
526
- - test/unit/core/variable/tc_string_variable.rb
527
- - test/unit/core/variable/tc_unknown.rb
528
- - test/unit/core/variable/tc_variable_reference.rb
529
- - test/unit/ruby_code/tc_array.rb
530
- - test/unit/ruby_code/tc_fixnum.rb
531
- - test/unit/ruby_code/tc_hash.rb
532
- - test/unit/ruby_code/tc_string.rb
533
- - test/unit/tc_chain.rb
534
- - test/unit/tc_chain_mapping.rb
535
- - test/unit/tc_chain_with_case_1.rb
536
- - test/unit/tc_instance_call.rb
537
- - test/unit/tc_method_usage.rb
538
- - test/unit/tc_pot.rb
539
- - test/unit/tc_runtime_tracking_method.rb
540
- - test/unit/tc_theory.rb
541
- - test/unit/tc_variable_declaration.rb
542
- - test/unit/theory/tc_theory_action.rb
543
- - test/unit/theory/tc_theory_action_implementation.rb
544
- - test/unit/theory/tc_theory_chain_validator.rb
545
- - test/unit/theory/tc_theory_connector.rb
546
- - test/unit/theory/tc_theory_dependent.rb
547
- - test/unit/theory/tc_theory_implementation.rb
548
- - test/unit/theory/tc_theory_result.rb
549
- - test/unit/theory/tc_theory_variable.rb
550
- - test/unit/util/tc_method_validation.rb
551
- - test/unit/util/tc_parser.rb
552
- - test/unit/util/tc_string_to_theory.rb
553
- - test/unit/variable/tc_method_usage_variable.rb
554
- - tmp/runtime_method_evaluation.rb
555
- has_rdoc: true
556
110
  homepage: http://github.com/theinbetweens/cauldron
557
- licenses:
111
+ licenses:
558
112
  - MIT
559
113
  post_install_message:
560
114
  rdoc_options: []
561
-
562
- require_paths:
115
+ require_paths:
563
116
  - lib
564
- required_ruby_version: !ruby/object:Gem::Requirement
117
+ required_ruby_version: !ruby/object:Gem::Requirement
565
118
  none: false
566
- requirements:
567
- - - ">="
568
- - !ruby/object:Gem::Version
569
- hash: 31
570
- segments:
571
- - 1
572
- - 6
573
- - 8
574
- version: 1.6.8
575
- required_rubygems_version: !ruby/object:Gem::Requirement
576
- none: false
577
- requirements:
578
- - - ">="
579
- - !ruby/object:Gem::Version
580
- hash: 3
581
- segments:
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ segments:
582
124
  - 0
583
- version: "0"
125
+ hash: -3985939915823309173
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
584
132
  requirements: []
585
-
586
133
  rubyforge_project:
587
- rubygems_version: 1.4.0
134
+ rubygems_version: 1.8.23
588
135
  signing_key:
589
136
  specification_version: 3
590
137
  summary: Generate simple ruby methods from the input(s) and expected output
591
- test_files: []
592
-
138
+ test_files:
139
+ - features/cauldron_new_approach.feature
140
+ - features/step_definitions/cauldron_steps.rb
141
+ - features/step_definitions/terminal_steps.rb
142
+ - features/support/env.rb
143
+ - features/support/hooks.rb
144
+ - spec/cauldron/array_reverse_operator_spec.rb
145
+ - spec/cauldron/concat_operator_spec.rb
146
+ - spec/cauldron/if_relationship_spec.rb
147
+ - spec/cauldron/numeric_operator_spec.rb
148
+ - spec/cauldron/pot_spec.rb
149
+ - spec/cauldron/terminal_spec.rb
150
+ - spec/examples/adding_if_statement.yml
151
+ - spec/examples/simple_head_theory.txt
152
+ - spec/spec_helper.rb