eyelang 0.5.0 → 0.5.2

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.
Files changed (299) hide show
  1. package/README.md +7 -7
  2. package/book-assets/cli-observation-loop.svg +1 -1
  3. package/book-assets/example-landscape.svg +1 -1
  4. package/book-assets/laboratory-progression.svg +1 -1
  5. package/book-assets/part-4-craft.svg +1 -1
  6. package/book-assets/rdf-adapter-pipeline.svg +3 -3
  7. package/book-assets/reference-navigation.svg +1 -1
  8. package/book-assets/review-lenses.svg +1 -1
  9. package/book-assets/title-page.svg +2 -2
  10. package/conformance-report.md +1 -1
  11. package/examples/book/README.md +4 -4
  12. package/examples/book/chapter-01/01-parent.pl +1 -1
  13. package/examples/book/chapter-01/02-child.pl +1 -1
  14. package/examples/book/chapter-02/01-measurement.pl +1 -1
  15. package/examples/book/chapter-02/02-label.pl +1 -1
  16. package/examples/book/chapter-03/01-eligible.pl +1 -1
  17. package/examples/book/chapter-03/02-adult.pl +1 -1
  18. package/examples/book/chapter-03/03-can_enter.pl +1 -1
  19. package/examples/book/chapter-03/04-high_score.pl +1 -1
  20. package/examples/book/chapter-03/05-parent.pl +1 -1
  21. package/examples/book/chapter-03/06-ancestor.pl +1 -1
  22. package/examples/book/chapter-03/07-different.pl +1 -1
  23. package/examples/book/chapter-03/08-has_parent.pl +1 -1
  24. package/examples/book/chapter-03/09-program.pl +1 -1
  25. package/examples/book/chapter-03/10-closed.pl +1 -1
  26. package/examples/book/chapter-03/11-p.pl +1 -1
  27. package/examples/book/chapter-04/01-path.pl +1 -1
  28. package/examples/book/chapter-05/01-first.pl +1 -1
  29. package/examples/book/chapter-05/02-reverse_acc.pl +1 -1
  30. package/examples/book/chapter-06/01-next.pl +1 -1
  31. package/examples/book/chapter-06/02-safe_reading.pl +1 -1
  32. package/examples/book/chapter-06/03-square.pl +1 -1
  33. package/examples/book/chapter-06/04-factorial.pl +1 -1
  34. package/examples/book/chapter-07/01-allowed.pl +1 -1
  35. package/examples/book/chapter-07/02-all_tests_pass.pl +1 -1
  36. package/examples/book/chapter-08/01-findall.pl +1 -1
  37. package/examples/book/chapter-08/02-outgoing_costs.pl +1 -1
  38. package/examples/book/chapter-08/03-best_route.pl +1 -1
  39. package/examples/book/chapter-09/01-functor.pl +1 -1
  40. package/examples/book/chapter-09/02-normalized.pl +1 -1
  41. package/examples/book/chapter-09/03-message.pl +1 -1
  42. package/examples/book/chapter-10/01-plan.pl +1 -1
  43. package/examples/book/chapter-11/01-why.pl +1 -1
  44. package/examples/book/chapter-12/01-invalid_probability.pl +1 -1
  45. package/examples/book/chapter-12/02-invalid_assignment.pl +1 -1
  46. package/examples/book/chapter-14/01-heating.pl +1 -1
  47. package/examples/book/chapter-15/01-rdf.pl +1 -1
  48. package/examples/book/chapter-16/01-socket.pl +1 -1
  49. package/examples/book/chapter-16/02-socket-2.pl +1 -1
  50. package/examples/book/chapter-17/01-path.pl +1 -1
  51. package/examples/book/chapter-17/02-adult.pl +1 -1
  52. package/examples/book/chapter-17/03-bad_member.pl +1 -1
  53. package/examples/book/chapter-17/04-item.pl +1 -1
  54. package/examples/book/chapter-18/01-routeable.pl +1 -1
  55. package/examples/book/chapter-18/02-routeable-2.pl +1 -1
  56. package/examples/book/chapter-18/03-prefix.pl +1 -1
  57. package/examples/book/chapter-18/04-candidate_pair.pl +1 -1
  58. package/examples/book/chapter-18/05-compatible_pair.pl +1 -1
  59. package/examples/book/chapter-19/01-factorial.pl +1 -1
  60. package/examples/book/chapter-19/02-invalid_limits.pl +1 -1
  61. package/examples/book/chapter-20/01-connected.pl +1 -1
  62. package/examples/book/chapter-20/02-within_thermal_limits.pl +1 -1
  63. package/examples/book/chapter-20/03-search.pl +1 -1
  64. package/examples/book/chapter-21/01-grandparent.pl +1 -1
  65. package/examples/book/chapter-21/02-loop_edge.pl +1 -1
  66. package/examples/book/chapter-21/03-eligible.pl +1 -1
  67. package/examples/book/chapter-21/04-grows.pl +1 -1
  68. package/examples/book/chapter-22/01-tree.pl +1 -1
  69. package/examples/book/chapter-22/02-tree_member.pl +1 -1
  70. package/examples/book/chapter-22/03-mirror.pl +1 -1
  71. package/examples/book/chapter-22/04-evaluate.pl +1 -1
  72. package/examples/book/chapter-22/05-lookup.pl +1 -1
  73. package/examples/book/chapter-22/06-simplify.pl +1 -1
  74. package/examples/book/chapter-23/01-adult.pl +1 -1
  75. package/examples/book/chapter-23/02-adult-2.pl +1 -1
  76. package/examples/book/chapter-23/03-can_board.pl +1 -1
  77. package/examples/book/chapter-23/04-traveler_in_good_standing.pl +1 -1
  78. package/examples/book/chapter-23/05-connection.pl +1 -1
  79. package/examples/book/chapter-23/06-rail_connection.pl +1 -1
  80. package/examples/book/chapter-23/07-sum_numbers.pl +1 -1
  81. package/examples/book/chapter-23/08-sum_numbers_acc.pl +1 -1
  82. package/examples/book/chapter-24/01-simple_path.pl +1 -1
  83. package/examples/book/chapter-24/02-reachable.pl +1 -1
  84. package/examples/book/chapter-24/03-best_plan.pl +1 -1
  85. package/examples/book/chapter-25/01-person.pl +1 -1
  86. package/examples/book/chapter-25/02-active_badge.pl +1 -1
  87. package/examples/book/chapter-25/03-in_good_standing.pl +1 -1
  88. package/examples/book/chapter-25/04-incompatible_status.pl +1 -1
  89. package/examples/book/chapter-26/01-mortal.pl +1 -1
  90. package/examples/book/chapter-26/02-triple.pl +1 -1
  91. package/examples/book/chapter-26/03-edge.pl +1 -1
  92. package/examples/book/chapter-27/01-natural.pl +1 -1
  93. package/examples/book/chapter-27/02-list_length.pl +1 -1
  94. package/examples/book/chapter-27/03-reverse_acc.pl +1 -1
  95. package/examples/book/chapter-28/01-program.pl +1 -1
  96. package/examples/book/chapter-28/02-triangle.pl +1 -1
  97. package/examples/book/chapter-28/03-rectangle.pl +1 -1
  98. package/examples/book/chapter-28/04-preserves_combine.pl +1 -1
  99. package/examples/book/chapter-29/01-noncommuting_pair.pl +1 -1
  100. package/examples/book/chapter-32/01-eligible.pl +1 -1
  101. package/examples/book/chapter-32/02-eligible-2.pl +1 -1
  102. package/examples/book/chapter-33/01-assigned_badge.pl +1 -1
  103. package/examples/book/chapter-33/02-source_role.pl +1 -1
  104. package/examples/book/chapter-33/03-chosen_pair.pl +1 -1
  105. package/examples/book/chapter-33/04-path.pl +1 -1
  106. package/examples/book/chapter-33/05-unregistered.pl +1 -1
  107. package/examples/book/chapter-33/06-step.pl +1 -1
  108. package/examples/book/chapter-33/07-depends.pl +1 -1
  109. package/examples/book/chapter-33/08-within_limit.pl +1 -1
  110. package/examples/book/chapter-33/09-invalid_badge_assignment.pl +1 -1
  111. package/examples/book/chapter-33/10-theory_version.pl +1 -1
  112. package/examples/book/chapter-34/01-travel_status.pl +1 -1
  113. package/examples/book/chapter-34/02-require_route.pl +1 -1
  114. package/examples/book/chapter-34/03-regional_total.pl +1 -1
  115. package/examples/book/chapter-35/01-term_shape.pl +1 -1
  116. package/examples/book/chapter-36/01-program.pl +1 -1
  117. package/examples/book/chapter-36/02-program-2.pl +1 -1
  118. package/examples/book/chapter-36/03-program-3.pl +1 -1
  119. package/examples/book/chapter-37/01-write_event.pl +1 -1
  120. package/examples/book/chapter-38/01-city.pl +1 -1
  121. package/examples/cdcl-sat-solver.pl +2 -2
  122. package/examples/collatz-1000.pl +1 -1
  123. package/examples/equality-saturation.pl +1 -1
  124. package/examples/existential-rule.pl +1 -1
  125. package/examples/herbrand-semantics.pl +1 -1
  126. package/examples/herbrand-witnesses.pl +1 -1
  127. package/examples/iso-integer-arithmetic.pl +1 -1
  128. package/examples/knowledge-engineering-alignment-flow.pl +1 -1
  129. package/examples/language.pl +2 -2
  130. package/examples/law-of-cosines.pl +1 -1
  131. package/examples/linear-logic-resources.pl +1 -1
  132. package/examples/markov-logic-network.pl +1 -1
  133. package/examples/matrix-noncommutativity.pl +1 -1
  134. package/examples/partial-evaluator.pl +1 -1
  135. package/examples/peano-calculus.pl +1 -1
  136. package/examples/prime-range.pl +1 -1
  137. package/examples/register-allocation.pl +1 -1
  138. package/examples/route-planning.pl +1 -1
  139. package/examples/sat-solver-dpll.pl +1 -1
  140. package/examples/symbolic-derivative.pl +1 -1
  141. package/examples/term-tools.pl +1 -1
  142. package/examples/trust-flow-provenance-threshold.pl +1 -1
  143. package/examples/vector-similarity.pl +1 -1
  144. package/examples/web-names.pl +1 -1
  145. package/examples/workplace-compliance.pl +1 -1
  146. package/eyelang-logo.png +0 -0
  147. package/index.d.ts +68 -68
  148. package/index.js +1 -1
  149. package/package.json +2 -2
  150. package/playground.html +10 -10
  151. package/src/cli.js +4 -4
  152. package/src/explain.js +4 -4
  153. package/src/index.js +4 -4
  154. package/src/iso.js +1 -1
  155. package/src/library.js +7 -7
  156. package/src/parser.js +1 -1
  157. package/src/playground-worker.js +2 -2
  158. package/src/solver.js +4 -4
  159. package/src/term.js +1 -1
  160. package/test/conformance/README.md +6 -6
  161. package/test/conformance/THIRD_PARTY.md +4 -4
  162. package/test/conformance/cases/iso/logtalk_abolish.pl +1 -1
  163. package/test/conformance/cases/iso/logtalk_arg_unification.pl +1 -1
  164. package/test/conformance/cases/iso/logtalk_assert_order.pl +1 -1
  165. package/test/conformance/cases/iso/logtalk_atom_chars.pl +1 -1
  166. package/test/conformance/cases/iso/logtalk_atom_codes.pl +1 -1
  167. package/test/conformance/cases/iso/logtalk_atom_concat.pl +1 -1
  168. package/test/conformance/cases/iso/logtalk_atom_length.pl +1 -1
  169. package/test/conformance/cases/iso/logtalk_bagof.pl +1 -1
  170. package/test/conformance/cases/iso/logtalk_char_code.pl +1 -1
  171. package/test/conformance/cases/iso/logtalk_clause.pl +1 -1
  172. package/test/conformance/cases/iso/logtalk_compare_standard_order.pl +1 -1
  173. package/test/conformance/cases/iso/logtalk_copy_term_semantics.pl +1 -1
  174. package/test/conformance/cases/iso/logtalk_current_predicate.pl +1 -1
  175. package/test/conformance/cases/iso/logtalk_current_streams.pl +1 -1
  176. package/test/conformance/cases/iso/logtalk_findall.pl +1 -1
  177. package/test/conformance/cases/iso/logtalk_number_chars.pl +1 -1
  178. package/test/conformance/cases/iso/logtalk_number_codes.pl +1 -1
  179. package/test/conformance/cases/iso/logtalk_occurs_check.pl +1 -1
  180. package/test/conformance/cases/iso/logtalk_once.pl +1 -1
  181. package/test/conformance/cases/iso/logtalk_operators.pl +1 -1
  182. package/test/conformance/cases/iso/logtalk_prolog_flags.pl +1 -1
  183. package/test/conformance/cases/iso/logtalk_repeat.pl +1 -1
  184. package/test/conformance/cases/iso/logtalk_retract.pl +1 -1
  185. package/test/conformance/cases/iso/logtalk_setof.pl +1 -1
  186. package/test/conformance/cases/iso/logtalk_sub_atom.pl +1 -1
  187. package/test/conformance/cases/iso/logtalk_term_comparison.pl +1 -1
  188. package/test/conformance/cases/iso/logtalk_term_variables.pl +1 -1
  189. package/test/conformance/cases/iso/logtalk_univ.pl +1 -1
  190. package/test/conformance/cases/strings/064_reusable_string_builtins.pl +3 -3
  191. package/test/conformance/cases/strings/071_string_edges.pl +1 -1
  192. package/test/conformance/errors/iso/logtalk_abolish_arity_type.pl +1 -1
  193. package/test/conformance/errors/iso/logtalk_abolish_bad_indicator.pl +1 -1
  194. package/test/conformance/errors/iso/logtalk_abolish_name_type.pl +1 -1
  195. package/test/conformance/errors/iso/logtalk_abolish_negative_arity.pl +1 -1
  196. package/test/conformance/errors/iso/logtalk_abolish_unbound.pl +1 -1
  197. package/test/conformance/errors/iso/logtalk_abolish_unbound_arity.pl +1 -1
  198. package/test/conformance/errors/iso/logtalk_arg_index_type.pl +1 -1
  199. package/test/conformance/errors/iso/logtalk_arg_number.pl +1 -1
  200. package/test/conformance/errors/iso/logtalk_asserta_bad_body.pl +1 -1
  201. package/test/conformance/errors/iso/logtalk_asserta_noncallable.pl +1 -1
  202. package/test/conformance/errors/iso/logtalk_assertz_noncallable.pl +1 -1
  203. package/test/conformance/errors/iso/logtalk_atom_chars_atom_type.pl +1 -1
  204. package/test/conformance/errors/iso/logtalk_atom_chars_character_type.pl +1 -1
  205. package/test/conformance/errors/iso/logtalk_atom_chars_improper.pl +1 -1
  206. package/test/conformance/errors/iso/logtalk_atom_chars_list_type.pl +1 -1
  207. package/test/conformance/errors/iso/logtalk_atom_chars_unbound.pl +1 -1
  208. package/test/conformance/errors/iso/logtalk_atom_codes_atom_type.pl +1 -1
  209. package/test/conformance/errors/iso/logtalk_atom_codes_bad_code.pl +1 -1
  210. package/test/conformance/errors/iso/logtalk_atom_codes_integer_type.pl +1 -1
  211. package/test/conformance/errors/iso/logtalk_atom_codes_list_type.pl +1 -1
  212. package/test/conformance/errors/iso/logtalk_atom_codes_unbound.pl +1 -1
  213. package/test/conformance/errors/iso/logtalk_atom_concat_left_type.pl +1 -1
  214. package/test/conformance/errors/iso/logtalk_atom_concat_right_type.pl +1 -1
  215. package/test/conformance/errors/iso/logtalk_atom_concat_unbound.pl +1 -1
  216. package/test/conformance/errors/iso/logtalk_atom_concat_whole_type.pl +1 -1
  217. package/test/conformance/errors/iso/logtalk_atom_length_atom_type.pl +1 -1
  218. package/test/conformance/errors/iso/logtalk_atom_length_integer_type.pl +1 -1
  219. package/test/conformance/errors/iso/logtalk_atom_length_negative.pl +1 -1
  220. package/test/conformance/errors/iso/logtalk_atom_length_unbound.pl +1 -1
  221. package/test/conformance/errors/iso/logtalk_bagof_improper.pl +1 -1
  222. package/test/conformance/errors/iso/logtalk_bagof_nonlist.pl +1 -1
  223. package/test/conformance/errors/iso/logtalk_char_code_character_type.pl +1 -1
  224. package/test/conformance/errors/iso/logtalk_char_code_integer_type.pl +1 -1
  225. package/test/conformance/errors/iso/logtalk_char_code_negative.pl +1 -1
  226. package/test/conformance/errors/iso/logtalk_char_code_number_character.pl +1 -1
  227. package/test/conformance/errors/iso/logtalk_char_code_unbound.pl +1 -1
  228. package/test/conformance/errors/iso/logtalk_clause_noncallable_body.pl +1 -1
  229. package/test/conformance/errors/iso/logtalk_clause_noncallable_head.pl +1 -1
  230. package/test/conformance/errors/iso/logtalk_compare_order_domain.pl +1 -1
  231. package/test/conformance/errors/iso/logtalk_compare_order_type.pl +1 -1
  232. package/test/conformance/errors/iso/logtalk_current_flag_compound.pl +1 -1
  233. package/test/conformance/errors/iso/logtalk_current_flag_name_type.pl +1 -1
  234. package/test/conformance/errors/iso/logtalk_current_flag_unknown.pl +1 -1
  235. package/test/conformance/errors/iso/logtalk_current_input_bad_stream.pl +1 -1
  236. package/test/conformance/errors/iso/logtalk_current_op_bad_specifier.pl +1 -1
  237. package/test/conformance/errors/iso/logtalk_current_op_high_priority.pl +1 -1
  238. package/test/conformance/errors/iso/logtalk_current_output_bad_stream.pl +1 -1
  239. package/test/conformance/errors/iso/logtalk_current_predicate_bad_name.pl +1 -1
  240. package/test/conformance/errors/iso/logtalk_current_predicate_negative_arity.pl +1 -1
  241. package/test/conformance/errors/iso/logtalk_current_predicate_scalar.pl +1 -1
  242. package/test/conformance/errors/iso/logtalk_findall_improper.pl +1 -1
  243. package/test/conformance/errors/iso/logtalk_findall_nonlist.pl +1 -1
  244. package/test/conformance/errors/iso/logtalk_functor_arity_type.pl +1 -1
  245. package/test/conformance/errors/iso/logtalk_functor_compound_name.pl +1 -1
  246. package/test/conformance/errors/iso/logtalk_functor_float_name.pl +1 -1
  247. package/test/conformance/errors/iso/logtalk_number_chars_character_type.pl +1 -1
  248. package/test/conformance/errors/iso/logtalk_number_chars_list_type.pl +1 -1
  249. package/test/conformance/errors/iso/logtalk_number_chars_number_type.pl +1 -1
  250. package/test/conformance/errors/iso/logtalk_number_chars_partial.pl +1 -1
  251. package/test/conformance/errors/iso/logtalk_number_chars_syntax.pl +1 -1
  252. package/test/conformance/errors/iso/logtalk_number_chars_unbound.pl +1 -1
  253. package/test/conformance/errors/iso/logtalk_number_codes_bad_code.pl +1 -1
  254. package/test/conformance/errors/iso/logtalk_number_codes_list_type.pl +1 -1
  255. package/test/conformance/errors/iso/logtalk_number_codes_number_type.pl +1 -1
  256. package/test/conformance/errors/iso/logtalk_number_codes_partial.pl +1 -1
  257. package/test/conformance/errors/iso/logtalk_number_codes_syntax.pl +1 -1
  258. package/test/conformance/errors/iso/logtalk_number_codes_unbound.pl +1 -1
  259. package/test/conformance/errors/iso/logtalk_once_noncallable.pl +1 -1
  260. package/test/conformance/errors/iso/logtalk_once_unbound.pl +1 -1
  261. package/test/conformance/errors/iso/logtalk_op_bad_specifier.pl +1 -1
  262. package/test/conformance/errors/iso/logtalk_op_high_priority.pl +1 -1
  263. package/test/conformance/errors/iso/logtalk_op_negative_priority.pl +1 -1
  264. package/test/conformance/errors/iso/logtalk_op_priority_type.pl +1 -1
  265. package/test/conformance/errors/iso/logtalk_op_unbound_name.pl +1 -1
  266. package/test/conformance/errors/iso/logtalk_op_unbound_priority.pl +1 -1
  267. package/test/conformance/errors/iso/logtalk_op_unbound_specifier.pl +1 -1
  268. package/test/conformance/errors/iso/logtalk_retract_unbound.pl +1 -1
  269. package/test/conformance/errors/iso/logtalk_retract_unbound_head.pl +1 -1
  270. package/test/conformance/errors/iso/logtalk_set_flag_name_type.pl +1 -1
  271. package/test/conformance/errors/iso/logtalk_set_flag_unbound_name.pl +1 -1
  272. package/test/conformance/errors/iso/logtalk_set_flag_unbound_value.pl +1 -1
  273. package/test/conformance/errors/iso/logtalk_set_flag_unknown.pl +1 -1
  274. package/test/conformance/errors/iso/logtalk_set_flag_value.pl +1 -1
  275. package/test/conformance/errors/iso/logtalk_setof_nonlist.pl +1 -1
  276. package/test/conformance/errors/iso/logtalk_sub_atom_before_type.pl +1 -1
  277. package/test/conformance/errors/iso/logtalk_sub_atom_negative.pl +1 -1
  278. package/test/conformance/errors/iso/logtalk_sub_atom_result_type.pl +1 -1
  279. package/test/conformance/errors/iso/logtalk_sub_atom_source_type.pl +1 -1
  280. package/test/conformance/errors/iso/logtalk_sub_atom_unbound.pl +1 -1
  281. package/test/conformance/errors/iso/logtalk_term_variables_improper.pl +1 -1
  282. package/test/conformance/errors/iso/logtalk_term_variables_nonlist.pl +1 -1
  283. package/test/conformance/errors/iso/logtalk_univ_head_compound.pl +1 -1
  284. package/test/conformance/errors/iso/logtalk_univ_head_float.pl +1 -1
  285. package/test/conformance/errors/iso/logtalk_univ_head_integer.pl +1 -1
  286. package/test/conformance/errors/iso/logtalk_univ_single_compound.pl +1 -1
  287. package/test/conformance/expected/strings/064_reusable_string_builtins.pl +1 -1
  288. package/test/run-conformance-report.mjs +4 -4
  289. package/test/run-conformance.mjs +3 -3
  290. package/test/run-playground.mjs +3 -3
  291. package/test/run-rdf-tools.mjs +15 -15
  292. package/test/run-regression.mjs +35 -35
  293. package/the-art-of-eyelang.md +136 -136
  294. package/tools/README.md +2 -2
  295. package/tools/extract-book-examples.mjs +4 -4
  296. package/tools/pl-to-rdf.mjs +2 -2
  297. package/tools/rdf-codec.mjs +8 -8
  298. package/tools/rdf-to-pl.mjs +9 -9
  299. package/why-eyelang.md +47 -47
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk sics_findall_3_09. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk sics_findall_3_09. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: findall(X, X = 1, [_ | 1])
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eclipse_findall_3_10. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eclipse_findall_3_10. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: findall(X, (X = 2; X = 1), 12)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_functor_3_14. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_functor_3_14. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: functor(_, foo, a)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_functor_3_16. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_functor_3_16. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: functor(_, foo(a), 1)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_functor_3_15. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_functor_3_15. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: functor(_, 1.5, 1)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_number_chars_2_19. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_number_chars_2_19. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: number_chars(_, ['4', 2])
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_number_chars_2_18. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_number_chars_2_18. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: number_chars(_, 4)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_number_chars_2_17. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_number_chars_2_17. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: number_chars(a, _)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk sics_number_chars_2_20. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk sics_number_chars_2_20. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: number_chars(_, [a | _])
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk sics_number_chars_2_29. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk sics_number_chars_2_29. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: number_chars(_, [a])
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_number_chars_2_16. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_number_chars_2_16. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: number_chars(_, _)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_number_codes_2_17. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_number_codes_2_17. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: number_codes(_, [52, -1])
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_number_codes_2_16. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_number_codes_2_16. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: number_codes(_, 4)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_number_codes_2_15. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_number_codes_2_15. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: number_codes(a, _)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk sics_number_codes_2_18. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk sics_number_codes_2_18. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: number_codes(_, [97 | _])
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk sics_number_codes_2_24. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk sics_number_codes_2_24. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: number_codes(_, [97])
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_number_codes_2_14. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_number_codes_2_14. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: number_codes(_, _)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_once_1_06. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_once_1_06. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: once(3)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_once_1_07. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_once_1_07. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: once(_)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_op_3_07. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_op_3_07. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: op(30, yfy, '++')
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_op_3_05. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_op_3_05. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: op(1201, xfy, '++')
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_op_3_04. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_op_3_04. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: op(-30, xfy, '++')
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_op_3_03. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_op_3_03. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: op(max, xfy, '++')
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk sics_op_3_24. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk sics_op_3_24. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: op(100, xfx, _)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk sics_op_3_23. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk sics_op_3_23. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: op(_, xfx, '++')
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_op_3_06. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_op_3_06. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: op(30, _, '++')
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk lgt_retract_1_12. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk lgt_retract_1_12. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: retract(_)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_retract_1_09. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_retract_1_09. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: retract((_ :- in_eec(_)))
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_set_prolog_flag_2_03. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_set_prolog_flag_2_03. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: set_prolog_flag(5, decimals)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_set_prolog_flag_2_02. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_set_prolog_flag_2_02. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: set_prolog_flag(_, off)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk lgt_set_prolog_flag_2_09. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk lgt_set_prolog_flag_2_09. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: set_prolog_flag(unknown, _)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_set_prolog_flag_2_04. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_set_prolog_flag_2_04. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: set_prolog_flag(date, 'July 1999')
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_set_prolog_flag_2_05. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_set_prolog_flag_2_05. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: set_prolog_flag(debug, trace)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from the Logtalk setof/3 list validation cases. Modified for EyeLang.
1
+ % Adapted from the Logtalk setof/3 list validation cases. Modified for Eyelang.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: setof(X, (X = 2; X = 1), 12)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_sub_atom_5_11. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_sub_atom_5_11. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: sub_atom('Banana', a, 2, _, _)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk sics_sub_atom_5_14. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk sics_sub_atom_5_14. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: sub_atom('Banana', -2, 3, 4, _)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_sub_atom_5_10. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_sub_atom_5_10. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: sub_atom('Banana', 4, 2, _, 2)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_sub_atom_5_09. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_sub_atom_5_09. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: sub_atom(f(a), 2, 2, _, _)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eddbali_sub_atom_5_08. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eddbali_sub_atom_5_08. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: sub_atom(_, 3, 2, _, _)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_term_variables_2_05. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_term_variables_2_05. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: term_variables(t, [_, _ | a])
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk eclipse_term_variables_2_10. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk eclipse_term_variables_2_10. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: term_variables(foo, 3)
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_univ_2_13. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_univ_2_13. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: _ =.. [a(b), 1]
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_univ_2_12. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_univ_2_12. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: _ =.. [1.1, foo]
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk iso_univ_2_11. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk iso_univ_2_11. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: _ =.. [3, 1]
4
4
 
@@ -1,4 +1,4 @@
1
- % Adapted from Logtalk sics_univ_2_16. Modified for EyeLang's harness.
1
+ % Adapted from Logtalk sics_univ_2_16. Modified for Eyelang's harness.
2
2
  % See test/conformance/THIRD_PARTY.md.
3
3
  %% goal: _ =.. [f(a)]
4
4
 
@@ -1,4 +1,4 @@
1
- answer(trim, "Hello EyeLang").
1
+ answer(trim, "Hello Eyelang").
2
2
  answer(lower, "hello eyelang").
3
3
  answer(upper, "HELLO EYELANG").
4
4
  answer(split, ["red", "green", "blue"]).
@@ -24,7 +24,7 @@ export function buildConformanceReport() {
24
24
  for (const { kind, expectedKind, expectedExt, column } of KINDS) {
25
25
  const base = path.join(conformanceRoot, kind);
26
26
  if (!fs.existsSync(base)) continue;
27
- for (const file of listEyeLangFiles(base)) {
27
+ for (const file of listEyelangFiles(base)) {
28
28
  const category = categoryOf(file);
29
29
  const counts = ensureCategory(categories, category);
30
30
  counts[column]++;
@@ -56,7 +56,7 @@ export function buildConformanceReport() {
56
56
 
57
57
  export function formatConformanceReport(report = buildConformanceReport()) {
58
58
  const lines = [
59
- '# EyeLang conformance report',
59
+ '# Eyelang conformance report',
60
60
  '',
61
61
  'This report summarizes the file-based conformance corpus under `test/conformance/`.',
62
62
  '',
@@ -77,12 +77,12 @@ export function formatConformanceReport(report = buildConformanceReport()) {
77
77
  return `${lines.join('\n')}\n`;
78
78
  }
79
79
 
80
- function listEyeLangFiles(base, dir = base) {
80
+ function listEyelangFiles(base, dir = base) {
81
81
  const files = [];
82
82
  for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
83
83
  const full = path.join(dir, entry.name);
84
84
  if (entry.isDirectory()) {
85
- files.push(...listEyeLangFiles(base, full));
85
+ files.push(...listEyelangFiles(base, full));
86
86
  } else if (entry.isFile() && entry.name.endsWith('.pl')) {
87
87
  files.push(path.relative(base, full).split(path.sep).join('/'));
88
88
  }
@@ -26,7 +26,7 @@ export function runConformance(reporter = new TestReporter(), requestedFilter =
26
26
  function listCaseFiles(kind, filter = null) {
27
27
  const base = path.join(root, 'conformance', kind);
28
28
  if (!fs.existsSync(base)) return [];
29
- return listEyeLangFiles(base)
29
+ return listEyelangFiles(base)
30
30
  .filter((name) => matchesFilter(kind, name, filter))
31
31
  .sort();
32
32
  }
@@ -42,12 +42,12 @@ function matchesFilter(kind, name, filter) {
42
42
  || `${label}/${stem}`.includes(filter);
43
43
  }
44
44
 
45
- function listEyeLangFiles(base, dir = base) {
45
+ function listEyelangFiles(base, dir = base) {
46
46
  const files = [];
47
47
  for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
48
48
  const full = path.join(dir, entry.name);
49
49
  if (entry.isDirectory()) {
50
- files.push(...listEyeLangFiles(base, full));
50
+ files.push(...listEyelangFiles(base, full));
51
51
  } else if (entry.isFile() && entry.name.endsWith('.pl')) {
52
52
  files.push(path.relative(base, full).split(path.sep).join('/'));
53
53
  }
@@ -25,7 +25,7 @@ export async function runPlayground(reporter = new TestReporter()) {
25
25
  assertNotIncludes(html, 'URL.createObjectURL(new Blob([workerCode]', 'inline blob worker');
26
26
  });
27
27
 
28
- await reporter.testAsync('worker loads append/3 from the EyeLang library', async () => {
28
+ await reporter.testAsync('worker loads append/3 from the Eyelang library', async () => {
29
29
  const result = executePlaygroundRequest({
30
30
  source: 'answer(X) :- append([a], [b], X).\n',
31
31
  options: { goal: 'answer(X)' },
@@ -35,7 +35,7 @@ export async function runPlayground(reporter = new TestReporter()) {
35
35
  assertEqual(result.elapsedMs, 1, 'elapsed time');
36
36
  });
37
37
 
38
- await reporter.testAsync('worker keeps the EyeLang library across runs', async () => {
38
+ await reporter.testAsync('worker keeps the Eyelang library across runs', async () => {
39
39
  const first = executePlaygroundRequest({
40
40
  source: 'answer(X) :- reverse([a, b, c], X).\n',
41
41
  options: { goal: 'answer(X)' },
@@ -94,7 +94,7 @@ export async function runPlayground(reporter = new TestReporter()) {
94
94
  await withStaticServer(async (baseUrl) => {
95
95
  const modules = await crawlModuleGraph(new URL('src/playground-worker.js?playground=test', baseUrl));
96
96
  assert(modules.size >= 10, `expected a substantial worker module graph, got ${modules.size}`);
97
- assert([...modules].some((url) => url.includes('/src/library.js')), 'EyeLang library missing from worker graph');
97
+ assert([...modules].some((url) => url.includes('/src/library.js')), 'Eyelang library missing from worker graph');
98
98
  assert([...modules].some((url) => url.includes('/src/solver.js')), 'solver missing from worker graph');
99
99
  });
100
100
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs/promises';
3
- import { compileRdfDocumentToEyeLang, compileRdfToEyeLang } from '../tools/rdf-to-pl.mjs';
4
- import { extractEyeLangRdf } from '../tools/pl-to-rdf.mjs';
3
+ import { compileRdfDocumentToEyelang, compileRdfToEyelang } from '../tools/rdf-to-pl.mjs';
4
+ import { extractEyelangRdf } from '../tools/pl-to-rdf.mjs';
5
5
  import { run } from '../src/index.js';
6
6
  import { TestReporter, isMainModule } from './test-style.mjs';
7
7
 
@@ -9,29 +9,29 @@ export async function runRdfTools(reporter = new TestReporter()) {
9
9
  reporter.section('RDF tools');
10
10
  reporter.test('N-Quads survives an include-source round trip', () => {
11
11
  const input = '<https://example/s> <https://example/p> "chat"@fr <https://example/g> .\n_:a <https://example/value> "42"^^<http://www.w3.org/2001/XMLSchema#integer> .\n';
12
- const output = run(compileRdfToEyeLang(input, { scope: 'doc', includeSource: true }), { goal: 'rdf(S, P, O, G)' }).stdout;
13
- equal(extractEyeLangRdf(output), '<https://example/s> <https://example/p> "chat"@fr <https://example/g> .\n_:e646f63_61 <https://example/value> "42"^^<http://www.w3.org/2001/XMLSchema#integer> .\n');
12
+ const output = run(compileRdfToEyelang(input, { scope: 'doc', includeSource: true }), { goal: 'rdf(S, P, O, G)' }).stdout;
13
+ equal(extractEyelangRdf(output), '<https://example/s> <https://example/p> "chat"@fr <https://example/g> .\n_:e646f63_61 <https://example/value> "42"^^<http://www.w3.org/2001/XMLSchema#integer> .\n');
14
14
  });
15
15
  reporter.test('default mode emits only rule-derived quads', () => {
16
16
  const input = '<https://example/s> <https://example/parent> <https://example/o> .\n';
17
17
  const rules = 'rdf(S, iri("https://example/ancestor"), O, G) :- rdf(S, iri("https://example/parent"), O, G).';
18
- const output = run(compileRdfToEyeLang(input, { rules }), { goal: 'rdf(S, P, O, G)' }).stdout;
19
- equal(extractEyeLangRdf(output), '<https://example/s> <https://example/ancestor> <https://example/o> .\n');
18
+ const output = run(compileRdfToEyelang(input, { rules }), { goal: 'rdf(S, P, O, G)' }).stdout;
19
+ equal(extractEyelangRdf(output), '<https://example/s> <https://example/ancestor> <https://example/o> .\n');
20
20
  });
21
21
  reporter.test('RDF 1.2 terms survive an include-source round trip', () => {
22
22
  const input = 'VERSION "1.2"\n<https://example/s> <https://example/says> <<( _:a <https://example/text> "مرحبا"@ar--rtl )>> .\n';
23
- const output = run(compileRdfToEyeLang(input, { scope: 'doc', includeSource: true }), { goal: 'rdf(S, P, O, G)' }).stdout;
24
- equal(extractEyeLangRdf(output), '<https://example/s> <https://example/says> <<( _:e646f63_61 <https://example/text> "مرحبا"@ar--rtl )>> .\n');
23
+ const output = run(compileRdfToEyelang(input, { scope: 'doc', includeSource: true }), { goal: 'rdf(S, P, O, G)' }).stdout;
24
+ equal(extractEyelangRdf(output), '<https://example/s> <https://example/says> <<( _:e646f63_61 <https://example/text> "مرحبا"@ar--rtl )>> .\n');
25
25
  });
26
26
  reporter.test('nested RDF 1.2 triple terms survive a round trip', () => {
27
27
  const input = '<https://example/s> <https://example/p> <<( <https://example/a> <https://example/b> <<( _:x <https://example/c> "line\\nfeed" )>> )>> .\n';
28
- const output = run(compileRdfToEyeLang(input, { scope: 'doc', includeSource: true }), { goal: 'rdf(S, P, O, G)' }).stdout;
29
- equal(extractEyeLangRdf(output), '<https://example/s> <https://example/p> <<( <https://example/a> <https://example/b> <<( _:e646f63_78 <https://example/c> "line\\nfeed" )>> )>> .\n');
28
+ const output = run(compileRdfToEyelang(input, { scope: 'doc', includeSource: true }), { goal: 'rdf(S, P, O, G)' }).stdout;
29
+ equal(extractEyelangRdf(output), '<https://example/s> <https://example/p> <<( <https://example/a> <https://example/b> <<( _:e646f63_78 <https://example/c> "line\\nfeed" )>> )>> .\n');
30
30
  });
31
31
  reporter.test('RDF blank-node labels accept the full Unicode production', () => {
32
32
  const input = '_:éclair <https://example/p> _:名.\n';
33
- const output = run(compileRdfToEyeLang(input, { scope: 'doc', includeSource: true }), { goal: 'rdf(S, P, O, G)' }).stdout;
34
- equal(extractEyeLangRdf(output), '_:e646f63_c3a9636c616972 <https://example/p> _:e646f63_e5908d .\n');
33
+ const output = run(compileRdfToEyelang(input, { scope: 'doc', includeSource: true }), { goal: 'rdf(S, P, O, G)' }).stdout;
34
+ equal(extractEyelangRdf(output), '_:e646f63_c3a9636c616972 <https://example/p> _:e646f63_e5908d .\n');
35
35
  });
36
36
  const generatedFixtures = [
37
37
  ['RDF 1.2 annotation example', 'rdf12-annotation', 'rdf12-annotation'],
@@ -46,7 +46,7 @@ export async function runRdfTools(reporter = new TestReporter()) {
46
46
  for (const [label, programStem, inputStem] of generatedFixtures) {
47
47
  const source = await fs.readFile(new URL(`../examples/input/${inputStem}.ttl`, import.meta.url), 'utf8');
48
48
  const rules = await fs.readFile(new URL(`../examples/input/${inputStem}-rules.pl`, import.meta.url), 'utf8');
49
- const generated = await compileRdfDocumentToEyeLang(source, {
49
+ const generated = await compileRdfDocumentToEyelang(source, {
50
50
  inputPath: `${inputStem}.ttl`,
51
51
  scope: `${inputStem}.ttl`,
52
52
  rules,
@@ -64,8 +64,8 @@ export async function runRdfTools(reporter = new TestReporter()) {
64
64
  ['RDFa', 'example.html', '<div prefix="ex: https://example/" about="ex:s"><a property="ex:p" href="https://example/o">o</a></div>'],
65
65
  ];
66
66
  for (const [name, inputPath, source] of documents) {
67
- const program = await compileRdfDocumentToEyeLang(source, { inputPath, includeSource: true, scope: inputPath, baseIRI: 'https://example/base' });
68
- const output = extractEyeLangRdf(run(program, { goal: 'rdf(S, P, O, G)' }).stdout);
67
+ const program = await compileRdfDocumentToEyelang(source, { inputPath, includeSource: true, scope: inputPath, baseIRI: 'https://example/base' });
68
+ const output = extractEyelangRdf(run(program, { goal: 'rdf(S, P, O, G)' }).stdout);
69
69
  reporter.test(`${name} input is accepted`, () => { if (!output) throw new Error('expected at least one RDF quad'); });
70
70
  }
71
71
  reporter.sectionTotal('RDF tool');