LilyPond-Ruby 0.1.1 → 0.1.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 (1109) hide show
  1. checksums.yaml +4 -4
  2. data/etc/fonts/conf.d/10-hinting-slight.conf +15 -0
  3. data/etc/fonts/conf.d/10-scale-bitmap-fonts.conf +83 -0
  4. data/etc/fonts/conf.d/11-lcdfilter-default.conf +17 -0
  5. data/etc/fonts/conf.d/20-unhint-small-vera.conf +49 -0
  6. data/etc/fonts/conf.d/30-metric-aliases.conf +637 -0
  7. data/etc/fonts/conf.d/40-nonlatin.conf +332 -0
  8. data/etc/fonts/conf.d/45-generic.conf +136 -0
  9. data/etc/fonts/conf.d/45-latin.conf +301 -0
  10. data/etc/fonts/conf.d/48-spacing.conf +16 -0
  11. data/etc/fonts/conf.d/49-sansserif.conf +22 -0
  12. data/etc/fonts/conf.d/50-user.conf +16 -0
  13. data/etc/fonts/conf.d/51-local.conf +7 -0
  14. data/etc/fonts/conf.d/60-generic.conf +64 -0
  15. data/etc/fonts/conf.d/60-latin.conf +88 -0
  16. data/etc/fonts/conf.d/65-fonts-persian.conf +418 -0
  17. data/etc/fonts/conf.d/65-nonlatin.conf +228 -0
  18. data/etc/fonts/conf.d/69-unifont.conf +28 -0
  19. data/etc/fonts/conf.d/80-delicious.conf +19 -0
  20. data/etc/fonts/conf.d/90-synthetic.conf +64 -0
  21. data/etc/fonts/conf.d/README +23 -0
  22. data/etc/fonts/fonts.conf +101 -0
  23. data/etc/relocate/fontconfig.reloc +2 -0
  24. data/etc/relocate/guile.reloc +2 -0
  25. data/etc/relocate/libexec.reloc +1 -0
  26. data/lib/guile/2.2/ccache/ice-9/and-let-star.go +0 -0
  27. data/lib/guile/2.2/ccache/ice-9/arrays.go +0 -0
  28. data/lib/guile/2.2/ccache/ice-9/atomic.go +0 -0
  29. data/lib/guile/2.2/ccache/ice-9/binary-ports.go +0 -0
  30. data/lib/guile/2.2/ccache/ice-9/boot-9.go +0 -0
  31. data/lib/guile/2.2/ccache/ice-9/buffered-input.go +0 -0
  32. data/lib/guile/2.2/ccache/ice-9/calling.go +0 -0
  33. data/lib/guile/2.2/ccache/ice-9/channel.go +0 -0
  34. data/lib/guile/2.2/ccache/ice-9/command-line.go +0 -0
  35. data/lib/guile/2.2/ccache/ice-9/common-list.go +0 -0
  36. data/lib/guile/2.2/ccache/ice-9/control.go +0 -0
  37. data/lib/guile/2.2/ccache/ice-9/curried-definitions.go +0 -0
  38. data/lib/guile/2.2/ccache/ice-9/debug.go +0 -0
  39. data/lib/guile/2.2/ccache/ice-9/deprecated.go +0 -0
  40. data/lib/guile/2.2/ccache/ice-9/documentation.go +0 -0
  41. data/lib/guile/2.2/ccache/ice-9/eval-string.go +0 -0
  42. data/lib/guile/2.2/ccache/ice-9/eval.go +0 -0
  43. data/lib/guile/2.2/ccache/ice-9/expect.go +0 -0
  44. data/lib/guile/2.2/ccache/ice-9/fdes-finalizers.go +0 -0
  45. data/lib/guile/2.2/ccache/ice-9/format.go +0 -0
  46. data/lib/guile/2.2/ccache/ice-9/ftw.go +0 -0
  47. data/lib/guile/2.2/ccache/ice-9/futures.go +0 -0
  48. data/lib/guile/2.2/ccache/ice-9/gap-buffer.go +0 -0
  49. data/lib/guile/2.2/ccache/ice-9/getopt-long.go +0 -0
  50. data/lib/guile/2.2/ccache/ice-9/hash-table.go +0 -0
  51. data/lib/guile/2.2/ccache/ice-9/hcons.go +0 -0
  52. data/lib/guile/2.2/ccache/ice-9/history.go +0 -0
  53. data/lib/guile/2.2/ccache/ice-9/i18n.go +0 -0
  54. data/lib/guile/2.2/ccache/ice-9/iconv.go +0 -0
  55. data/lib/guile/2.2/ccache/ice-9/lineio.go +0 -0
  56. data/lib/guile/2.2/ccache/ice-9/list.go +0 -0
  57. data/lib/guile/2.2/ccache/ice-9/local-eval.go +0 -0
  58. data/lib/guile/2.2/ccache/ice-9/ls.go +0 -0
  59. data/lib/guile/2.2/ccache/ice-9/mapping.go +0 -0
  60. data/lib/guile/2.2/ccache/ice-9/match.go +0 -0
  61. data/lib/guile/2.2/ccache/ice-9/networking.go +0 -0
  62. data/lib/guile/2.2/ccache/ice-9/null.go +0 -0
  63. data/lib/guile/2.2/ccache/ice-9/occam-channel.go +0 -0
  64. data/lib/guile/2.2/ccache/ice-9/optargs.go +0 -0
  65. data/lib/guile/2.2/ccache/ice-9/peg/cache.go +0 -0
  66. data/lib/guile/2.2/ccache/ice-9/peg/codegen.go +0 -0
  67. data/lib/guile/2.2/ccache/ice-9/peg/simplify-tree.go +0 -0
  68. data/lib/guile/2.2/ccache/ice-9/peg/string-peg.go +0 -0
  69. data/lib/guile/2.2/ccache/ice-9/peg/using-parsers.go +0 -0
  70. data/lib/guile/2.2/ccache/ice-9/peg.go +0 -0
  71. data/lib/guile/2.2/ccache/ice-9/poe.go +0 -0
  72. data/lib/guile/2.2/ccache/ice-9/poll.go +0 -0
  73. data/lib/guile/2.2/ccache/ice-9/popen.go +0 -0
  74. data/lib/guile/2.2/ccache/ice-9/ports.go +0 -0
  75. data/lib/guile/2.2/ccache/ice-9/posix.go +0 -0
  76. data/lib/guile/2.2/ccache/ice-9/pretty-print.go +0 -0
  77. data/lib/guile/2.2/ccache/ice-9/psyntax-pp.go +0 -0
  78. data/lib/guile/2.2/ccache/ice-9/q.go +0 -0
  79. data/lib/guile/2.2/ccache/ice-9/r5rs.go +0 -0
  80. data/lib/guile/2.2/ccache/ice-9/rdelim.go +0 -0
  81. data/lib/guile/2.2/ccache/ice-9/receive.go +0 -0
  82. data/lib/guile/2.2/ccache/ice-9/regex.go +0 -0
  83. data/lib/guile/2.2/ccache/ice-9/runq.go +0 -0
  84. data/lib/guile/2.2/ccache/ice-9/rw.go +0 -0
  85. data/lib/guile/2.2/ccache/ice-9/safe-r5rs.go +0 -0
  86. data/lib/guile/2.2/ccache/ice-9/safe.go +0 -0
  87. data/lib/guile/2.2/ccache/ice-9/sandbox.go +0 -0
  88. data/lib/guile/2.2/ccache/ice-9/save-stack.go +0 -0
  89. data/lib/guile/2.2/ccache/ice-9/scm-style-repl.go +0 -0
  90. data/lib/guile/2.2/ccache/ice-9/serialize.go +0 -0
  91. data/lib/guile/2.2/ccache/ice-9/session.go +0 -0
  92. data/lib/guile/2.2/ccache/ice-9/slib.go +0 -0
  93. data/lib/guile/2.2/ccache/ice-9/stack-catch.go +0 -0
  94. data/lib/guile/2.2/ccache/ice-9/streams.go +0 -0
  95. data/lib/guile/2.2/ccache/ice-9/string-fun.go +0 -0
  96. data/lib/guile/2.2/ccache/ice-9/suspendable-ports.go +0 -0
  97. data/lib/guile/2.2/ccache/ice-9/syncase.go +0 -0
  98. data/lib/guile/2.2/ccache/ice-9/textual-ports.go +0 -0
  99. data/lib/guile/2.2/ccache/ice-9/threads.go +0 -0
  100. data/lib/guile/2.2/ccache/ice-9/time.go +0 -0
  101. data/lib/guile/2.2/ccache/ice-9/top-repl.go +0 -0
  102. data/lib/guile/2.2/ccache/ice-9/unicode.go +0 -0
  103. data/lib/guile/2.2/ccache/ice-9/vlist.go +0 -0
  104. data/lib/guile/2.2/ccache/ice-9/weak-vector.go +0 -0
  105. data/lib/guile/2.2/ccache/language/brainfuck/compile-scheme.go +0 -0
  106. data/lib/guile/2.2/ccache/language/brainfuck/compile-tree-il.go +0 -0
  107. data/lib/guile/2.2/ccache/language/brainfuck/parse.go +0 -0
  108. data/lib/guile/2.2/ccache/language/brainfuck/spec.go +0 -0
  109. data/lib/guile/2.2/ccache/language/bytecode/spec.go +0 -0
  110. data/lib/guile/2.2/ccache/language/bytecode.go +0 -0
  111. data/lib/guile/2.2/ccache/language/cps/closure-conversion.go +0 -0
  112. data/lib/guile/2.2/ccache/language/cps/compile-bytecode.go +0 -0
  113. data/lib/guile/2.2/ccache/language/cps/constructors.go +0 -0
  114. data/lib/guile/2.2/ccache/language/cps/contification.go +0 -0
  115. data/lib/guile/2.2/ccache/language/cps/cse.go +0 -0
  116. data/lib/guile/2.2/ccache/language/cps/dce.go +0 -0
  117. data/lib/guile/2.2/ccache/language/cps/effects-analysis.go +0 -0
  118. data/lib/guile/2.2/ccache/language/cps/elide-values.go +0 -0
  119. data/lib/guile/2.2/ccache/language/cps/handle-interrupts.go +0 -0
  120. data/lib/guile/2.2/ccache/language/cps/intmap.go +0 -0
  121. data/lib/guile/2.2/ccache/language/cps/intset.go +0 -0
  122. data/lib/guile/2.2/ccache/language/cps/licm.go +0 -0
  123. data/lib/guile/2.2/ccache/language/cps/optimize.go +0 -0
  124. data/lib/guile/2.2/ccache/language/cps/peel-loops.go +0 -0
  125. data/lib/guile/2.2/ccache/language/cps/primitives.go +0 -0
  126. data/lib/guile/2.2/ccache/language/cps/prune-bailouts.go +0 -0
  127. data/lib/guile/2.2/ccache/language/cps/prune-top-level-scopes.go +0 -0
  128. data/lib/guile/2.2/ccache/language/cps/reify-primitives.go +0 -0
  129. data/lib/guile/2.2/ccache/language/cps/renumber.go +0 -0
  130. data/lib/guile/2.2/ccache/language/cps/rotate-loops.go +0 -0
  131. data/lib/guile/2.2/ccache/language/cps/self-references.go +0 -0
  132. data/lib/guile/2.2/ccache/language/cps/simplify.go +0 -0
  133. data/lib/guile/2.2/ccache/language/cps/slot-allocation.go +0 -0
  134. data/lib/guile/2.2/ccache/language/cps/spec.go +0 -0
  135. data/lib/guile/2.2/ccache/language/cps/specialize-numbers.go +0 -0
  136. data/lib/guile/2.2/ccache/language/cps/specialize-primcalls.go +0 -0
  137. data/lib/guile/2.2/ccache/language/cps/split-rec.go +0 -0
  138. data/lib/guile/2.2/ccache/language/cps/type-checks.go +0 -0
  139. data/lib/guile/2.2/ccache/language/cps/type-fold.go +0 -0
  140. data/lib/guile/2.2/ccache/language/cps/types.go +0 -0
  141. data/lib/guile/2.2/ccache/language/cps/utils.go +0 -0
  142. data/lib/guile/2.2/ccache/language/cps/verify.go +0 -0
  143. data/lib/guile/2.2/ccache/language/cps/with-cps.go +0 -0
  144. data/lib/guile/2.2/ccache/language/cps.go +0 -0
  145. data/lib/guile/2.2/ccache/language/ecmascript/array.go +0 -0
  146. data/lib/guile/2.2/ccache/language/ecmascript/base.go +0 -0
  147. data/lib/guile/2.2/ccache/language/ecmascript/compile-tree-il.go +0 -0
  148. data/lib/guile/2.2/ccache/language/ecmascript/function.go +0 -0
  149. data/lib/guile/2.2/ccache/language/ecmascript/impl.go +0 -0
  150. data/lib/guile/2.2/ccache/language/ecmascript/parse.go +0 -0
  151. data/lib/guile/2.2/ccache/language/ecmascript/spec.go +0 -0
  152. data/lib/guile/2.2/ccache/language/ecmascript/tokenize.go +0 -0
  153. data/lib/guile/2.2/ccache/language/elisp/bindings.go +0 -0
  154. data/lib/guile/2.2/ccache/language/elisp/boot.go +0 -0
  155. data/lib/guile/2.2/ccache/language/elisp/compile-tree-il.go +0 -0
  156. data/lib/guile/2.2/ccache/language/elisp/falias.go +0 -0
  157. data/lib/guile/2.2/ccache/language/elisp/lexer.go +0 -0
  158. data/lib/guile/2.2/ccache/language/elisp/parser.go +0 -0
  159. data/lib/guile/2.2/ccache/language/elisp/runtime/function-slot.go +0 -0
  160. data/lib/guile/2.2/ccache/language/elisp/runtime/value-slot.go +0 -0
  161. data/lib/guile/2.2/ccache/language/elisp/runtime.go +0 -0
  162. data/lib/guile/2.2/ccache/language/elisp/spec.go +0 -0
  163. data/lib/guile/2.2/ccache/language/scheme/compile-tree-il.go +0 -0
  164. data/lib/guile/2.2/ccache/language/scheme/decompile-tree-il.go +0 -0
  165. data/lib/guile/2.2/ccache/language/scheme/spec.go +0 -0
  166. data/lib/guile/2.2/ccache/language/tree-il/analyze.go +0 -0
  167. data/lib/guile/2.2/ccache/language/tree-il/canonicalize.go +0 -0
  168. data/lib/guile/2.2/ccache/language/tree-il/compile-cps.go +0 -0
  169. data/lib/guile/2.2/ccache/language/tree-il/debug.go +0 -0
  170. data/lib/guile/2.2/ccache/language/tree-il/effects.go +0 -0
  171. data/lib/guile/2.2/ccache/language/tree-il/fix-letrec.go +0 -0
  172. data/lib/guile/2.2/ccache/language/tree-il/optimize.go +0 -0
  173. data/lib/guile/2.2/ccache/language/tree-il/peval.go +0 -0
  174. data/lib/guile/2.2/ccache/language/tree-il/primitives.go +0 -0
  175. data/lib/guile/2.2/ccache/language/tree-il/spec.go +0 -0
  176. data/lib/guile/2.2/ccache/language/tree-il.go +0 -0
  177. data/lib/guile/2.2/ccache/language/value/spec.go +0 -0
  178. data/lib/guile/2.2/ccache/oop/goops/accessors.go +0 -0
  179. data/lib/guile/2.2/ccache/oop/goops/active-slot.go +0 -0
  180. data/lib/guile/2.2/ccache/oop/goops/composite-slot.go +0 -0
  181. data/lib/guile/2.2/ccache/oop/goops/describe.go +0 -0
  182. data/lib/guile/2.2/ccache/oop/goops/internal.go +0 -0
  183. data/lib/guile/2.2/ccache/oop/goops/save.go +0 -0
  184. data/lib/guile/2.2/ccache/oop/goops/simple.go +0 -0
  185. data/lib/guile/2.2/ccache/oop/goops/stklos.go +0 -0
  186. data/lib/guile/2.2/ccache/oop/goops.go +0 -0
  187. data/lib/guile/2.2/ccache/rnrs/arithmetic/bitwise.go +0 -0
  188. data/lib/guile/2.2/ccache/rnrs/arithmetic/fixnums.go +0 -0
  189. data/lib/guile/2.2/ccache/rnrs/arithmetic/flonums.go +0 -0
  190. data/lib/guile/2.2/ccache/rnrs/base.go +0 -0
  191. data/lib/guile/2.2/ccache/rnrs/bytevectors.go +0 -0
  192. data/lib/guile/2.2/ccache/rnrs/conditions.go +0 -0
  193. data/lib/guile/2.2/ccache/rnrs/control.go +0 -0
  194. data/lib/guile/2.2/ccache/rnrs/enums.go +0 -0
  195. data/lib/guile/2.2/ccache/rnrs/eval.go +0 -0
  196. data/lib/guile/2.2/ccache/rnrs/exceptions.go +0 -0
  197. data/lib/guile/2.2/ccache/rnrs/files.go +0 -0
  198. data/lib/guile/2.2/ccache/rnrs/hashtables.go +0 -0
  199. data/lib/guile/2.2/ccache/rnrs/io/ports.go +0 -0
  200. data/lib/guile/2.2/ccache/rnrs/io/simple.go +0 -0
  201. data/lib/guile/2.2/ccache/rnrs/lists.go +0 -0
  202. data/lib/guile/2.2/ccache/rnrs/mutable-pairs.go +0 -0
  203. data/lib/guile/2.2/ccache/rnrs/mutable-strings.go +0 -0
  204. data/lib/guile/2.2/ccache/rnrs/programs.go +0 -0
  205. data/lib/guile/2.2/ccache/rnrs/r5rs.go +0 -0
  206. data/lib/guile/2.2/ccache/rnrs/records/inspection.go +0 -0
  207. data/lib/guile/2.2/ccache/rnrs/records/procedural.go +0 -0
  208. data/lib/guile/2.2/ccache/rnrs/records/syntactic.go +0 -0
  209. data/lib/guile/2.2/ccache/rnrs/sorting.go +0 -0
  210. data/lib/guile/2.2/ccache/rnrs/syntax-case.go +0 -0
  211. data/lib/guile/2.2/ccache/rnrs/unicode.go +0 -0
  212. data/lib/guile/2.2/ccache/rnrs.go +0 -0
  213. data/lib/guile/2.2/ccache/scripts/api-diff.go +0 -0
  214. data/lib/guile/2.2/ccache/scripts/autofrisk.go +0 -0
  215. data/lib/guile/2.2/ccache/scripts/compile.go +0 -0
  216. data/lib/guile/2.2/ccache/scripts/disassemble.go +0 -0
  217. data/lib/guile/2.2/ccache/scripts/display-commentary.go +0 -0
  218. data/lib/guile/2.2/ccache/scripts/doc-snarf.go +0 -0
  219. data/lib/guile/2.2/ccache/scripts/frisk.go +0 -0
  220. data/lib/guile/2.2/ccache/scripts/generate-autoload.go +0 -0
  221. data/lib/guile/2.2/ccache/scripts/help.go +0 -0
  222. data/lib/guile/2.2/ccache/scripts/lint.go +0 -0
  223. data/lib/guile/2.2/ccache/scripts/list.go +0 -0
  224. data/lib/guile/2.2/ccache/scripts/punify.go +0 -0
  225. data/lib/guile/2.2/ccache/scripts/read-rfc822.go +0 -0
  226. data/lib/guile/2.2/ccache/scripts/read-scheme-source.go +0 -0
  227. data/lib/guile/2.2/ccache/scripts/read-text-outline.go +0 -0
  228. data/lib/guile/2.2/ccache/scripts/scan-api.go +0 -0
  229. data/lib/guile/2.2/ccache/scripts/snarf-check-and-output-texi.go +0 -0
  230. data/lib/guile/2.2/ccache/scripts/snarf-guile-m4-docs.go +0 -0
  231. data/lib/guile/2.2/ccache/scripts/summarize-guile-TODO.go +0 -0
  232. data/lib/guile/2.2/ccache/scripts/use2dot.go +0 -0
  233. data/lib/guile/2.2/ccache/srfi/srfi-1.go +0 -0
  234. data/lib/guile/2.2/ccache/srfi/srfi-10.go +0 -0
  235. data/lib/guile/2.2/ccache/srfi/srfi-11.go +0 -0
  236. data/lib/guile/2.2/ccache/srfi/srfi-111.go +0 -0
  237. data/lib/guile/2.2/ccache/srfi/srfi-13.go +0 -0
  238. data/lib/guile/2.2/ccache/srfi/srfi-14.go +0 -0
  239. data/lib/guile/2.2/ccache/srfi/srfi-16.go +0 -0
  240. data/lib/guile/2.2/ccache/srfi/srfi-17.go +0 -0
  241. data/lib/guile/2.2/ccache/srfi/srfi-18.go +0 -0
  242. data/lib/guile/2.2/ccache/srfi/srfi-19.go +0 -0
  243. data/lib/guile/2.2/ccache/srfi/srfi-2.go +0 -0
  244. data/lib/guile/2.2/ccache/srfi/srfi-26.go +0 -0
  245. data/lib/guile/2.2/ccache/srfi/srfi-27.go +0 -0
  246. data/lib/guile/2.2/ccache/srfi/srfi-28.go +0 -0
  247. data/lib/guile/2.2/ccache/srfi/srfi-31.go +0 -0
  248. data/lib/guile/2.2/ccache/srfi/srfi-34.go +0 -0
  249. data/lib/guile/2.2/ccache/srfi/srfi-35.go +0 -0
  250. data/lib/guile/2.2/ccache/srfi/srfi-37.go +0 -0
  251. data/lib/guile/2.2/ccache/srfi/srfi-38.go +0 -0
  252. data/lib/guile/2.2/ccache/srfi/srfi-39.go +0 -0
  253. data/lib/guile/2.2/ccache/srfi/srfi-4/gnu.go +0 -0
  254. data/lib/guile/2.2/ccache/srfi/srfi-4.go +0 -0
  255. data/lib/guile/2.2/ccache/srfi/srfi-41.go +0 -0
  256. data/lib/guile/2.2/ccache/srfi/srfi-42.go +0 -0
  257. data/lib/guile/2.2/ccache/srfi/srfi-43.go +0 -0
  258. data/lib/guile/2.2/ccache/srfi/srfi-45.go +0 -0
  259. data/lib/guile/2.2/ccache/srfi/srfi-6.go +0 -0
  260. data/lib/guile/2.2/ccache/srfi/srfi-60.go +0 -0
  261. data/lib/guile/2.2/ccache/srfi/srfi-64.go +0 -0
  262. data/lib/guile/2.2/ccache/srfi/srfi-67.go +0 -0
  263. data/lib/guile/2.2/ccache/srfi/srfi-69.go +0 -0
  264. data/lib/guile/2.2/ccache/srfi/srfi-71.go +0 -0
  265. data/lib/guile/2.2/ccache/srfi/srfi-8.go +0 -0
  266. data/lib/guile/2.2/ccache/srfi/srfi-88.go +0 -0
  267. data/lib/guile/2.2/ccache/srfi/srfi-9/gnu.go +0 -0
  268. data/lib/guile/2.2/ccache/srfi/srfi-9.go +0 -0
  269. data/lib/guile/2.2/ccache/srfi/srfi-98.go +0 -0
  270. data/lib/guile/2.2/ccache/statprof.go +0 -0
  271. data/lib/guile/2.2/ccache/sxml/apply-templates.go +0 -0
  272. data/lib/guile/2.2/ccache/sxml/fold.go +0 -0
  273. data/lib/guile/2.2/ccache/sxml/match.go +0 -0
  274. data/lib/guile/2.2/ccache/sxml/simple.go +0 -0
  275. data/lib/guile/2.2/ccache/sxml/ssax/input-parse.go +0 -0
  276. data/lib/guile/2.2/ccache/sxml/ssax.go +0 -0
  277. data/lib/guile/2.2/ccache/sxml/transform.go +0 -0
  278. data/lib/guile/2.2/ccache/sxml/xpath.go +0 -0
  279. data/lib/guile/2.2/ccache/system/base/ck.go +0 -0
  280. data/lib/guile/2.2/ccache/system/base/compile.go +0 -0
  281. data/lib/guile/2.2/ccache/system/base/lalr.go +0 -0
  282. data/lib/guile/2.2/ccache/system/base/language.go +0 -0
  283. data/lib/guile/2.2/ccache/system/base/message.go +0 -0
  284. data/lib/guile/2.2/ccache/system/base/pmatch.go +0 -0
  285. data/lib/guile/2.2/ccache/system/base/syntax.go +0 -0
  286. data/lib/guile/2.2/ccache/system/base/target.go +0 -0
  287. data/lib/guile/2.2/ccache/system/base/types.go +0 -0
  288. data/lib/guile/2.2/ccache/system/foreign-object.go +0 -0
  289. data/lib/guile/2.2/ccache/system/foreign.go +0 -0
  290. data/lib/guile/2.2/ccache/system/repl/command.go +0 -0
  291. data/lib/guile/2.2/ccache/system/repl/common.go +0 -0
  292. data/lib/guile/2.2/ccache/system/repl/coop-server.go +0 -0
  293. data/lib/guile/2.2/ccache/system/repl/debug.go +0 -0
  294. data/lib/guile/2.2/ccache/system/repl/error-handling.go +0 -0
  295. data/lib/guile/2.2/ccache/system/repl/repl.go +0 -0
  296. data/lib/guile/2.2/ccache/system/repl/server.go +0 -0
  297. data/lib/guile/2.2/ccache/system/syntax.go +0 -0
  298. data/lib/guile/2.2/ccache/system/vm/assembler.go +0 -0
  299. data/lib/guile/2.2/ccache/system/vm/coverage.go +0 -0
  300. data/lib/guile/2.2/ccache/system/vm/debug.go +0 -0
  301. data/lib/guile/2.2/ccache/system/vm/disassembler.go +0 -0
  302. data/lib/guile/2.2/ccache/system/vm/dwarf.go +0 -0
  303. data/lib/guile/2.2/ccache/system/vm/elf.go +0 -0
  304. data/lib/guile/2.2/ccache/system/vm/frame.go +0 -0
  305. data/lib/guile/2.2/ccache/system/vm/inspect.go +0 -0
  306. data/lib/guile/2.2/ccache/system/vm/linker.go +0 -0
  307. data/lib/guile/2.2/ccache/system/vm/loader.go +0 -0
  308. data/lib/guile/2.2/ccache/system/vm/program.go +0 -0
  309. data/lib/guile/2.2/ccache/system/vm/trace.go +0 -0
  310. data/lib/guile/2.2/ccache/system/vm/trap-state.go +0 -0
  311. data/lib/guile/2.2/ccache/system/vm/traps.go +0 -0
  312. data/lib/guile/2.2/ccache/system/vm/vm.go +0 -0
  313. data/lib/guile/2.2/ccache/system/xref.go +0 -0
  314. data/lib/guile/2.2/ccache/texinfo/docbook.go +0 -0
  315. data/lib/guile/2.2/ccache/texinfo/html.go +0 -0
  316. data/lib/guile/2.2/ccache/texinfo/indexing.go +0 -0
  317. data/lib/guile/2.2/ccache/texinfo/plain-text.go +0 -0
  318. data/lib/guile/2.2/ccache/texinfo/reflection.go +0 -0
  319. data/lib/guile/2.2/ccache/texinfo/serialize.go +0 -0
  320. data/lib/guile/2.2/ccache/texinfo/string-utils.go +0 -0
  321. data/lib/guile/2.2/ccache/texinfo.go +0 -0
  322. data/lib/guile/2.2/ccache/web/client.go +0 -0
  323. data/lib/guile/2.2/ccache/web/http.go +0 -0
  324. data/lib/guile/2.2/ccache/web/request.go +0 -0
  325. data/lib/guile/2.2/ccache/web/response.go +0 -0
  326. data/lib/guile/2.2/ccache/web/server/http.go +0 -0
  327. data/lib/guile/2.2/ccache/web/server.go +0 -0
  328. data/lib/guile/2.2/ccache/web/uri.go +0 -0
  329. data/lib/lilypond/2.24.1/ccache/lily/accreg.go +0 -0
  330. data/lib/lilypond/2.24.1/ccache/lily/auto-beam.go +0 -0
  331. data/lib/lilypond/2.24.1/ccache/lily/autochange.go +0 -0
  332. data/lib/lilypond/2.24.1/ccache/lily/backend-library.go +0 -0
  333. data/lib/lilypond/2.24.1/ccache/lily/bar-line.go +0 -0
  334. data/lib/lilypond/2.24.1/ccache/lily/breath.go +0 -0
  335. data/lib/lilypond/2.24.1/ccache/lily/c++.go +0 -0
  336. data/lib/lilypond/2.24.1/ccache/lily/chord-entry.go +0 -0
  337. data/lib/lilypond/2.24.1/ccache/lily/chord-ignatzek-names.go +0 -0
  338. data/lib/lilypond/2.24.1/ccache/lily/chord-name.go +0 -0
  339. data/lib/lilypond/2.24.1/ccache/lily/clip-region.go +0 -0
  340. data/lib/lilypond/2.24.1/ccache/lily/color.go +0 -0
  341. data/lib/lilypond/2.24.1/ccache/lily/curried-definitions.go +0 -0
  342. data/lib/lilypond/2.24.1/ccache/lily/define-context-properties.go +0 -0
  343. data/lib/lilypond/2.24.1/ccache/lily/define-event-classes.go +0 -0
  344. data/lib/lilypond/2.24.1/ccache/lily/define-grob-interfaces.go +0 -0
  345. data/lib/lilypond/2.24.1/ccache/lily/define-grob-properties.go +0 -0
  346. data/lib/lilypond/2.24.1/ccache/lily/define-grobs.go +0 -0
  347. data/lib/lilypond/2.24.1/ccache/lily/define-markup-commands.go +0 -0
  348. data/lib/lilypond/2.24.1/ccache/lily/define-music-callbacks.go +0 -0
  349. data/lib/lilypond/2.24.1/ccache/lily/define-music-display-methods.go +0 -0
  350. data/lib/lilypond/2.24.1/ccache/lily/define-music-properties.go +0 -0
  351. data/lib/lilypond/2.24.1/ccache/lily/define-music-types.go +0 -0
  352. data/lib/lilypond/2.24.1/ccache/lily/define-note-names.go +0 -0
  353. data/lib/lilypond/2.24.1/ccache/lily/define-stencil-commands.go +0 -0
  354. data/lib/lilypond/2.24.1/ccache/lily/define-woodwind-diagrams.go +0 -0
  355. data/lib/lilypond/2.24.1/ccache/lily/display-lily.go +0 -0
  356. data/lib/lilypond/2.24.1/ccache/lily/display-woodwind-diagrams.go +0 -0
  357. data/lib/lilypond/2.24.1/ccache/lily/file-cache.go +0 -0
  358. data/lib/lilypond/2.24.1/ccache/lily/flag-styles.go +0 -0
  359. data/lib/lilypond/2.24.1/ccache/lily/font-encodings.go +0 -0
  360. data/lib/lilypond/2.24.1/ccache/lily/font.go +0 -0
  361. data/lib/lilypond/2.24.1/ccache/lily/framework-cairo.go +0 -0
  362. data/lib/lilypond/2.24.1/ccache/lily/framework-ps.go +0 -0
  363. data/lib/lilypond/2.24.1/ccache/lily/framework-svg.go +0 -0
  364. data/lib/lilypond/2.24.1/ccache/lily/fret-diagrams.go +0 -0
  365. data/lib/lilypond/2.24.1/ccache/lily/graphviz.go +0 -0
  366. data/lib/lilypond/2.24.1/ccache/lily/harp-pedals.go +0 -0
  367. data/lib/lilypond/2.24.1/ccache/lily/layout-beam.go +0 -0
  368. data/lib/lilypond/2.24.1/ccache/lily/layout-slur.go +0 -0
  369. data/lib/lilypond/2.24.1/ccache/lily/lily-library.go +0 -0
  370. data/lib/lilypond/2.24.1/ccache/lily/lily.go +0 -0
  371. data/lib/lilypond/2.24.1/ccache/lily/ly-syntax-constructors.go +0 -0
  372. data/lib/lilypond/2.24.1/ccache/lily/markup-macros.go +0 -0
  373. data/lib/lilypond/2.24.1/ccache/lily/markup.go +0 -0
  374. data/lib/lilypond/2.24.1/ccache/lily/midi.go +0 -0
  375. data/lib/lilypond/2.24.1/ccache/lily/modal-transforms.go +0 -0
  376. data/lib/lilypond/2.24.1/ccache/lily/music-functions.go +0 -0
  377. data/lib/lilypond/2.24.1/ccache/lily/output-lib.go +0 -0
  378. data/lib/lilypond/2.24.1/ccache/lily/output-ps.go +0 -0
  379. data/lib/lilypond/2.24.1/ccache/lily/output-svg.go +0 -0
  380. data/lib/lilypond/2.24.1/ccache/lily/page.go +0 -0
  381. data/lib/lilypond/2.24.1/ccache/lily/paper-system.go +0 -0
  382. data/lib/lilypond/2.24.1/ccache/lily/paper.go +0 -0
  383. data/lib/lilypond/2.24.1/ccache/lily/parser-clef.go +0 -0
  384. data/lib/lilypond/2.24.1/ccache/lily/parser-ly-from-scheme.go +0 -0
  385. data/lib/lilypond/2.24.1/ccache/lily/part-combiner.go +0 -0
  386. data/lib/lilypond/2.24.1/ccache/lily/predefined-fretboards.go +0 -0
  387. data/lib/lilypond/2.24.1/ccache/lily/ps-to-png.go +0 -0
  388. data/lib/lilypond/2.24.1/ccache/lily/scheme-engravers.go +0 -0
  389. data/lib/lilypond/2.24.1/ccache/lily/scheme-performers.go +0 -0
  390. data/lib/lilypond/2.24.1/ccache/lily/script.go +0 -0
  391. data/lib/lilypond/2.24.1/ccache/lily/skyline.go +0 -0
  392. data/lib/lilypond/2.24.1/ccache/lily/song-util.go +0 -0
  393. data/lib/lilypond/2.24.1/ccache/lily/song.go +0 -0
  394. data/lib/lilypond/2.24.1/ccache/lily/stencil.go +0 -0
  395. data/lib/lilypond/2.24.1/ccache/lily/tablature.go +0 -0
  396. data/lib/lilypond/2.24.1/ccache/lily/time-signature-settings.go +0 -0
  397. data/lib/lilypond/2.24.1/ccache/lily/time-signature.go +0 -0
  398. data/lib/lilypond/2.24.1/ccache/lily/titling.go +0 -0
  399. data/lib/lilypond/2.24.1/ccache/lily/to-xml.go +0 -0
  400. data/lib/lilypond/2.24.1/ccache/lily/translation-functions.go +0 -0
  401. data/share/emacs/site-lisp/lilypond-font-lock.el +208 -0
  402. data/share/emacs/site-lisp/lilypond-indent.el +605 -0
  403. data/share/emacs/site-lisp/lilypond-init.el +21 -0
  404. data/share/emacs/site-lisp/lilypond-mode.el +1204 -0
  405. data/share/emacs/site-lisp/lilypond-song.el +556 -0
  406. data/share/emacs/site-lisp/lilypond-what-beat.el +279 -0
  407. data/share/emacs/site-lisp/lilypond-words.el +1428 -0
  408. data/share/guile/2.2/guile-procedures.txt +8860 -0
  409. data/share/guile/2.2/ice-9/and-let-star.scm +73 -0
  410. data/share/guile/2.2/ice-9/arrays.scm +70 -0
  411. data/share/guile/2.2/ice-9/atomic.scm +38 -0
  412. data/share/guile/2.2/ice-9/binary-ports.scm +53 -0
  413. data/share/guile/2.2/ice-9/boot-9.scm +4131 -0
  414. data/share/guile/2.2/ice-9/buffered-input.scm +109 -0
  415. data/share/guile/2.2/ice-9/calling.scm +326 -0
  416. data/share/guile/2.2/ice-9/channel.scm +170 -0
  417. data/share/guile/2.2/ice-9/command-line.scm +477 -0
  418. data/share/guile/2.2/ice-9/common-list.scm +278 -0
  419. data/share/guile/2.2/ice-9/control.scm +110 -0
  420. data/share/guile/2.2/ice-9/curried-definitions.scm +57 -0
  421. data/share/guile/2.2/ice-9/debug.scm +25 -0
  422. data/share/guile/2.2/ice-9/deprecated.scm +93 -0
  423. data/share/guile/2.2/ice-9/documentation.scm +203 -0
  424. data/share/guile/2.2/ice-9/eval-string.scm +90 -0
  425. data/share/guile/2.2/ice-9/eval.scm +723 -0
  426. data/share/guile/2.2/ice-9/expect.scm +171 -0
  427. data/share/guile/2.2/ice-9/fdes-finalizers.scm +25 -0
  428. data/share/guile/2.2/ice-9/format.scm +1626 -0
  429. data/share/guile/2.2/ice-9/ftw.scm +564 -0
  430. data/share/guile/2.2/ice-9/futures.scm +308 -0
  431. data/share/guile/2.2/ice-9/gap-buffer.scm +283 -0
  432. data/share/guile/2.2/ice-9/getopt-long.scm +371 -0
  433. data/share/guile/2.2/ice-9/hash-table.scm +45 -0
  434. data/share/guile/2.2/ice-9/hcons.scm +80 -0
  435. data/share/guile/2.2/ice-9/history.scm +65 -0
  436. data/share/guile/2.2/ice-9/i18n.scm +531 -0
  437. data/share/guile/2.2/ice-9/iconv.scm +95 -0
  438. data/share/guile/2.2/ice-9/lineio.scm +115 -0
  439. data/share/guile/2.2/ice-9/list.scm +36 -0
  440. data/share/guile/2.2/ice-9/local-eval.scm +261 -0
  441. data/share/guile/2.2/ice-9/ls.scm +94 -0
  442. data/share/guile/2.2/ice-9/mapping.scm +118 -0
  443. data/share/guile/2.2/ice-9/match.scm +59 -0
  444. data/share/guile/2.2/ice-9/match.upstream.scm +917 -0
  445. data/share/guile/2.2/ice-9/networking.scm +94 -0
  446. data/share/guile/2.2/ice-9/null.scm +34 -0
  447. data/share/guile/2.2/ice-9/occam-channel.scm +261 -0
  448. data/share/guile/2.2/ice-9/optargs.scm +381 -0
  449. data/share/guile/2.2/ice-9/peg/cache.scm +45 -0
  450. data/share/guile/2.2/ice-9/peg/codegen.scm +359 -0
  451. data/share/guile/2.2/ice-9/peg/simplify-tree.scm +97 -0
  452. data/share/guile/2.2/ice-9/peg/string-peg.scm +273 -0
  453. data/share/guile/2.2/ice-9/peg/using-parsers.scm +116 -0
  454. data/share/guile/2.2/ice-9/peg.scm +42 -0
  455. data/share/guile/2.2/ice-9/poe.scm +116 -0
  456. data/share/guile/2.2/ice-9/poll.scm +172 -0
  457. data/share/guile/2.2/ice-9/popen.scm +178 -0
  458. data/share/guile/2.2/ice-9/ports.scm +566 -0
  459. data/share/guile/2.2/ice-9/posix.scm +75 -0
  460. data/share/guile/2.2/ice-9/pretty-print.scm +483 -0
  461. data/share/guile/2.2/ice-9/psyntax-pp.scm +3542 -0
  462. data/share/guile/2.2/ice-9/psyntax.scm +3326 -0
  463. data/share/guile/2.2/ice-9/q.scm +153 -0
  464. data/share/guile/2.2/ice-9/quasisyntax.scm +136 -0
  465. data/share/guile/2.2/ice-9/r5rs.scm +45 -0
  466. data/share/guile/2.2/ice-9/r6rs-libraries.scm +242 -0
  467. data/share/guile/2.2/ice-9/rdelim.scm +208 -0
  468. data/share/guile/2.2/ice-9/receive.scm +26 -0
  469. data/share/guile/2.2/ice-9/regex.scm +229 -0
  470. data/share/guile/2.2/ice-9/runq.scm +241 -0
  471. data/share/guile/2.2/ice-9/rw.scm +27 -0
  472. data/share/guile/2.2/ice-9/safe-r5rs.scm +145 -0
  473. data/share/guile/2.2/ice-9/safe.scm +34 -0
  474. data/share/guile/2.2/ice-9/sandbox.scm +1399 -0
  475. data/share/guile/2.2/ice-9/save-stack.scm +58 -0
  476. data/share/guile/2.2/ice-9/scm-style-repl.scm +279 -0
  477. data/share/guile/2.2/ice-9/serialize.scm +114 -0
  478. data/share/guile/2.2/ice-9/session.scm +530 -0
  479. data/share/guile/2.2/ice-9/slib.scm +33 -0
  480. data/share/guile/2.2/ice-9/stack-catch.scm +47 -0
  481. data/share/guile/2.2/ice-9/streams.scm +168 -0
  482. data/share/guile/2.2/ice-9/string-fun.scm +280 -0
  483. data/share/guile/2.2/ice-9/suspendable-ports.scm +788 -0
  484. data/share/guile/2.2/ice-9/syncase.scm +37 -0
  485. data/share/guile/2.2/ice-9/textual-ports.scm +70 -0
  486. data/share/guile/2.2/ice-9/threads.scm +392 -0
  487. data/share/guile/2.2/ice-9/time.scm +58 -0
  488. data/share/guile/2.2/ice-9/top-repl.scm +78 -0
  489. data/share/guile/2.2/ice-9/unicode.scm +26 -0
  490. data/share/guile/2.2/ice-9/vlist.scm +595 -0
  491. data/share/guile/2.2/ice-9/weak-vector.scm +31 -0
  492. data/share/guile/2.2/language/brainfuck/compile-scheme.scm +123 -0
  493. data/share/guile/2.2/language/brainfuck/compile-tree-il.scm +184 -0
  494. data/share/guile/2.2/language/brainfuck/parse.scm +95 -0
  495. data/share/guile/2.2/language/brainfuck/spec.scm +43 -0
  496. data/share/guile/2.2/language/bytecode/spec.scm +42 -0
  497. data/share/guile/2.2/language/bytecode.scm +104 -0
  498. data/share/guile/2.2/language/cps/closure-conversion.scm +848 -0
  499. data/share/guile/2.2/language/cps/compile-bytecode.scm +610 -0
  500. data/share/guile/2.2/language/cps/constructors.scm +106 -0
  501. data/share/guile/2.2/language/cps/contification.scm +448 -0
  502. data/share/guile/2.2/language/cps/cse.scm +414 -0
  503. data/share/guile/2.2/language/cps/dce.scm +363 -0
  504. data/share/guile/2.2/language/cps/effects-analysis.scm +597 -0
  505. data/share/guile/2.2/language/cps/elide-values.scm +88 -0
  506. data/share/guile/2.2/language/cps/handle-interrupts.scm +69 -0
  507. data/share/guile/2.2/language/cps/intmap.scm +765 -0
  508. data/share/guile/2.2/language/cps/intset.scm +830 -0
  509. data/share/guile/2.2/language/cps/licm.scm +308 -0
  510. data/share/guile/2.2/language/cps/optimize.scm +135 -0
  511. data/share/guile/2.2/language/cps/peel-loops.scm +287 -0
  512. data/share/guile/2.2/language/cps/primitives.scm +141 -0
  513. data/share/guile/2.2/language/cps/prune-bailouts.scm +86 -0
  514. data/share/guile/2.2/language/cps/prune-top-level-scopes.scm +63 -0
  515. data/share/guile/2.2/language/cps/reify-primitives.scm +179 -0
  516. data/share/guile/2.2/language/cps/renumber.scm +217 -0
  517. data/share/guile/2.2/language/cps/rotate-loops.scm +239 -0
  518. data/share/guile/2.2/language/cps/self-references.scm +79 -0
  519. data/share/guile/2.2/language/cps/simplify.scm +274 -0
  520. data/share/guile/2.2/language/cps/slot-allocation.scm +1058 -0
  521. data/share/guile/2.2/language/cps/spec.scm +51 -0
  522. data/share/guile/2.2/language/cps/specialize-numbers.scm +724 -0
  523. data/share/guile/2.2/language/cps/specialize-primcalls.scm +87 -0
  524. data/share/guile/2.2/language/cps/split-rec.scm +174 -0
  525. data/share/guile/2.2/language/cps/type-checks.scm +72 -0
  526. data/share/guile/2.2/language/cps/type-fold.scm +455 -0
  527. data/share/guile/2.2/language/cps/types.scm +1826 -0
  528. data/share/guile/2.2/language/cps/utils.scm +550 -0
  529. data/share/guile/2.2/language/cps/verify.scm +304 -0
  530. data/share/guile/2.2/language/cps/with-cps.scm +145 -0
  531. data/share/guile/2.2/language/cps.scm +358 -0
  532. data/share/guile/2.2/language/ecmascript/array.scm +121 -0
  533. data/share/guile/2.2/language/ecmascript/base.scm +251 -0
  534. data/share/guile/2.2/language/ecmascript/compile-tree-il.scm +576 -0
  535. data/share/guile/2.2/language/ecmascript/function.scm +78 -0
  536. data/share/guile/2.2/language/ecmascript/impl.scm +169 -0
  537. data/share/guile/2.2/language/ecmascript/parse.scm +352 -0
  538. data/share/guile/2.2/language/ecmascript/spec.scm +37 -0
  539. data/share/guile/2.2/language/ecmascript/tokenize.scm +513 -0
  540. data/share/guile/2.2/language/elisp/bindings.scm +107 -0
  541. data/share/guile/2.2/language/elisp/boot.el +617 -0
  542. data/share/guile/2.2/language/elisp/compile-tree-il.scm +812 -0
  543. data/share/guile/2.2/language/elisp/falias.scm +47 -0
  544. data/share/guile/2.2/language/elisp/lexer.scm +430 -0
  545. data/share/guile/2.2/language/elisp/parser.scm +222 -0
  546. data/share/guile/2.2/language/elisp/runtime/function-slot.scm +63 -0
  547. data/share/guile/2.2/language/elisp/runtime/value-slot.scm +24 -0
  548. data/share/guile/2.2/language/elisp/runtime.scm +153 -0
  549. data/share/guile/2.2/language/elisp/spec.scm +43 -0
  550. data/share/guile/2.2/language/scheme/compile-tree-il.scm +33 -0
  551. data/share/guile/2.2/language/scheme/decompile-tree-il.scm +796 -0
  552. data/share/guile/2.2/language/scheme/spec.scm +63 -0
  553. data/share/guile/2.2/language/tree-il/analyze.scm +1568 -0
  554. data/share/guile/2.2/language/tree-il/canonicalize.scm +82 -0
  555. data/share/guile/2.2/language/tree-il/compile-cps.scm +1149 -0
  556. data/share/guile/2.2/language/tree-il/debug.scm +246 -0
  557. data/share/guile/2.2/language/tree-il/effects.scm +591 -0
  558. data/share/guile/2.2/language/tree-il/fix-letrec.scm +314 -0
  559. data/share/guile/2.2/language/tree-il/optimize.scm +43 -0
  560. data/share/guile/2.2/language/tree-il/peval.scm +1669 -0
  561. data/share/guile/2.2/language/tree-il/primitives.scm +630 -0
  562. data/share/guile/2.2/language/tree-il/spec.scm +46 -0
  563. data/share/guile/2.2/language/tree-il.scm +630 -0
  564. data/share/guile/2.2/language/value/spec.scm +30 -0
  565. data/share/guile/2.2/oop/goops/accessors.scm +72 -0
  566. data/share/guile/2.2/oop/goops/active-slot.scm +63 -0
  567. data/share/guile/2.2/oop/goops/composite-slot.scm +83 -0
  568. data/share/guile/2.2/oop/goops/describe.scm +189 -0
  569. data/share/guile/2.2/oop/goops/internal.scm +30 -0
  570. data/share/guile/2.2/oop/goops/save.scm +874 -0
  571. data/share/guile/2.2/oop/goops/simple.scm +30 -0
  572. data/share/guile/2.2/oop/goops/stklos.scm +74 -0
  573. data/share/guile/2.2/oop/goops.scm +3176 -0
  574. data/share/guile/2.2/rnrs/arithmetic/bitwise.scm +92 -0
  575. data/share/guile/2.2/rnrs/arithmetic/fixnums.scm +291 -0
  576. data/share/guile/2.2/rnrs/arithmetic/flonums.scm +203 -0
  577. data/share/guile/2.2/rnrs/base.scm +291 -0
  578. data/share/guile/2.2/rnrs/bytevectors.scm +83 -0
  579. data/share/guile/2.2/rnrs/conditions.scm +225 -0
  580. data/share/guile/2.2/rnrs/control.scm +22 -0
  581. data/share/guile/2.2/rnrs/enums.scm +152 -0
  582. data/share/guile/2.2/rnrs/eval.scm +39 -0
  583. data/share/guile/2.2/rnrs/exceptions.scm +276 -0
  584. data/share/guile/2.2/rnrs/files.scm +96 -0
  585. data/share/guile/2.2/rnrs/hashtables.scm +190 -0
  586. data/share/guile/2.2/rnrs/io/ports.scm +554 -0
  587. data/share/guile/2.2/rnrs/io/simple.scm +167 -0
  588. data/share/guile/2.2/rnrs/lists.scm +55 -0
  589. data/share/guile/2.2/rnrs/mutable-pairs.scm +23 -0
  590. data/share/guile/2.2/rnrs/mutable-strings.scm +23 -0
  591. data/share/guile/2.2/rnrs/programs.scm +22 -0
  592. data/share/guile/2.2/rnrs/r5rs.scm +34 -0
  593. data/share/guile/2.2/rnrs/records/inspection.scm +81 -0
  594. data/share/guile/2.2/rnrs/records/procedural.scm +289 -0
  595. data/share/guile/2.2/rnrs/records/syntactic.scm +248 -0
  596. data/share/guile/2.2/rnrs/sorting.scm +27 -0
  597. data/share/guile/2.2/rnrs/syntax-case.scm +68 -0
  598. data/share/guile/2.2/rnrs/unicode.scm +104 -0
  599. data/share/guile/2.2/rnrs.scm +289 -0
  600. data/share/guile/2.2/scripts/api-diff.scm +179 -0
  601. data/share/guile/2.2/scripts/autofrisk.scm +218 -0
  602. data/share/guile/2.2/scripts/compile.scm +273 -0
  603. data/share/guile/2.2/scripts/disassemble.scm +38 -0
  604. data/share/guile/2.2/scripts/display-commentary.scm +67 -0
  605. data/share/guile/2.2/scripts/doc-snarf.scm +439 -0
  606. data/share/guile/2.2/scripts/frisk.scm +290 -0
  607. data/share/guile/2.2/scripts/generate-autoload.scm +144 -0
  608. data/share/guile/2.2/scripts/help.scm +188 -0
  609. data/share/guile/2.2/scripts/lint.scm +318 -0
  610. data/share/guile/2.2/scripts/list.scm +91 -0
  611. data/share/guile/2.2/scripts/punify.scm +87 -0
  612. data/share/guile/2.2/scripts/read-rfc822.scm +131 -0
  613. data/share/guile/2.2/scripts/read-scheme-source.scm +282 -0
  614. data/share/guile/2.2/scripts/read-text-outline.scm +253 -0
  615. data/share/guile/2.2/scripts/scan-api.scm +223 -0
  616. data/share/guile/2.2/scripts/snarf-check-and-output-texi.scm +303 -0
  617. data/share/guile/2.2/scripts/snarf-guile-m4-docs.scm +86 -0
  618. data/share/guile/2.2/scripts/summarize-guile-TODO.scm +213 -0
  619. data/share/guile/2.2/scripts/use2dot.scm +110 -0
  620. data/share/guile/2.2/srfi/srfi-1.scm +1061 -0
  621. data/share/guile/2.2/srfi/srfi-10.scm +89 -0
  622. data/share/guile/2.2/srfi/srfi-11.scm +146 -0
  623. data/share/guile/2.2/srfi/srfi-111.scm +37 -0
  624. data/share/guile/2.2/srfi/srfi-13.scm +132 -0
  625. data/share/guile/2.2/srfi/srfi-14.scm +99 -0
  626. data/share/guile/2.2/srfi/srfi-16.scm +51 -0
  627. data/share/guile/2.2/srfi/srfi-17.scm +174 -0
  628. data/share/guile/2.2/srfi/srfi-18.scm +382 -0
  629. data/share/guile/2.2/srfi/srfi-19.scm +1470 -0
  630. data/share/guile/2.2/srfi/srfi-2.scm +31 -0
  631. data/share/guile/2.2/srfi/srfi-26.scm +66 -0
  632. data/share/guile/2.2/srfi/srfi-27.scm +96 -0
  633. data/share/guile/2.2/srfi/srfi-28.scm +34 -0
  634. data/share/guile/2.2/srfi/srfi-31.scm +35 -0
  635. data/share/guile/2.2/srfi/srfi-34.scm +84 -0
  636. data/share/guile/2.2/srfi/srfi-35.scm +351 -0
  637. data/share/guile/2.2/srfi/srfi-37.scm +234 -0
  638. data/share/guile/2.2/srfi/srfi-38.scm +207 -0
  639. data/share/guile/2.2/srfi/srfi-39.scm +55 -0
  640. data/share/guile/2.2/srfi/srfi-4/gnu.scm +80 -0
  641. data/share/guile/2.2/srfi/srfi-4.scm +118 -0
  642. data/share/guile/2.2/srfi/srfi-41.scm +505 -0
  643. data/share/guile/2.2/srfi/srfi-42/ec.scm +1053 -0
  644. data/share/guile/2.2/srfi/srfi-42.scm +66 -0
  645. data/share/guile/2.2/srfi/srfi-43.scm +1077 -0
  646. data/share/guile/2.2/srfi/srfi-45.scm +93 -0
  647. data/share/guile/2.2/srfi/srfi-6.scm +29 -0
  648. data/share/guile/2.2/srfi/srfi-60.scm +73 -0
  649. data/share/guile/2.2/srfi/srfi-64/testing.scm +1040 -0
  650. data/share/guile/2.2/srfi/srfi-64.scm +55 -0
  651. data/share/guile/2.2/srfi/srfi-67/compare.scm +686 -0
  652. data/share/guile/2.2/srfi/srfi-67.scm +88 -0
  653. data/share/guile/2.2/srfi/srfi-69.scm +336 -0
  654. data/share/guile/2.2/srfi/srfi-71.scm +267 -0
  655. data/share/guile/2.2/srfi/srfi-8.scm +31 -0
  656. data/share/guile/2.2/srfi/srfi-88.scm +53 -0
  657. data/share/guile/2.2/srfi/srfi-9/gnu.scm +168 -0
  658. data/share/guile/2.2/srfi/srfi-9.scm +351 -0
  659. data/share/guile/2.2/srfi/srfi-98.scm +44 -0
  660. data/share/guile/2.2/statprof.scm +988 -0
  661. data/share/guile/2.2/sxml/apply-templates.scm +102 -0
  662. data/share/guile/2.2/sxml/fold.scm +250 -0
  663. data/share/guile/2.2/sxml/match.scm +75 -0
  664. data/share/guile/2.2/sxml/simple.scm +408 -0
  665. data/share/guile/2.2/sxml/ssax/input-parse.scm +180 -0
  666. data/share/guile/2.2/sxml/ssax.scm +265 -0
  667. data/share/guile/2.2/sxml/sxml-match.ss +1181 -0
  668. data/share/guile/2.2/sxml/transform.scm +298 -0
  669. data/share/guile/2.2/sxml/upstream/SSAX.scm +3235 -0
  670. data/share/guile/2.2/sxml/upstream/SXML-tree-trans.scm +249 -0
  671. data/share/guile/2.2/sxml/upstream/SXPath-old.scm +1216 -0
  672. data/share/guile/2.2/sxml/upstream/assert.scm +35 -0
  673. data/share/guile/2.2/sxml/upstream/input-parse.scm +326 -0
  674. data/share/guile/2.2/sxml/xpath.scm +493 -0
  675. data/share/guile/2.2/system/base/ck.scm +55 -0
  676. data/share/guile/2.2/system/base/compile.scm +282 -0
  677. data/share/guile/2.2/system/base/lalr.scm +51 -0
  678. data/share/guile/2.2/system/base/lalr.upstream.scm +2096 -0
  679. data/share/guile/2.2/system/base/language.scm +119 -0
  680. data/share/guile/2.2/system/base/message.scm +238 -0
  681. data/share/guile/2.2/system/base/pmatch.scm +68 -0
  682. data/share/guile/2.2/system/base/syntax.scm +299 -0
  683. data/share/guile/2.2/system/base/target.scm +152 -0
  684. data/share/guile/2.2/system/base/types.scm +561 -0
  685. data/share/guile/2.2/system/foreign-object.scm +91 -0
  686. data/share/guile/2.2/system/foreign.scm +200 -0
  687. data/share/guile/2.2/system/repl/command.scm +946 -0
  688. data/share/guile/2.2/system/repl/common.scm +263 -0
  689. data/share/guile/2.2/system/repl/coop-server.scm +200 -0
  690. data/share/guile/2.2/system/repl/debug.scm +210 -0
  691. data/share/guile/2.2/system/repl/describe.scm +347 -0
  692. data/share/guile/2.2/system/repl/error-handling.scm +183 -0
  693. data/share/guile/2.2/system/repl/repl.scm +233 -0
  694. data/share/guile/2.2/system/repl/server.scm +332 -0
  695. data/share/guile/2.2/system/syntax.scm +33 -0
  696. data/share/guile/2.2/system/vm/assembler.scm +2614 -0
  697. data/share/guile/2.2/system/vm/coverage.scm +351 -0
  698. data/share/guile/2.2/system/vm/debug.scm +766 -0
  699. data/share/guile/2.2/system/vm/disassembler.scm +658 -0
  700. data/share/guile/2.2/system/vm/dwarf.scm +1852 -0
  701. data/share/guile/2.2/system/vm/elf.scm +1042 -0
  702. data/share/guile/2.2/system/vm/frame.scm +485 -0
  703. data/share/guile/2.2/system/vm/inspect.scm +188 -0
  704. data/share/guile/2.2/system/vm/linker.scm +732 -0
  705. data/share/guile/2.2/system/vm/loader.scm +27 -0
  706. data/share/guile/2.2/system/vm/program.scm +312 -0
  707. data/share/guile/2.2/system/vm/trace.scm +121 -0
  708. data/share/guile/2.2/system/vm/trap-state.scm +302 -0
  709. data/share/guile/2.2/system/vm/traps.scm +608 -0
  710. data/share/guile/2.2/system/vm/vm.scm +32 -0
  711. data/share/guile/2.2/system/xref.scm +369 -0
  712. data/share/guile/2.2/texinfo/docbook.scm +240 -0
  713. data/share/guile/2.2/texinfo/html.scm +279 -0
  714. data/share/guile/2.2/texinfo/indexing.scm +75 -0
  715. data/share/guile/2.2/texinfo/plain-text.scm +322 -0
  716. data/share/guile/2.2/texinfo/reflection.scm +585 -0
  717. data/share/guile/2.2/texinfo/serialize.scm +300 -0
  718. data/share/guile/2.2/texinfo/string-utils.scm +410 -0
  719. data/share/guile/2.2/texinfo.scm +1263 -0
  720. data/share/guile/2.2/web/client.scm +513 -0
  721. data/share/guile/2.2/web/http.scm +2043 -0
  722. data/share/guile/2.2/web/request.scm +326 -0
  723. data/share/guile/2.2/web/response.scm +379 -0
  724. data/share/guile/2.2/web/server/http.scm +183 -0
  725. data/share/guile/2.2/web/server.scm +397 -0
  726. data/share/guile/2.2/web/uri.scm +552 -0
  727. data/share/lilypond/2.24.1/fontconfig/0bd3dc0958fa2205aaaa8ebb13e2872b-le64.cache-8 +0 -0
  728. data/share/lilypond/2.24.1/fontconfig/188ac73a183f12857f63bb60a4a6d603-le64.cache-8 +0 -0
  729. data/share/lilypond/2.24.1/fontconfig/32b6488e5b8292a2e95c79d947e009e8-le64.cache-8 +0 -0
  730. data/share/lilypond/2.24.1/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-le64.cache-8 +0 -0
  731. data/share/lilypond/2.24.1/fontconfig/3f7329c5293ffd510edef78f73874cfd-le64.cache-8 +0 -0
  732. data/share/lilypond/2.24.1/fontconfig/4c599c202bc5c08e2d34565a40eac3b2-le64.cache-8 +0 -0
  733. data/share/lilypond/2.24.1/fontconfig/57e423e26b20ab21d0f2f29c145174c3-le64.cache-8 +0 -0
  734. data/share/lilypond/2.24.1/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-le64.cache-8 +0 -0
  735. data/share/lilypond/2.24.1/fontconfig/826f6b6ef79022e2eac8af26bf4b62f2-le64.cache-8 +0 -0
  736. data/share/lilypond/2.24.1/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-8 +0 -0
  737. data/share/lilypond/2.24.1/fontconfig/95530828ff6c81d309f8258d8d02a23e-le64.cache-8 +0 -0
  738. data/share/lilypond/2.24.1/fontconfig/CACHEDIR.TAG +4 -0
  739. data/share/lilypond/2.24.1/fontconfig/bf3b770c553c462765856025a94f1ce6-le64.cache-8 +0 -0
  740. data/share/lilypond/2.24.1/fontconfig/c855463f699352c367813e37f3f70ea7-le64.cache-8 +0 -0
  741. data/share/lilypond/2.24.1/fontconfig/d3e5c4ee2ceb1fc347f91d4cefc53bc0-le64.cache-8 +0 -0
  742. data/share/lilypond/2.24.1/fontconfig/d589a48862398ed80a3d6066f4f56f4c-le64.cache-8 +0 -0
  743. data/share/lilypond/2.24.1/fontconfig/d82eb4fd963d448e2fcb7d7b793b5df3-le64.cache-8 +0 -0
  744. data/share/lilypond/2.24.1/fontconfig/e13b20fdb08344e0e664864cc2ede53d-le64.cache-8 +0 -0
  745. data/share/lilypond/2.24.1/fontconfig/e52a45a1c8c8fe895fc0fc8c4e6999b8-le64.cache-8 +0 -0
  746. data/share/lilypond/2.24.1/fontconfig/f1f2465696798768e9653f19e17ccdc8-le64.cache-8 +0 -0
  747. data/share/lilypond/2.24.1/fonts/00-lilypond-fonts.conf +99 -0
  748. data/share/lilypond/2.24.1/fonts/99-lilypond-fonts.conf +28 -0
  749. data/share/lilypond/2.24.1/fonts/otf/C059-BdIta.otf +0 -0
  750. data/share/lilypond/2.24.1/fonts/otf/C059-Bold.otf +0 -0
  751. data/share/lilypond/2.24.1/fonts/otf/C059-Italic.otf +0 -0
  752. data/share/lilypond/2.24.1/fonts/otf/C059-Roman.otf +0 -0
  753. data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Bold.otf +0 -0
  754. data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-BoldItalic.otf +0 -0
  755. data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Italic.otf +0 -0
  756. data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Regular.otf +0 -0
  757. data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Bold.otf +0 -0
  758. data/share/lilypond/2.24.1/fonts/otf/NimbusSans-BoldItalic.otf +0 -0
  759. data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Italic.otf +0 -0
  760. data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Regular.otf +0 -0
  761. data/share/lilypond/2.24.1/fonts/otf/emmentaler-11.otf +0 -0
  762. data/share/lilypond/2.24.1/fonts/otf/emmentaler-13.otf +0 -0
  763. data/share/lilypond/2.24.1/fonts/otf/emmentaler-14.otf +0 -0
  764. data/share/lilypond/2.24.1/fonts/otf/emmentaler-16.otf +0 -0
  765. data/share/lilypond/2.24.1/fonts/otf/emmentaler-18.otf +0 -0
  766. data/share/lilypond/2.24.1/fonts/otf/emmentaler-20.otf +0 -0
  767. data/share/lilypond/2.24.1/fonts/otf/emmentaler-23.otf +0 -0
  768. data/share/lilypond/2.24.1/fonts/otf/emmentaler-26.otf +0 -0
  769. data/share/lilypond/2.24.1/fonts/otf/emmentaler-brace.otf +0 -0
  770. data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-bold.otf +0 -0
  771. data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-bolditalic.otf +0 -0
  772. data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-italic.otf +0 -0
  773. data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-regular.otf +0 -0
  774. data/share/lilypond/2.24.1/fonts/otf/texgyreheros-bold.otf +0 -0
  775. data/share/lilypond/2.24.1/fonts/otf/texgyreheros-bolditalic.otf +0 -0
  776. data/share/lilypond/2.24.1/fonts/otf/texgyreheros-italic.otf +0 -0
  777. data/share/lilypond/2.24.1/fonts/otf/texgyreheros-regular.otf +0 -0
  778. data/share/lilypond/2.24.1/fonts/otf/texgyreschola-bold.otf +0 -0
  779. data/share/lilypond/2.24.1/fonts/otf/texgyreschola-bolditalic.otf +0 -0
  780. data/share/lilypond/2.24.1/fonts/otf/texgyreschola-italic.otf +0 -0
  781. data/share/lilypond/2.24.1/fonts/otf/texgyreschola-regular.otf +0 -0
  782. data/share/lilypond/2.24.1/fonts/source/common-modules-and-initialization.mf +26 -0
  783. data/share/lilypond/2.24.1/fonts/source/debugging-settings.mf +14 -0
  784. data/share/lilypond/2.24.1/fonts/source/declare-autometric-parameters.mf +9 -0
  785. data/share/lilypond/2.24.1/fonts/source/feta-accidentals.mf +58 -0
  786. data/share/lilypond/2.24.1/fonts/source/feta-accordion.mf +575 -0
  787. data/share/lilypond/2.24.1/fonts/source/feta-alphabet-generic.mf +16 -0
  788. data/share/lilypond/2.24.1/fonts/source/feta-alphabet11.mf +6 -0
  789. data/share/lilypond/2.24.1/fonts/source/feta-alphabet13.mf +6 -0
  790. data/share/lilypond/2.24.1/fonts/source/feta-alphabet14.mf +6 -0
  791. data/share/lilypond/2.24.1/fonts/source/feta-alphabet16.mf +6 -0
  792. data/share/lilypond/2.24.1/fonts/source/feta-alphabet18.mf +6 -0
  793. data/share/lilypond/2.24.1/fonts/source/feta-alphabet20.mf +6 -0
  794. data/share/lilypond/2.24.1/fonts/source/feta-alphabet23.mf +6 -0
  795. data/share/lilypond/2.24.1/fonts/source/feta-alphabet26.mf +6 -0
  796. data/share/lilypond/2.24.1/fonts/source/feta-arrow.mf +114 -0
  797. data/share/lilypond/2.24.1/fonts/source/feta-arrowheads.mf +171 -0
  798. data/share/lilypond/2.24.1/fonts/source/feta-autometric.mf +303 -0
  799. data/share/lilypond/2.24.1/fonts/source/feta-braces-a.mf +6 -0
  800. data/share/lilypond/2.24.1/fonts/source/feta-braces-b.mf +6 -0
  801. data/share/lilypond/2.24.1/fonts/source/feta-braces-c.mf +6 -0
  802. data/share/lilypond/2.24.1/fonts/source/feta-braces-d.mf +6 -0
  803. data/share/lilypond/2.24.1/fonts/source/feta-braces-e.mf +6 -0
  804. data/share/lilypond/2.24.1/fonts/source/feta-braces-f.mf +6 -0
  805. data/share/lilypond/2.24.1/fonts/source/feta-braces-g.mf +6 -0
  806. data/share/lilypond/2.24.1/fonts/source/feta-braces-generic.mf +47 -0
  807. data/share/lilypond/2.24.1/fonts/source/feta-braces-h.mf +6 -0
  808. data/share/lilypond/2.24.1/fonts/source/feta-braces-i.mf +6 -0
  809. data/share/lilypond/2.24.1/fonts/source/feta-braces.mf +125 -0
  810. data/share/lilypond/2.24.1/fonts/source/feta-brackettips.mf +100 -0
  811. data/share/lilypond/2.24.1/fonts/source/feta-clefs.mf +963 -0
  812. data/share/lilypond/2.24.1/fonts/source/feta-dots.mf +37 -0
  813. data/share/lilypond/2.24.1/fonts/source/feta-dynamics.mf +891 -0
  814. data/share/lilypond/2.24.1/fonts/source/feta-flags-generic.mf +17 -0
  815. data/share/lilypond/2.24.1/fonts/source/feta-flags.mf +926 -0
  816. data/share/lilypond/2.24.1/fonts/source/feta-flags11.mf +6 -0
  817. data/share/lilypond/2.24.1/fonts/source/feta-flags13.mf +6 -0
  818. data/share/lilypond/2.24.1/fonts/source/feta-flags14.mf +6 -0
  819. data/share/lilypond/2.24.1/fonts/source/feta-flags16.mf +6 -0
  820. data/share/lilypond/2.24.1/fonts/source/feta-flags18.mf +6 -0
  821. data/share/lilypond/2.24.1/fonts/source/feta-flags20.mf +6 -0
  822. data/share/lilypond/2.24.1/fonts/source/feta-flags23.mf +6 -0
  823. data/share/lilypond/2.24.1/fonts/source/feta-flags26.mf +6 -0
  824. data/share/lilypond/2.24.1/fonts/source/feta-flats.mf +668 -0
  825. data/share/lilypond/2.24.1/fonts/source/feta-macros.mf +506 -0
  826. data/share/lilypond/2.24.1/fonts/source/feta-naturals.mf +223 -0
  827. data/share/lilypond/2.24.1/fonts/source/feta-noteheads-generic.mf +17 -0
  828. data/share/lilypond/2.24.1/fonts/source/feta-noteheads.mf +2642 -0
  829. data/share/lilypond/2.24.1/fonts/source/feta-noteheads11.mf +6 -0
  830. data/share/lilypond/2.24.1/fonts/source/feta-noteheads13.mf +6 -0
  831. data/share/lilypond/2.24.1/fonts/source/feta-noteheads14.mf +6 -0
  832. data/share/lilypond/2.24.1/fonts/source/feta-noteheads16.mf +6 -0
  833. data/share/lilypond/2.24.1/fonts/source/feta-noteheads18.mf +6 -0
  834. data/share/lilypond/2.24.1/fonts/source/feta-noteheads20.mf +6 -0
  835. data/share/lilypond/2.24.1/fonts/source/feta-noteheads23.mf +6 -0
  836. data/share/lilypond/2.24.1/fonts/source/feta-noteheads26.mf +6 -0
  837. data/share/lilypond/2.24.1/fonts/source/feta-numbers.mf +1677 -0
  838. data/share/lilypond/2.24.1/fonts/source/feta-other-generic.mf +27 -0
  839. data/share/lilypond/2.24.1/fonts/source/feta-params.mf +323 -0
  840. data/share/lilypond/2.24.1/fonts/source/feta-parenthesis.mf +63 -0
  841. data/share/lilypond/2.24.1/fonts/source/feta-pedals.mf +355 -0
  842. data/share/lilypond/2.24.1/fonts/source/feta-rests.mf +890 -0
  843. data/share/lilypond/2.24.1/fonts/source/feta-scripts.mf +2206 -0
  844. data/share/lilypond/2.24.1/fonts/source/feta-sharps.mf +524 -0
  845. data/share/lilypond/2.24.1/fonts/source/feta-sori-koron.mf +325 -0
  846. data/share/lilypond/2.24.1/fonts/source/feta-ties.mf +72 -0
  847. data/share/lilypond/2.24.1/fonts/source/feta-timesignatures.mf +119 -0
  848. data/share/lilypond/2.24.1/fonts/source/feta-trills.mf +321 -0
  849. data/share/lilypond/2.24.1/fonts/source/feta11.mf +6 -0
  850. data/share/lilypond/2.24.1/fonts/source/feta13.mf +6 -0
  851. data/share/lilypond/2.24.1/fonts/source/feta14.mf +6 -0
  852. data/share/lilypond/2.24.1/fonts/source/feta16.mf +6 -0
  853. data/share/lilypond/2.24.1/fonts/source/feta18.mf +6 -0
  854. data/share/lilypond/2.24.1/fonts/source/feta20.mf +7 -0
  855. data/share/lilypond/2.24.1/fonts/source/feta23.mf +6 -0
  856. data/share/lilypond/2.24.1/fonts/source/feta26.mf +6 -0
  857. data/share/lilypond/2.24.1/fonts/source/parmesan-accidentals.mf +483 -0
  858. data/share/lilypond/2.24.1/fonts/source/parmesan-clefs.mf +1636 -0
  859. data/share/lilypond/2.24.1/fonts/source/parmesan-custodes.mf +503 -0
  860. data/share/lilypond/2.24.1/fonts/source/parmesan-dots.mf +62 -0
  861. data/share/lilypond/2.24.1/fonts/source/parmesan-flags.mf +319 -0
  862. data/share/lilypond/2.24.1/fonts/source/parmesan-macros.mf +225 -0
  863. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads-generic.mf +16 -0
  864. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads.mf +2191 -0
  865. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads11.mf +6 -0
  866. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads13.mf +6 -0
  867. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads14.mf +6 -0
  868. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads16.mf +6 -0
  869. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads18.mf +6 -0
  870. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads20.mf +6 -0
  871. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads23.mf +6 -0
  872. data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads26.mf +6 -0
  873. data/share/lilypond/2.24.1/fonts/source/parmesan-other-generic.mf +24 -0
  874. data/share/lilypond/2.24.1/fonts/source/parmesan-rests.mf +428 -0
  875. data/share/lilypond/2.24.1/fonts/source/parmesan-scripts.mf +284 -0
  876. data/share/lilypond/2.24.1/fonts/source/parmesan-timesignatures.mf +402 -0
  877. data/share/lilypond/2.24.1/fonts/source/parmesan11.mf +6 -0
  878. data/share/lilypond/2.24.1/fonts/source/parmesan13.mf +6 -0
  879. data/share/lilypond/2.24.1/fonts/source/parmesan14.mf +6 -0
  880. data/share/lilypond/2.24.1/fonts/source/parmesan16.mf +6 -0
  881. data/share/lilypond/2.24.1/fonts/source/parmesan18.mf +6 -0
  882. data/share/lilypond/2.24.1/fonts/source/parmesan20.mf +6 -0
  883. data/share/lilypond/2.24.1/fonts/source/parmesan23.mf +6 -0
  884. data/share/lilypond/2.24.1/fonts/source/parmesan26.mf +6 -0
  885. data/share/lilypond/2.24.1/fonts/svg/emmentaler-11.svg +2525 -0
  886. data/share/lilypond/2.24.1/fonts/svg/emmentaler-11.woff +0 -0
  887. data/share/lilypond/2.24.1/fonts/svg/emmentaler-13.svg +2530 -0
  888. data/share/lilypond/2.24.1/fonts/svg/emmentaler-13.woff +0 -0
  889. data/share/lilypond/2.24.1/fonts/svg/emmentaler-14.svg +2526 -0
  890. data/share/lilypond/2.24.1/fonts/svg/emmentaler-14.woff +0 -0
  891. data/share/lilypond/2.24.1/fonts/svg/emmentaler-16.svg +2523 -0
  892. data/share/lilypond/2.24.1/fonts/svg/emmentaler-16.woff +0 -0
  893. data/share/lilypond/2.24.1/fonts/svg/emmentaler-18.svg +2519 -0
  894. data/share/lilypond/2.24.1/fonts/svg/emmentaler-18.woff +0 -0
  895. data/share/lilypond/2.24.1/fonts/svg/emmentaler-20.svg +2512 -0
  896. data/share/lilypond/2.24.1/fonts/svg/emmentaler-20.woff +0 -0
  897. data/share/lilypond/2.24.1/fonts/svg/emmentaler-23.svg +2506 -0
  898. data/share/lilypond/2.24.1/fonts/svg/emmentaler-23.woff +0 -0
  899. data/share/lilypond/2.24.1/fonts/svg/emmentaler-26.svg +2510 -0
  900. data/share/lilypond/2.24.1/fonts/svg/emmentaler-26.woff +0 -0
  901. data/share/lilypond/2.24.1/fonts/svg/emmentaler-brace.svg +1757 -0
  902. data/share/lilypond/2.24.1/fonts/svg/emmentaler-brace.woff +0 -0
  903. data/share/lilypond/2.24.1/ly/Welcome_to_LilyPond.ly +45 -0
  904. data/share/lilypond/2.24.1/ly/arabic.ly +185 -0
  905. data/share/lilypond/2.24.1/ly/articulate.ly +1013 -0
  906. data/share/lilypond/2.24.1/ly/bagpipe.ly +368 -0
  907. data/share/lilypond/2.24.1/ly/base-tkit.ly +135 -0
  908. data/share/lilypond/2.24.1/ly/catalan.ly +23 -0
  909. data/share/lilypond/2.24.1/ly/chord-modifiers-init.ly +63 -0
  910. data/share/lilypond/2.24.1/ly/chord-repetition-init.ly +60 -0
  911. data/share/lilypond/2.24.1/ly/context-mods-init.ly +119 -0
  912. data/share/lilypond/2.24.1/ly/declarations-init.ly +167 -0
  913. data/share/lilypond/2.24.1/ly/deutsch.ly +23 -0
  914. data/share/lilypond/2.24.1/ly/drumpitch-init.ly +366 -0
  915. data/share/lilypond/2.24.1/ly/dynamic-scripts-init.ly +54 -0
  916. data/share/lilypond/2.24.1/ly/english.ly +23 -0
  917. data/share/lilypond/2.24.1/ly/engraver-init.ly +1619 -0
  918. data/share/lilypond/2.24.1/ly/espanol.ly +23 -0
  919. data/share/lilypond/2.24.1/ly/event-listener.ly +241 -0
  920. data/share/lilypond/2.24.1/ly/festival.ly +38 -0
  921. data/share/lilypond/2.24.1/ly/generate-documentation.ly +7 -0
  922. data/share/lilypond/2.24.1/ly/grace-init.ly +56 -0
  923. data/share/lilypond/2.24.1/ly/graphviz-init.ly +174 -0
  924. data/share/lilypond/2.24.1/ly/gregorian.ly +268 -0
  925. data/share/lilypond/2.24.1/ly/guile-debugger.ly +55 -0
  926. data/share/lilypond/2.24.1/ly/hel-arabic.ly +307 -0
  927. data/share/lilypond/2.24.1/ly/init.ly +96 -0
  928. data/share/lilypond/2.24.1/ly/italiano.ly +23 -0
  929. data/share/lilypond/2.24.1/ly/lilypond-book-preamble.ly +47 -0
  930. data/share/lilypond/2.24.1/ly/lyrics-tkit.ly +68 -0
  931. data/share/lilypond/2.24.1/ly/makam.ly +166 -0
  932. data/share/lilypond/2.24.1/ly/midi-init.ly +59 -0
  933. data/share/lilypond/2.24.1/ly/music-functions-init.ly +2254 -0
  934. data/share/lilypond/2.24.1/ly/nederlands.ly +23 -0
  935. data/share/lilypond/2.24.1/ly/norsk.ly +23 -0
  936. data/share/lilypond/2.24.1/ly/paper-defaults-init.ly +188 -0
  937. data/share/lilypond/2.24.1/ly/performer-init.ly +398 -0
  938. data/share/lilypond/2.24.1/ly/persian.ly +335 -0
  939. data/share/lilypond/2.24.1/ly/piano-tkit.ly +61 -0
  940. data/share/lilypond/2.24.1/ly/portugues.ly +23 -0
  941. data/share/lilypond/2.24.1/ly/predefined-fretboards-init.ly +78 -0
  942. data/share/lilypond/2.24.1/ly/predefined-guitar-fretboards.ly +506 -0
  943. data/share/lilypond/2.24.1/ly/predefined-guitar-ninth-fretboards.ly +75 -0
  944. data/share/lilypond/2.24.1/ly/predefined-mandolin-fretboards.ly +876 -0
  945. data/share/lilypond/2.24.1/ly/predefined-ukulele-fretboards.ly +1285 -0
  946. data/share/lilypond/2.24.1/ly/property-init.ly +858 -0
  947. data/share/lilypond/2.24.1/ly/satb.ly +214 -0
  948. data/share/lilypond/2.24.1/ly/scale-definitions-init.ly +117 -0
  949. data/share/lilypond/2.24.1/ly/scheme-sandbox.ly +39 -0
  950. data/share/lilypond/2.24.1/ly/script-init.ly +94 -0
  951. data/share/lilypond/2.24.1/ly/spanners-init.ly +146 -0
  952. data/share/lilypond/2.24.1/ly/ssaattbb.ly +335 -0
  953. data/share/lilypond/2.24.1/ly/staff-tkit.ly +182 -0
  954. data/share/lilypond/2.24.1/ly/string-tunings-init.ly +94 -0
  955. data/share/lilypond/2.24.1/ly/suomi.ly +23 -0
  956. data/share/lilypond/2.24.1/ly/svenska.ly +23 -0
  957. data/share/lilypond/2.24.1/ly/swing.ly +362 -0
  958. data/share/lilypond/2.24.1/ly/text-replacements.ly +150 -0
  959. data/share/lilypond/2.24.1/ly/titling-init.ly +150 -0
  960. data/share/lilypond/2.24.1/ly/toc-init.ly +182 -0
  961. data/share/lilypond/2.24.1/ly/turkish-makam.ly +609 -0
  962. data/share/lilypond/2.24.1/ly/vlaams.ly +23 -0
  963. data/share/lilypond/2.24.1/ly/vocal-tkit.ly +103 -0
  964. data/share/lilypond/2.24.1/ly/voice-tkit.ly +34 -0
  965. data/share/lilypond/2.24.1/ps/encodingdefs.ps +2611 -0
  966. data/share/lilypond/2.24.1/ps/lilyponddefs.ps +49 -0
  967. data/share/lilypond/2.24.1/ps/music-drawing-routines.ps +329 -0
  968. data/share/lilypond/2.24.1/python/__pycache__/book_base.cpython-310.pyc +0 -0
  969. data/share/lilypond/2.24.1/python/__pycache__/book_docbook.cpython-310.pyc +0 -0
  970. data/share/lilypond/2.24.1/python/__pycache__/book_html.cpython-310.pyc +0 -0
  971. data/share/lilypond/2.24.1/python/__pycache__/book_latex.cpython-310.pyc +0 -0
  972. data/share/lilypond/2.24.1/python/__pycache__/book_snippets.cpython-310.pyc +0 -0
  973. data/share/lilypond/2.24.1/python/__pycache__/book_texinfo.cpython-310.pyc +0 -0
  974. data/share/lilypond/2.24.1/python/__pycache__/convertrules.cpython-310.pyc +0 -0
  975. data/share/lilypond/2.24.1/python/__pycache__/langdefs.cpython-310.pyc +0 -0
  976. data/share/lilypond/2.24.1/python/__pycache__/lilylib.cpython-310.pyc +0 -0
  977. data/share/lilypond/2.24.1/python/__pycache__/midi.cpython-310.pyc +0 -0
  978. data/share/lilypond/2.24.1/python/__pycache__/musicexp.cpython-310.pyc +0 -0
  979. data/share/lilypond/2.24.1/python/__pycache__/musicxml.cpython-310.pyc +0 -0
  980. data/share/lilypond/2.24.1/python/__pycache__/musicxml2ly_conversion.cpython-310.pyc +0 -0
  981. data/share/lilypond/2.24.1/python/__pycache__/utilities.cpython-310.pyc +0 -0
  982. data/share/lilypond/2.24.1/python/book_base.py +331 -0
  983. data/share/lilypond/2.24.1/python/book_docbook.py +154 -0
  984. data/share/lilypond/2.24.1/python/book_html.py +178 -0
  985. data/share/lilypond/2.24.1/python/book_latex.py +373 -0
  986. data/share/lilypond/2.24.1/python/book_snippets.py +1052 -0
  987. data/share/lilypond/2.24.1/python/book_texinfo.py +437 -0
  988. data/share/lilypond/2.24.1/python/convertrules.py +4764 -0
  989. data/share/lilypond/2.24.1/python/langdefs.py +131 -0
  990. data/share/lilypond/2.24.1/python/lilylib.py +141 -0
  991. data/share/lilypond/2.24.1/python/midi.py +212 -0
  992. data/share/lilypond/2.24.1/python/musicexp.py +2781 -0
  993. data/share/lilypond/2.24.1/python/musicxml.py +1905 -0
  994. data/share/lilypond/2.24.1/python/musicxml2ly_conversion.py +80 -0
  995. data/share/lilypond/2.24.1/python/utilities.py +280 -0
  996. data/share/lilypond/2.24.1/scm/lily/accreg.scm +579 -0
  997. data/share/lilypond/2.24.1/scm/lily/auto-beam.scm +163 -0
  998. data/share/lilypond/2.24.1/scm/lily/autochange.scm +100 -0
  999. data/share/lilypond/2.24.1/scm/lily/backend-library.scm +593 -0
  1000. data/share/lilypond/2.24.1/scm/lily/bar-line.scm +1281 -0
  1001. data/share/lilypond/2.24.1/scm/lily/breath.scm +74 -0
  1002. data/share/lilypond/2.24.1/scm/lily/c++.scm +174 -0
  1003. data/share/lilypond/2.24.1/scm/lily/chord-entry.scm +278 -0
  1004. data/share/lilypond/2.24.1/scm/lily/chord-ignatzek-names.scm +304 -0
  1005. data/share/lilypond/2.24.1/scm/lily/chord-name.scm +217 -0
  1006. data/share/lilypond/2.24.1/scm/lily/clip-region.scm +87 -0
  1007. data/share/lilypond/2.24.1/scm/lily/color.scm +757 -0
  1008. data/share/lilypond/2.24.1/scm/lily/curried-definitions.scm +68 -0
  1009. data/share/lilypond/2.24.1/scm/lily/define-context-properties.scm +939 -0
  1010. data/share/lilypond/2.24.1/scm/lily/define-event-classes.scm +142 -0
  1011. data/share/lilypond/2.24.1/scm/lily/define-grob-interfaces.scm +640 -0
  1012. data/share/lilypond/2.24.1/scm/lily/define-grob-properties.scm +1647 -0
  1013. data/share/lilypond/2.24.1/scm/lily/define-grobs.scm +4027 -0
  1014. data/share/lilypond/2.24.1/scm/lily/define-markup-commands.scm +5737 -0
  1015. data/share/lilypond/2.24.1/scm/lily/define-music-callbacks.scm +257 -0
  1016. data/share/lilypond/2.24.1/scm/lily/define-music-display-methods.scm +1350 -0
  1017. data/share/lilypond/2.24.1/scm/lily/define-music-properties.scm +242 -0
  1018. data/share/lilypond/2.24.1/scm/lily/define-music-types.scm +983 -0
  1019. data/share/lilypond/2.24.1/scm/lily/define-note-names.scm +1421 -0
  1020. data/share/lilypond/2.24.1/scm/lily/define-stencil-commands.scm +71 -0
  1021. data/share/lilypond/2.24.1/scm/lily/define-woodwind-diagrams.scm +1215 -0
  1022. data/share/lilypond/2.24.1/scm/lily/display-lily.scm +315 -0
  1023. data/share/lilypond/2.24.1/scm/lily/display-woodwind-diagrams.scm +1985 -0
  1024. data/share/lilypond/2.24.1/scm/lily/document-backend.scm +307 -0
  1025. data/share/lilypond/2.24.1/scm/lily/document-context-mods.scm +98 -0
  1026. data/share/lilypond/2.24.1/scm/lily/document-functions.scm +169 -0
  1027. data/share/lilypond/2.24.1/scm/lily/document-identifiers.scm +76 -0
  1028. data/share/lilypond/2.24.1/scm/lily/document-markup.scm +158 -0
  1029. data/share/lilypond/2.24.1/scm/lily/document-music.scm +146 -0
  1030. data/share/lilypond/2.24.1/scm/lily/document-outside-staff-priorities.scm +40 -0
  1031. data/share/lilypond/2.24.1/scm/lily/document-paper-sizes.scm +71 -0
  1032. data/share/lilypond/2.24.1/scm/lily/document-translation.scm +318 -0
  1033. data/share/lilypond/2.24.1/scm/lily/document-type-predicates.scm +85 -0
  1034. data/share/lilypond/2.24.1/scm/lily/documentation-generate.scm +259 -0
  1035. data/share/lilypond/2.24.1/scm/lily/documentation-lib.scm +207 -0
  1036. data/share/lilypond/2.24.1/scm/lily/file-cache.scm +28 -0
  1037. data/share/lilypond/2.24.1/scm/lily/flag-styles.scm +249 -0
  1038. data/share/lilypond/2.24.1/scm/lily/font-encodings.scm +1242 -0
  1039. data/share/lilypond/2.24.1/scm/lily/font.scm +303 -0
  1040. data/share/lilypond/2.24.1/scm/lily/framework-cairo.scm +26 -0
  1041. data/share/lilypond/2.24.1/scm/lily/framework-ps.scm +896 -0
  1042. data/share/lilypond/2.24.1/scm/lily/framework-svg.scm +172 -0
  1043. data/share/lilypond/2.24.1/scm/lily/fret-diagrams.scm +1261 -0
  1044. data/share/lilypond/2.24.1/scm/lily/graphviz.scm +78 -0
  1045. data/share/lilypond/2.24.1/scm/lily/guile-debugger.scm +90 -0
  1046. data/share/lilypond/2.24.1/scm/lily/harp-pedals.scm +172 -0
  1047. data/share/lilypond/2.24.1/scm/lily/hyphenate-internal-words.scm +51 -0
  1048. data/share/lilypond/2.24.1/scm/lily/layout-beam.scm +73 -0
  1049. data/share/lilypond/2.24.1/scm/lily/layout-slur.scm +45 -0
  1050. data/share/lilypond/2.24.1/scm/lily/lily-library.scm +1446 -0
  1051. data/share/lilypond/2.24.1/scm/lily/lily-sort.scm +116 -0
  1052. data/share/lilypond/2.24.1/scm/lily/lily.scm +929 -0
  1053. data/share/lilypond/2.24.1/scm/lily/ly-syntax-constructors.scm +374 -0
  1054. data/share/lilypond/2.24.1/scm/lily/markup-macros.scm +493 -0
  1055. data/share/lilypond/2.24.1/scm/lily/markup.scm +126 -0
  1056. data/share/lilypond/2.24.1/scm/lily/midi.scm +258 -0
  1057. data/share/lilypond/2.24.1/scm/lily/modal-transforms.scm +337 -0
  1058. data/share/lilypond/2.24.1/scm/lily/music-functions.scm +2878 -0
  1059. data/share/lilypond/2.24.1/scm/lily/output-lib.scm +3377 -0
  1060. data/share/lilypond/2.24.1/scm/lily/output-ps.scm +335 -0
  1061. data/share/lilypond/2.24.1/scm/lily/output-svg.scm +684 -0
  1062. data/share/lilypond/2.24.1/scm/lily/page.scm +321 -0
  1063. data/share/lilypond/2.24.1/scm/lily/paper-system.scm +271 -0
  1064. data/share/lilypond/2.24.1/scm/lily/paper.scm +376 -0
  1065. data/share/lilypond/2.24.1/scm/lily/parser-clef.scm +205 -0
  1066. data/share/lilypond/2.24.1/scm/lily/parser-ly-from-scheme.scm +170 -0
  1067. data/share/lilypond/2.24.1/scm/lily/part-combiner.scm +998 -0
  1068. data/share/lilypond/2.24.1/scm/lily/predefined-fretboards.scm +54 -0
  1069. data/share/lilypond/2.24.1/scm/lily/ps-to-png.scm +182 -0
  1070. data/share/lilypond/2.24.1/scm/lily/scheme-engravers.scm +1813 -0
  1071. data/share/lilypond/2.24.1/scm/lily/scheme-performers.scm +126 -0
  1072. data/share/lilypond/2.24.1/scm/lily/script.scm +416 -0
  1073. data/share/lilypond/2.24.1/scm/lily/skyline.scm +25 -0
  1074. data/share/lilypond/2.24.1/scm/lily/song-util.scm +191 -0
  1075. data/share/lilypond/2.24.1/scm/lily/song.scm +853 -0
  1076. data/share/lilypond/2.24.1/scm/lily/stencil.scm +998 -0
  1077. data/share/lilypond/2.24.1/scm/lily/tablature.scm +392 -0
  1078. data/share/lilypond/2.24.1/scm/lily/time-signature-settings.scm +473 -0
  1079. data/share/lilypond/2.24.1/scm/lily/time-signature.scm +35 -0
  1080. data/share/lilypond/2.24.1/scm/lily/titling.scm +99 -0
  1081. data/share/lilypond/2.24.1/scm/lily/to-xml.scm +254 -0
  1082. data/share/lilypond/2.24.1/scm/lily/translation-functions.scm +1169 -0
  1083. data/share/lilypond/2.24.1/vim/compiler/lilypond.vim +36 -0
  1084. data/share/lilypond/2.24.1/vim/ftdetect/lilypond.vim +4 -0
  1085. data/share/lilypond/2.24.1/vim/ftplugin/lilypond.vim +91 -0
  1086. data/share/lilypond/2.24.1/vim/indent/lilypond.vim +79 -0
  1087. data/share/lilypond/2.24.1/vim/syntax/lilypond-words +1408 -0
  1088. data/share/lilypond/2.24.1/vim/syntax/lilypond-words.vim +3 -0
  1089. data/share/lilypond/2.24.1/vim/syntax/lilypond.vim +104 -0
  1090. data/share/locale/ca/LC_MESSAGES/lilypond.mo +0 -0
  1091. data/share/locale/cs/LC_MESSAGES/lilypond.mo +0 -0
  1092. data/share/locale/da/LC_MESSAGES/lilypond.mo +0 -0
  1093. data/share/locale/de/LC_MESSAGES/lilypond.mo +0 -0
  1094. data/share/locale/el/LC_MESSAGES/lilypond.mo +0 -0
  1095. data/share/locale/eo/LC_MESSAGES/lilypond.mo +0 -0
  1096. data/share/locale/es/LC_MESSAGES/lilypond.mo +0 -0
  1097. data/share/locale/fi/LC_MESSAGES/lilypond.mo +0 -0
  1098. data/share/locale/fr/LC_MESSAGES/lilypond.mo +0 -0
  1099. data/share/locale/it/LC_MESSAGES/lilypond.mo +0 -0
  1100. data/share/locale/ja/LC_MESSAGES/lilypond.mo +0 -0
  1101. data/share/locale/nl/LC_MESSAGES/lilypond.mo +0 -0
  1102. data/share/locale/ru/LC_MESSAGES/lilypond.mo +0 -0
  1103. data/share/locale/sv/LC_MESSAGES/lilypond.mo +0 -0
  1104. data/share/locale/tr/LC_MESSAGES/lilypond.mo +0 -0
  1105. data/share/locale/uk/LC_MESSAGES/lilypond.mo +0 -0
  1106. data/share/locale/vi/LC_MESSAGES/lilypond.mo +0 -0
  1107. data/share/locale/zh_CN/LC_MESSAGES/lilypond.mo +0 -0
  1108. data/share/locale/zh_TW/LC_MESSAGES/lilypond.mo +0 -0
  1109. metadata +1108 -1
@@ -0,0 +1,1568 @@
1
+ ;;; TREE-IL -> GLIL compiler
2
+
3
+ ;; Copyright (C) 2001, 2008-2014, 2018 Free Software Foundation, Inc.
4
+
5
+ ;;;; This library is free software; you can redistribute it and/or
6
+ ;;;; modify it under the terms of the GNU Lesser General Public
7
+ ;;;; License as published by the Free Software Foundation; either
8
+ ;;;; version 3 of the License, or (at your option) any later version.
9
+ ;;;;
10
+ ;;;; This library is distributed in the hope that it will be useful,
11
+ ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ ;;;; Lesser General Public License for more details.
14
+ ;;;;
15
+ ;;;; You should have received a copy of the GNU Lesser General Public
16
+ ;;;; License along with this library; if not, write to the Free Software
17
+ ;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ ;;; Code:
20
+
21
+ (define-module (language tree-il analyze)
22
+ #:use-module (srfi srfi-1)
23
+ #:use-module (srfi srfi-9)
24
+ #:use-module (srfi srfi-11)
25
+ #:use-module (srfi srfi-26)
26
+ #:use-module (ice-9 vlist)
27
+ #:use-module (ice-9 match)
28
+ #:use-module (system base syntax)
29
+ #:use-module (system base message)
30
+ #:use-module (system vm program)
31
+ #:use-module (language tree-il)
32
+ #:use-module (system base pmatch)
33
+ #:export (analyze-lexicals
34
+ analyze-tree
35
+ unused-variable-analysis
36
+ unused-toplevel-analysis
37
+ shadowed-toplevel-analysis
38
+ unbound-variable-analysis
39
+ macro-use-before-definition-analysis
40
+ arity-analysis
41
+ format-analysis))
42
+
43
+ ;; Allocation is the process of assigning storage locations for lexical
44
+ ;; variables. A lexical variable has a distinct "address", or storage
45
+ ;; location, for each procedure in which it is referenced.
46
+ ;;
47
+ ;; A variable is "local", i.e., allocated on the stack, if it is
48
+ ;; referenced from within the procedure that defined it. Otherwise it is
49
+ ;; a "closure" variable. For example:
50
+ ;;
51
+ ;; (lambda (a) a) ; a will be local
52
+ ;; `a' is local to the procedure.
53
+ ;;
54
+ ;; (lambda (a) (lambda () a))
55
+ ;; `a' is local to the outer procedure, but a closure variable with
56
+ ;; respect to the inner procedure.
57
+ ;;
58
+ ;; If a variable is ever assigned, it needs to be heap-allocated
59
+ ;; ("boxed"). This is so that closures and continuations capture the
60
+ ;; variable's identity, not just one of the values it may have over the
61
+ ;; course of program execution. If the variable is never assigned, there
62
+ ;; is no distinction between value and identity, so closing over its
63
+ ;; identity (whether through closures or continuations) can make a copy
64
+ ;; of its value instead.
65
+ ;;
66
+ ;; Local variables are stored on the stack within a procedure's call
67
+ ;; frame. Their index into the stack is determined from their linear
68
+ ;; postion within a procedure's binding path:
69
+ ;; (let (0 1)
70
+ ;; (let (2 3) ...)
71
+ ;; (let (2) ...))
72
+ ;; (let (2 3 4) ...))
73
+ ;; etc.
74
+ ;;
75
+ ;; This algorithm has the problem that variables are only allocated
76
+ ;; indices at the end of the binding path. If variables bound early in
77
+ ;; the path are not used in later portions of the path, their indices
78
+ ;; will not be recycled. This problem is particularly egregious in the
79
+ ;; expansion of `or':
80
+ ;;
81
+ ;; (or x y z)
82
+ ;; -> (let ((a x)) (if a a (let ((b y)) (if b b z))))
83
+ ;;
84
+ ;; As you can see, the `a' binding is only used in the ephemeral
85
+ ;; `consequent' clause of the first `if', but its index would be
86
+ ;; reserved for the whole of the `or' expansion. So we have a hack for
87
+ ;; this specific case. A proper solution would be some sort of liveness
88
+ ;; analysis, and not our linear allocation algorithm.
89
+ ;;
90
+ ;; Closure variables are captured when a closure is created, and stored in a
91
+ ;; vector inline to the closure object itself. Each closure variable has a
92
+ ;; unique index into that vector.
93
+ ;;
94
+ ;; There is one more complication. Procedures bound by <fix> may, in
95
+ ;; some cases, be rendered inline to their parent procedure. That is to
96
+ ;; say,
97
+ ;;
98
+ ;; (letrec ((lp (lambda () (lp)))) (lp))
99
+ ;; => (fix ((lp (lambda () (lp)))) (lp))
100
+ ;; => goto FIX-BODY; LP: goto LP; FIX-BODY: goto LP;
101
+ ;; ^ jump over the loop ^ the fixpoint lp ^ starting off the loop
102
+ ;;
103
+ ;; The upshot is that we don't have to allocate any space for the `lp'
104
+ ;; closure at all, as it can be rendered inline as a loop. So there is
105
+ ;; another kind of allocation, "label allocation", in which the
106
+ ;; procedure is simply a label, placed at the start of the lambda body.
107
+ ;; The label is the gensym under which the lambda expression is bound.
108
+ ;;
109
+ ;; The analyzer checks to see that the label is called with the correct
110
+ ;; number of arguments. Calls to labels compile to rename + goto.
111
+ ;; Lambda, the ultimate goto!
112
+ ;;
113
+ ;;
114
+ ;; The return value of `analyze-lexicals' is a hash table, the
115
+ ;; "allocation".
116
+ ;;
117
+ ;; The allocation maps gensyms -- recall that each lexically bound
118
+ ;; variable has a unique gensym -- to storage locations ("addresses").
119
+ ;; Since one gensym may have many storage locations, if it is referenced
120
+ ;; in many procedures, it is a two-level map.
121
+ ;;
122
+ ;; The allocation also stored information on how many local variables
123
+ ;; need to be allocated for each procedure, lexicals that have been
124
+ ;; translated into labels, and information on what free variables to
125
+ ;; capture from its lexical parent procedure.
126
+ ;;
127
+ ;; In addition, we have a conflation: while we're traversing the code,
128
+ ;; recording information to pass to the compiler, we take the
129
+ ;; opportunity to generate labels for each lambda-case clause, so that
130
+ ;; generated code can skip argument checks at runtime if they match at
131
+ ;; compile-time.
132
+ ;;
133
+ ;; Also, while we're a-traversing and an-allocating, we check prompt
134
+ ;; handlers to see if the "continuation" argument is used. If not, we
135
+ ;; mark the prompt as being "escape-only". This allows us to implement
136
+ ;; `catch' and `throw' using `prompt' and `control', but without causing
137
+ ;; a continuation to be reified. Heh heh.
138
+ ;;
139
+ ;; That is:
140
+ ;;
141
+ ;; sym -> {lambda -> address}
142
+ ;; lambda -> (labels . free-locs)
143
+ ;; lambda-case -> (gensym . nlocs)
144
+ ;; prompt -> escape-only?
145
+ ;;
146
+ ;; address ::= (local? boxed? . index)
147
+ ;; labels ::= ((sym . lambda) ...)
148
+ ;; free-locs ::= ((sym0 . address0) (sym1 . address1) ...)
149
+ ;; free variable addresses are relative to parent proc.
150
+
151
+ (define (make-hashq k v)
152
+ (let ((res (make-hash-table)))
153
+ (hashq-set! res k v)
154
+ res))
155
+
156
+ (define (analyze-lexicals x)
157
+ ;; bound-vars: lambda -> (sym ...)
158
+ ;; all identifiers bound within a lambda
159
+ (define bound-vars (make-hash-table))
160
+ ;; free-vars: lambda -> (sym ...)
161
+ ;; all identifiers referenced in a lambda, but not bound
162
+ ;; NB, this includes identifiers referenced by contained lambdas
163
+ (define free-vars (make-hash-table))
164
+ ;; assigned: sym -> #t
165
+ ;; variables that are assigned
166
+ (define assigned (make-hash-table))
167
+ ;; refcounts: sym -> count
168
+ ;; allows us to detect the or-expansion in O(1) time
169
+ (define refcounts (make-hash-table))
170
+ ;; labels: sym -> lambda
171
+ ;; for determining if fixed-point procedures can be rendered as
172
+ ;; labels.
173
+ (define labels (make-hash-table))
174
+
175
+ ;; returns variables referenced in expr
176
+ (define (analyze! x proc labels-in-proc tail? tail-call-args)
177
+ (define (step y) (analyze! y proc '() #f #f))
178
+ (define (step-tail y) (analyze! y proc labels-in-proc tail? #f))
179
+ (define (step-tail-call y args) (analyze! y proc labels-in-proc #f
180
+ (and tail? args)))
181
+ (define (recur/labels x new-proc labels)
182
+ (analyze! x new-proc (append labels labels-in-proc) #t #f))
183
+ (define (recur x new-proc) (analyze! x new-proc '() tail? #f))
184
+ (record-case x
185
+ ((<call> proc args)
186
+ (apply lset-union eq? (step-tail-call proc args)
187
+ (map step args)))
188
+
189
+ ((<primcall> args)
190
+ (apply lset-union eq? (map step args)))
191
+
192
+ ((<conditional> test consequent alternate)
193
+ (lset-union eq? (step test) (step-tail consequent) (step-tail alternate)))
194
+
195
+ ((<lexical-ref> gensym)
196
+ (hashq-set! refcounts gensym (1+ (hashq-ref refcounts gensym 0)))
197
+ (if (not (and tail-call-args
198
+ (memq gensym labels-in-proc)
199
+ (let ((p (hashq-ref labels gensym)))
200
+ (and p
201
+ (let lp ((c (lambda-body p)))
202
+ (and c (lambda-case? c)
203
+ (or
204
+ ;; for now prohibit optional &
205
+ ;; keyword arguments; can relax this
206
+ ;; restriction later
207
+ (and (= (length (lambda-case-req c))
208
+ (length tail-call-args))
209
+ (not (lambda-case-opt c))
210
+ (not (lambda-case-kw c))
211
+ (not (lambda-case-rest c)))
212
+ (lp (lambda-case-alternate c)))))))))
213
+ (hashq-set! labels gensym #f))
214
+ (list gensym))
215
+
216
+ ((<lexical-set> gensym exp)
217
+ (hashq-set! assigned gensym #t)
218
+ (hashq-set! labels gensym #f)
219
+ (lset-adjoin eq? (step exp) gensym))
220
+
221
+ ((<module-set> exp)
222
+ (step exp))
223
+
224
+ ((<toplevel-set> exp)
225
+ (step exp))
226
+
227
+ ((<toplevel-define> exp)
228
+ (step exp))
229
+
230
+ ((<seq> head tail)
231
+ (lset-union eq? (step head) (step-tail tail)))
232
+
233
+ ((<lambda> body)
234
+ ;; order is important here
235
+ (hashq-set! bound-vars x '())
236
+ (let ((free (recur body x)))
237
+ (hashq-set! bound-vars x (reverse! (hashq-ref bound-vars x)))
238
+ (hashq-set! free-vars x free)
239
+ free))
240
+
241
+ ((<lambda-case> opt kw inits gensyms body alternate)
242
+ (hashq-set! bound-vars proc
243
+ (append (reverse gensyms) (hashq-ref bound-vars proc)))
244
+ (lset-union
245
+ eq?
246
+ (lset-difference eq?
247
+ (lset-union eq?
248
+ (apply lset-union eq? (map step inits))
249
+ (step-tail body))
250
+ gensyms)
251
+ (if alternate (step-tail alternate) '())))
252
+
253
+ ((<let> gensyms vals body)
254
+ (hashq-set! bound-vars proc
255
+ (append (reverse gensyms) (hashq-ref bound-vars proc)))
256
+ (lset-difference eq?
257
+ (apply lset-union eq? (step-tail body) (map step vals))
258
+ gensyms))
259
+
260
+ ((<letrec> gensyms vals body)
261
+ (hashq-set! bound-vars proc
262
+ (append (reverse gensyms) (hashq-ref bound-vars proc)))
263
+ (for-each (lambda (sym) (hashq-set! assigned sym #t)) gensyms)
264
+ (lset-difference eq?
265
+ (apply lset-union eq? (step-tail body) (map step vals))
266
+ gensyms))
267
+
268
+ ((<fix> gensyms vals body)
269
+ ;; Try to allocate these procedures as labels.
270
+ (for-each (lambda (sym val) (hashq-set! labels sym val))
271
+ gensyms vals)
272
+ (hashq-set! bound-vars proc
273
+ (append (reverse gensyms) (hashq-ref bound-vars proc)))
274
+ ;; Step into subexpressions.
275
+ (let* ((var-refs
276
+ (map
277
+ ;; Since we're trying to label-allocate the lambda,
278
+ ;; pretend it's not a closure, and just recurse into its
279
+ ;; body directly. (Otherwise, recursing on a closure
280
+ ;; that references one of the fix's bound vars would
281
+ ;; prevent label allocation.)
282
+ (lambda (x)
283
+ (record-case x
284
+ ((<lambda> body)
285
+ ;; just like the closure case, except here we use
286
+ ;; recur/labels instead of recur
287
+ (hashq-set! bound-vars x '())
288
+ (let ((free (recur/labels body x gensyms)))
289
+ (hashq-set! bound-vars x (reverse! (hashq-ref bound-vars x)))
290
+ (hashq-set! free-vars x free)
291
+ free))))
292
+ vals))
293
+ (vars-with-refs (map cons gensyms var-refs))
294
+ (body-refs (recur/labels body proc gensyms)))
295
+ (define (delabel-dependents! sym)
296
+ (let ((refs (assq-ref vars-with-refs sym)))
297
+ (if refs
298
+ (for-each (lambda (sym)
299
+ (if (hashq-ref labels sym)
300
+ (begin
301
+ (hashq-set! labels sym #f)
302
+ (delabel-dependents! sym))))
303
+ refs))))
304
+ ;; Stepping into the lambdas and the body might have made some
305
+ ;; procedures not label-allocatable -- which might have
306
+ ;; knock-on effects. For example:
307
+ ;; (fix ((a (lambda () (b)))
308
+ ;; (b (lambda () a)))
309
+ ;; (a))
310
+ ;; As far as `a' is concerned, both `a' and `b' are
311
+ ;; label-allocatable. But `b' references `a' not in a proc-tail
312
+ ;; position, which makes `a' not label-allocatable. The
313
+ ;; knock-on effect is that, when back-propagating this
314
+ ;; information to `a', `b' will also become not
315
+ ;; label-allocatable, as it is referenced within `a', which is
316
+ ;; allocated as a closure. This is a transitive relationship.
317
+ (for-each (lambda (sym)
318
+ (if (not (hashq-ref labels sym))
319
+ (delabel-dependents! sym)))
320
+ gensyms)
321
+ ;; Now lift bound variables with label-allocated lambdas to the
322
+ ;; parent procedure.
323
+ (for-each
324
+ (lambda (sym val)
325
+ (if (hashq-ref labels sym)
326
+ ;; Remove traces of the label-bound lambda. The free
327
+ ;; vars will propagate up via the return val.
328
+ (begin
329
+ (hashq-set! bound-vars proc
330
+ (append (hashq-ref bound-vars val)
331
+ (hashq-ref bound-vars proc)))
332
+ (hashq-remove! bound-vars val)
333
+ (hashq-remove! free-vars val))))
334
+ gensyms vals)
335
+ (lset-difference eq?
336
+ (apply lset-union eq? body-refs var-refs)
337
+ gensyms)))
338
+
339
+ ((<let-values> exp body)
340
+ (lset-union eq? (step exp) (step body)))
341
+
342
+ ((<prompt> escape-only? tag body handler)
343
+ (match handler
344
+ (($ <lambda> _ _ handler)
345
+ (lset-union eq? (step tag) (step body) (step-tail handler)))))
346
+
347
+ ((<abort> tag args tail)
348
+ (apply lset-union eq? (step tag) (step tail) (map step args)))
349
+
350
+ (else '())))
351
+
352
+ ;; allocation: sym -> {lambda -> address}
353
+ ;; lambda -> (labels . free-locs)
354
+ ;; lambda-case -> (gensym . nlocs)
355
+ (define allocation (make-hash-table))
356
+
357
+ (define (allocate! x proc n)
358
+ (define (recur y) (allocate! y proc n))
359
+ (record-case x
360
+ ((<call> proc args)
361
+ (apply max (recur proc) (map recur args)))
362
+
363
+ ((<primcall> args)
364
+ (apply max n (map recur args)))
365
+
366
+ ((<conditional> test consequent alternate)
367
+ (max (recur test) (recur consequent) (recur alternate)))
368
+
369
+ ((<lexical-set> exp)
370
+ (recur exp))
371
+
372
+ ((<module-set> exp)
373
+ (recur exp))
374
+
375
+ ((<toplevel-set> exp)
376
+ (recur exp))
377
+
378
+ ((<toplevel-define> exp)
379
+ (recur exp))
380
+
381
+ ((<seq> head tail)
382
+ (max (recur head)
383
+ (recur tail)))
384
+
385
+ ((<lambda> body)
386
+ ;; allocate closure vars in order
387
+ (let lp ((c (hashq-ref free-vars x)) (n 0))
388
+ (if (pair? c)
389
+ (begin
390
+ (hashq-set! (hashq-ref allocation (car c))
391
+ x
392
+ `(#f ,(hashq-ref assigned (car c)) . ,n))
393
+ (lp (cdr c) (1+ n)))))
394
+
395
+ (let ((nlocs (allocate! body x 0))
396
+ (free-addresses
397
+ (map (lambda (v)
398
+ (hashq-ref (hashq-ref allocation v) proc))
399
+ (hashq-ref free-vars x)))
400
+ (labels (filter cdr
401
+ (map (lambda (sym)
402
+ (cons sym (hashq-ref labels sym)))
403
+ (hashq-ref bound-vars x)))))
404
+ ;; set procedure allocations
405
+ (hashq-set! allocation x (cons labels free-addresses)))
406
+ n)
407
+
408
+ ((<lambda-case> opt kw inits gensyms body alternate)
409
+ (max
410
+ (let lp ((gensyms gensyms) (n n))
411
+ (if (null? gensyms)
412
+ (let ((nlocs (apply
413
+ max
414
+ (allocate! body proc n)
415
+ ;; inits not logically at the end, but they
416
+ ;; are the list...
417
+ (map (lambda (x) (allocate! x proc n)) inits))))
418
+ ;; label and nlocs for the case
419
+ (hashq-set! allocation x (cons (gensym ":LCASE") nlocs))
420
+ nlocs)
421
+ (begin
422
+ (hashq-set! allocation (car gensyms)
423
+ (make-hashq
424
+ proc `(#t ,(hashq-ref assigned (car gensyms)) . ,n)))
425
+ (lp (cdr gensyms) (1+ n)))))
426
+ (if alternate (allocate! alternate proc n) n)))
427
+
428
+ ((<let> gensyms vals body)
429
+ (let ((nmax (apply max (map recur vals))))
430
+ (cond
431
+ ;; the `or' hack
432
+ ((and (conditional? body)
433
+ (= (length gensyms) 1)
434
+ (let ((v (car gensyms)))
435
+ (and (not (hashq-ref assigned v))
436
+ (= (hashq-ref refcounts v 0) 2)
437
+ (lexical-ref? (conditional-test body))
438
+ (eq? (lexical-ref-gensym (conditional-test body)) v)
439
+ (lexical-ref? (conditional-consequent body))
440
+ (eq? (lexical-ref-gensym (conditional-consequent body)) v))))
441
+ (hashq-set! allocation (car gensyms)
442
+ (make-hashq proc `(#t #f . ,n)))
443
+ ;; the 1+ for this var
444
+ (max nmax (1+ n) (allocate! (conditional-alternate body) proc n)))
445
+ (else
446
+ (let lp ((gensyms gensyms) (n n))
447
+ (if (null? gensyms)
448
+ (max nmax (allocate! body proc n))
449
+ (let ((v (car gensyms)))
450
+ (hashq-set!
451
+ allocation v
452
+ (make-hashq proc
453
+ `(#t ,(hashq-ref assigned v) . ,n)))
454
+ (lp (cdr gensyms) (1+ n)))))))))
455
+
456
+ ((<letrec> gensyms vals body)
457
+ (let lp ((gensyms gensyms) (n n))
458
+ (if (null? gensyms)
459
+ (let ((nmax (apply max
460
+ (map (lambda (x)
461
+ (allocate! x proc n))
462
+ vals))))
463
+ (max nmax (allocate! body proc n)))
464
+ (let ((v (car gensyms)))
465
+ (hashq-set!
466
+ allocation v
467
+ (make-hashq proc
468
+ `(#t ,(hashq-ref assigned v) . ,n)))
469
+ (lp (cdr gensyms) (1+ n))))))
470
+
471
+ ((<fix> gensyms vals body)
472
+ (let lp ((in gensyms) (n n))
473
+ (if (null? in)
474
+ (let lp ((gensyms gensyms) (vals vals) (nmax n))
475
+ (cond
476
+ ((null? gensyms)
477
+ (max nmax (allocate! body proc n)))
478
+ ((hashq-ref labels (car gensyms))
479
+ ;; allocate lambda body inline to proc
480
+ (lp (cdr gensyms)
481
+ (cdr vals)
482
+ (record-case (car vals)
483
+ ((<lambda> body)
484
+ (max nmax (allocate! body proc n))))))
485
+ (else
486
+ ;; allocate closure
487
+ (lp (cdr gensyms)
488
+ (cdr vals)
489
+ (max nmax (allocate! (car vals) proc n))))))
490
+
491
+ (let ((v (car in)))
492
+ (cond
493
+ ((hashq-ref assigned v)
494
+ (error "fixpoint procedures may not be assigned" x))
495
+ ((hashq-ref labels v)
496
+ ;; no binding, it's a label
497
+ (lp (cdr in) n))
498
+ (else
499
+ ;; allocate closure binding
500
+ (hashq-set! allocation v (make-hashq proc `(#t #f . ,n)))
501
+ (lp (cdr in) (1+ n))))))))
502
+
503
+ ((<let-values> exp body)
504
+ (max (recur exp) (recur body)))
505
+
506
+ ((<prompt> escape-only? tag body handler)
507
+ (match handler
508
+ (($ <lambda> _ _ handler)
509
+ (max (recur tag) (recur body) (recur handler)))))
510
+
511
+ ((<abort> tag args tail)
512
+ (apply max (recur tag) (recur tail) (map recur args)))
513
+
514
+ (else n)))
515
+
516
+ (analyze! x #f '() #t #f)
517
+ (allocate! x #f 0)
518
+
519
+ allocation)
520
+
521
+
522
+ ;;;
523
+ ;;; Tree analyses for warnings.
524
+ ;;;
525
+
526
+ (define-record-type <tree-analysis>
527
+ (make-tree-analysis down up post init)
528
+ tree-analysis?
529
+ (down tree-analysis-down) ;; (lambda (x result env locs) ...)
530
+ (up tree-analysis-up) ;; (lambda (x result env locs) ...)
531
+ (post tree-analysis-post) ;; (lambda (result env) ...)
532
+ (init tree-analysis-init)) ;; arbitrary value
533
+
534
+ (define (analyze-tree analyses tree env)
535
+ "Run all tree analyses listed in ANALYSES on TREE for ENV, using
536
+ `tree-il-fold'. Return TREE. The down and up procedures of each
537
+ analysis are passed a ``location stack', which is the stack of
538
+ `tree-il-src' values for each parent tree (a list); it can be used to
539
+ approximate source location when accurate information is missing from a
540
+ given `tree-il' element."
541
+
542
+ (define (traverse proc update-locs)
543
+ ;; Return a tree traversing procedure that returns a list of analysis
544
+ ;; results prepended by the location stack.
545
+ (lambda (x results)
546
+ (let ((locs (update-locs x (car results))))
547
+ (cons locs ;; the location stack
548
+ (map (lambda (analysis result)
549
+ ((proc analysis) x result env locs))
550
+ analyses
551
+ (cdr results))))))
552
+
553
+ ;; Extending and shrinking the location stack.
554
+ (define (extend-locs x locs) (cons (tree-il-src x) locs))
555
+ (define (shrink-locs x locs) (cdr locs))
556
+
557
+ (let ((results
558
+ (tree-il-fold (traverse tree-analysis-down extend-locs)
559
+ (traverse tree-analysis-up shrink-locs)
560
+ (cons '() ;; empty location stack
561
+ (map tree-analysis-init analyses))
562
+ tree)))
563
+
564
+ (for-each (lambda (analysis result)
565
+ ((tree-analysis-post analysis) result env))
566
+ analyses
567
+ (cdr results)))
568
+
569
+ tree)
570
+
571
+
572
+ ;;;
573
+ ;;; Unused variable analysis.
574
+ ;;;
575
+
576
+ ;; <binding-info> records are used during tree traversals in
577
+ ;; `unused-variable-analysis'. They contain a list of the local vars
578
+ ;; currently in scope, and a list of locals vars that have been referenced.
579
+ (define-record-type <binding-info>
580
+ (make-binding-info vars refs)
581
+ binding-info?
582
+ (vars binding-info-vars) ;; ((GENSYM NAME LOCATION) ...)
583
+ (refs binding-info-refs)) ;; (GENSYM ...)
584
+
585
+ (define (gensym? sym)
586
+ ;; Return #t if SYM is (likely) a generated symbol.
587
+ (string-any #\space (symbol->string sym)))
588
+
589
+ (define unused-variable-analysis
590
+ ;; Report unused variables in the given tree.
591
+ (make-tree-analysis
592
+ (lambda (x info env locs)
593
+ ;; Going down into X: extend INFO's variable list
594
+ ;; accordingly.
595
+ (let ((refs (binding-info-refs info))
596
+ (vars (binding-info-vars info))
597
+ (src (tree-il-src x)))
598
+ (define (extend inner-vars inner-names)
599
+ (fold (lambda (var name vars)
600
+ (vhash-consq var (list name src) vars))
601
+ vars
602
+ inner-vars
603
+ inner-names))
604
+
605
+ (record-case x
606
+ ((<lexical-ref> gensym)
607
+ (make-binding-info vars (vhash-consq gensym #t refs)))
608
+ ((<lexical-set> gensym)
609
+ (make-binding-info vars (vhash-consq gensym #t refs)))
610
+ ((<lambda-case> req opt inits rest kw gensyms)
611
+ (let ((names `(,@req
612
+ ,@(or opt '())
613
+ ,@(if rest (list rest) '())
614
+ ,@(if kw (map cadr (cdr kw)) '()))))
615
+ (make-binding-info (extend gensyms names) refs)))
616
+ ((<let> gensyms names)
617
+ (make-binding-info (extend gensyms names) refs))
618
+ ((<letrec> gensyms names)
619
+ (make-binding-info (extend gensyms names) refs))
620
+ ((<fix> gensyms names)
621
+ (make-binding-info (extend gensyms names) refs))
622
+ (else info))))
623
+
624
+ (lambda (x info env locs)
625
+ ;; Leaving X's scope: shrink INFO's variable list
626
+ ;; accordingly and reported unused nested variables.
627
+ (let ((refs (binding-info-refs info))
628
+ (vars (binding-info-vars info)))
629
+ (define (shrink inner-vars refs)
630
+ (vlist-for-each
631
+ (lambda (var)
632
+ (let ((gensym (car var)))
633
+ ;; Don't report lambda parameters as unused.
634
+ (if (and (memq gensym inner-vars)
635
+ (not (vhash-assq gensym refs))
636
+ (not (lambda-case? x)))
637
+ (let ((name (cadr var))
638
+ ;; We can get approximate source location by going up
639
+ ;; the LOCS location stack.
640
+ (loc (or (caddr var)
641
+ (find pair? locs))))
642
+ (if (and (not (gensym? name))
643
+ (not (eq? name '_)))
644
+ (warning 'unused-variable loc name))))))
645
+ vars)
646
+ (vlist-drop vars (length inner-vars)))
647
+
648
+ ;; For simplicity, we leave REFS untouched, i.e., with
649
+ ;; names of variables that are now going out of scope.
650
+ ;; It doesn't hurt as these are unique names, it just
651
+ ;; makes REFS unnecessarily fat.
652
+ (record-case x
653
+ ((<lambda-case> gensyms)
654
+ (make-binding-info (shrink gensyms refs) refs))
655
+ ((<let> gensyms)
656
+ (make-binding-info (shrink gensyms refs) refs))
657
+ ((<letrec> gensyms)
658
+ (make-binding-info (shrink gensyms refs) refs))
659
+ ((<fix> gensyms)
660
+ (make-binding-info (shrink gensyms refs) refs))
661
+ (else info))))
662
+
663
+ (lambda (result env) #t)
664
+ (make-binding-info vlist-null vlist-null)))
665
+
666
+
667
+ ;;;
668
+ ;;; Unused top-level variable analysis.
669
+ ;;;
670
+
671
+ ;; <reference-graph> record top-level definitions that are made, references to
672
+ ;; top-level definitions and their context (the top-level definition in which
673
+ ;; the reference appears), as well as the current context (the top-level
674
+ ;; definition we're currently in). The second part (`refs' below) is
675
+ ;; effectively a graph from which we can determine unused top-level definitions.
676
+ (define-record-type <reference-graph>
677
+ (make-reference-graph refs defs toplevel-context)
678
+ reference-graph?
679
+ (defs reference-graph-defs) ;; ((NAME . LOC) ...)
680
+ (refs reference-graph-refs) ;; ((REF-CONTEXT REF ...) ...)
681
+ (toplevel-context reference-graph-toplevel-context)) ;; NAME | #f
682
+
683
+ (define (graph-reachable-nodes root refs reachable)
684
+ ;; Add to REACHABLE the nodes reachable from ROOT in graph REFS. REFS is a
685
+ ;; vhash mapping nodes to the list of their children: for instance,
686
+ ;; ((A -> (B C)) (B -> (A)) (C -> ())) corresponds to
687
+ ;;
688
+ ;; ,-------.
689
+ ;; v |
690
+ ;; A ----> B
691
+ ;; |
692
+ ;; v
693
+ ;; C
694
+ ;;
695
+ ;; REACHABLE is a vhash of nodes known to be otherwise reachable.
696
+
697
+ (let loop ((root root)
698
+ (path vlist-null)
699
+ (result reachable))
700
+ (if (or (vhash-assq root path)
701
+ (vhash-assq root result))
702
+ result
703
+ (let* ((children (or (and=> (vhash-assq root refs) cdr) '()))
704
+ (path (vhash-consq root #t path))
705
+ (result (fold (lambda (kid result)
706
+ (loop kid path result))
707
+ result
708
+ children)))
709
+ (fold (lambda (kid result)
710
+ (vhash-consq kid #t result))
711
+ result
712
+ children)))))
713
+
714
+ (define (graph-reachable-nodes* roots refs)
715
+ ;; Return the list of nodes in REFS reachable from the nodes listed in ROOTS.
716
+ (vlist-fold (lambda (root+true result)
717
+ (let* ((root (car root+true))
718
+ (reachable (graph-reachable-nodes root refs result)))
719
+ (vhash-consq root #t reachable)))
720
+ vlist-null
721
+ roots))
722
+
723
+ (define (partition* pred vhash)
724
+ ;; Partition VHASH according to PRED. Return the two resulting vhashes.
725
+ (let ((result
726
+ (vlist-fold (lambda (k+v result)
727
+ (let ((k (car k+v))
728
+ (v (cdr k+v))
729
+ (r1 (car result))
730
+ (r2 (cdr result)))
731
+ (if (pred k)
732
+ (cons (vhash-consq k v r1) r2)
733
+ (cons r1 (vhash-consq k v r2)))))
734
+ (cons vlist-null vlist-null)
735
+ vhash)))
736
+ (values (car result) (cdr result))))
737
+
738
+ (define unused-toplevel-analysis
739
+ ;; Report unused top-level definitions that are not exported.
740
+ (let ((add-ref-from-context
741
+ (lambda (graph name)
742
+ ;; Add an edge CTX -> NAME in GRAPH.
743
+ (let* ((refs (reference-graph-refs graph))
744
+ (defs (reference-graph-defs graph))
745
+ (ctx (reference-graph-toplevel-context graph))
746
+ (ctx-refs (or (and=> (vhash-assq ctx refs) cdr) '())))
747
+ (make-reference-graph (vhash-consq ctx (cons name ctx-refs) refs)
748
+ defs ctx)))))
749
+ (define (macro-variable? name env)
750
+ (and (module? env)
751
+ (let ((var (module-variable env name)))
752
+ (and var (variable-bound? var)
753
+ (macro? (variable-ref var))))))
754
+
755
+ (make-tree-analysis
756
+ (lambda (x graph env locs)
757
+ ;; Going down into X.
758
+ (let ((ctx (reference-graph-toplevel-context graph))
759
+ (refs (reference-graph-refs graph))
760
+ (defs (reference-graph-defs graph)))
761
+ (record-case x
762
+ ((<toplevel-ref> name src)
763
+ (add-ref-from-context graph name))
764
+ ((<toplevel-define> name src)
765
+ (let ((refs refs)
766
+ (defs (vhash-consq name (or src (find pair? locs))
767
+ defs)))
768
+ (make-reference-graph refs defs name)))
769
+ ((<toplevel-set> name src)
770
+ (add-ref-from-context graph name))
771
+ (else graph))))
772
+
773
+ (lambda (x graph env locs)
774
+ ;; Leaving X's scope.
775
+ (record-case x
776
+ ((<toplevel-define>)
777
+ (let ((refs (reference-graph-refs graph))
778
+ (defs (reference-graph-defs graph)))
779
+ (make-reference-graph refs defs #f)))
780
+ (else graph)))
781
+
782
+ (lambda (graph env)
783
+ ;; Process the resulting reference graph: determine all private definitions
784
+ ;; not reachable from any public definition. Macros
785
+ ;; (syntax-transformers), which are globally bound, never considered
786
+ ;; unused since we can't tell whether a macro is actually used; in
787
+ ;; addition, macros are considered roots of the graph since they may use
788
+ ;; private bindings. FIXME: The `make-syntax-transformer' calls don't
789
+ ;; contain any literal `toplevel-ref' of the global bindings they use so
790
+ ;; this strategy fails.
791
+ (define (exported? name)
792
+ (if (module? env)
793
+ (module-variable (module-public-interface env) name)
794
+ #t))
795
+
796
+ (let-values (((public-defs private-defs)
797
+ (partition* (lambda (name)
798
+ (or (exported? name)
799
+ (macro-variable? name env)))
800
+ (reference-graph-defs graph))))
801
+ (let* ((roots (vhash-consq #f #t public-defs))
802
+ (refs (reference-graph-refs graph))
803
+ (reachable (graph-reachable-nodes* roots refs))
804
+ (unused (vlist-filter (lambda (name+src)
805
+ (not (vhash-assq (car name+src)
806
+ reachable)))
807
+ private-defs)))
808
+ (vlist-for-each (lambda (name+loc)
809
+ (let ((name (car name+loc))
810
+ (loc (cdr name+loc)))
811
+ (if (not (gensym? name))
812
+ (warning 'unused-toplevel loc name))))
813
+ unused))))
814
+
815
+ (make-reference-graph vlist-null vlist-null #f))))
816
+
817
+
818
+ ;;;
819
+ ;;; Shadowed top-level definition analysis.
820
+ ;;;
821
+
822
+ (define shadowed-toplevel-analysis
823
+ ;; Report top-level definitions that shadow previous top-level
824
+ ;; definitions from the same compilation unit.
825
+ (make-tree-analysis
826
+ (lambda (x defs env locs)
827
+ ;; Going down into X.
828
+ (record-case x
829
+ ((<toplevel-define> name src)
830
+ (match (vhash-assq name defs)
831
+ ((_ . previous-definition)
832
+ (warning 'shadowed-toplevel src name
833
+ (toplevel-define-src previous-definition))
834
+ defs)
835
+ (#f
836
+ (vhash-consq name x defs))))
837
+ (else defs)))
838
+
839
+ (lambda (x defs env locs)
840
+ ;; Leaving X's scope.
841
+ defs)
842
+
843
+ (lambda (defs env)
844
+ #t)
845
+
846
+ vlist-null))
847
+
848
+
849
+ ;;;
850
+ ;;; Unbound variable analysis.
851
+ ;;;
852
+
853
+ ;; <toplevel-info> records are used during tree traversal in search of
854
+ ;; possibly unbound variable. They contain a list of references to
855
+ ;; potentially unbound top-level variables, and a list of the top-level
856
+ ;; defines that have been encountered.
857
+ (define-record-type <toplevel-info>
858
+ (make-toplevel-info refs defs)
859
+ toplevel-info?
860
+ (refs toplevel-info-refs) ;; ((VARIABLE-NAME . LOCATION) ...)
861
+ (defs toplevel-info-defs)) ;; (VARIABLE-NAME ...)
862
+
863
+ (define (goops-toplevel-definition proc args env)
864
+ ;; If call of PROC to ARGS is a GOOPS top-level definition, return
865
+ ;; the name of the variable being defined; otherwise return #f. This
866
+ ;; assumes knowledge of the current implementation of `define-class' et al.
867
+ (define (toplevel-define-arg args)
868
+ (match args
869
+ ((($ <const> _ (and (? symbol?) exp)) _)
870
+ exp)
871
+ (_ #f)))
872
+
873
+ (match proc
874
+ (($ <module-ref> _ '(oop goops) 'toplevel-define! #f)
875
+ (toplevel-define-arg args))
876
+ (($ <toplevel-ref> _ 'toplevel-define!)
877
+ ;; This may be the result of expanding one of the GOOPS macros within
878
+ ;; `oop/goops.scm'.
879
+ (and (eq? env (resolve-module '(oop goops)))
880
+ (toplevel-define-arg args)))
881
+ (_ #f)))
882
+
883
+ (define unbound-variable-analysis
884
+ ;; Report possibly unbound variables in the given tree.
885
+ (make-tree-analysis
886
+ (lambda (x info env locs)
887
+ ;; Going down into X.
888
+ (let* ((refs (toplevel-info-refs info))
889
+ (defs (toplevel-info-defs info))
890
+ (src (tree-il-src x)))
891
+ (define (bound? name)
892
+ (or (and (module? env)
893
+ (module-variable env name))
894
+ (vhash-assq name defs)))
895
+
896
+ (record-case x
897
+ ((<toplevel-ref> name src)
898
+ (if (bound? name)
899
+ info
900
+ (let ((src (or src (find pair? locs))))
901
+ (make-toplevel-info (vhash-consq name src refs)
902
+ defs))))
903
+ ((<toplevel-set> name src)
904
+ (if (bound? name)
905
+ (make-toplevel-info refs defs)
906
+ (let ((src (find pair? locs)))
907
+ (make-toplevel-info (vhash-consq name src refs)
908
+ defs))))
909
+ ((<toplevel-define> name)
910
+ (make-toplevel-info (vhash-delq name refs)
911
+ (vhash-consq name #t defs)))
912
+
913
+ ((<call> proc args)
914
+ ;; Check for a dynamic top-level definition, as is
915
+ ;; done by code expanded from GOOPS macros.
916
+ (let ((name (goops-toplevel-definition proc args
917
+ env)))
918
+ (if (symbol? name)
919
+ (make-toplevel-info (vhash-delq name refs)
920
+ (vhash-consq name #t defs))
921
+ (make-toplevel-info refs defs))))
922
+ (else
923
+ (make-toplevel-info refs defs)))))
924
+
925
+ (lambda (x info env locs)
926
+ ;; Leaving X's scope.
927
+ info)
928
+
929
+ (lambda (toplevel env)
930
+ ;; Post-process the result.
931
+ (vlist-for-each (match-lambda
932
+ ((name . loc)
933
+ (warning 'unbound-variable loc name)))
934
+ (vlist-reverse (toplevel-info-refs toplevel))))
935
+
936
+ (make-toplevel-info vlist-null vlist-null)))
937
+
938
+
939
+ ;;;
940
+ ;;; Macro use-before-definition analysis.
941
+ ;;;
942
+
943
+ ;; <macro-use-info> records are used during tree traversal in search of
944
+ ;; possibly uses of macros before they are defined. They contain a list
945
+ ;; of references to top-level variables, and a list of the top-level
946
+ ;; macro definitions that have been encountered. Any definition which
947
+ ;; is a macro should in theory be expanded out already; if that's not
948
+ ;; the case, the program likely has a bug.
949
+ (define-record-type <macro-use-info>
950
+ (make-macro-use-info uses defs)
951
+ macro-use-info?
952
+ (uses macro-use-info-uses) ;; ((VARIABLE-NAME . LOCATION) ...)
953
+ (defs macro-use-info-defs)) ;; ((VARIABLE-NAME . LOCATION) ...)
954
+
955
+ (define macro-use-before-definition-analysis
956
+ ;; Report possibly unbound variables in the given tree.
957
+ (make-tree-analysis
958
+ (lambda (x info env locs)
959
+ ;; Going down into X.
960
+ (define (nearest-loc src)
961
+ (or src (find pair? locs)))
962
+ (define (add-use name src)
963
+ (match info
964
+ (($ <macro-use-info> uses defs)
965
+ (make-macro-use-info (vhash-consq name src uses) defs))))
966
+ (define (add-def name src)
967
+ (match info
968
+ (($ <macro-use-info> uses defs)
969
+ (make-macro-use-info uses (vhash-consq name src defs)))))
970
+ (define (macro? x)
971
+ (match x
972
+ (($ <primcall> _ 'make-syntax-transformer) #t)
973
+ (_ #f)))
974
+ (match x
975
+ (($ <toplevel-ref> src name)
976
+ (add-use name (nearest-loc src)))
977
+ (($ <toplevel-set> src name)
978
+ (add-use name (nearest-loc src)))
979
+ (($ <toplevel-define> src name (? macro?))
980
+ (add-def name (nearest-loc src)))
981
+ (_ info)))
982
+
983
+ (lambda (x info env locs)
984
+ ;; Leaving X's scope.
985
+ info)
986
+
987
+ (lambda (info env)
988
+ ;; Post-process the result.
989
+ (match info
990
+ (($ <macro-use-info> uses defs)
991
+ (vlist-for-each
992
+ (match-lambda
993
+ ((name . use-loc)
994
+ (when (vhash-assq name defs)
995
+ (warning 'macro-use-before-definition use-loc name))))
996
+ (vlist-reverse (macro-use-info-uses info))))))
997
+
998
+ (make-macro-use-info vlist-null vlist-null)))
999
+
1000
+
1001
+ ;;;
1002
+ ;;; Arity analysis.
1003
+ ;;;
1004
+
1005
+ ;; <arity-info> records contain information about lexical definitions of
1006
+ ;; procedures currently in scope, top-level procedure definitions that have
1007
+ ;; been encountered, and calls to top-level procedures that have been
1008
+ ;; encountered.
1009
+ (define-record-type <arity-info>
1010
+ (make-arity-info toplevel-calls lexical-lambdas toplevel-lambdas)
1011
+ arity-info?
1012
+ (toplevel-calls toplevel-procedure-calls) ;; ((NAME . CALL) ...)
1013
+ (lexical-lambdas lexical-lambdas) ;; ((GENSYM . DEFINITION) ...)
1014
+ (toplevel-lambdas toplevel-lambdas)) ;; ((NAME . DEFINITION) ...)
1015
+
1016
+ (define (validate-arity proc call lexical?)
1017
+ ;; Validate the argument count of CALL, a tree-il call of
1018
+ ;; PROC, emitting a warning in case of argument count mismatch.
1019
+
1020
+ (define (filter-keyword-args keywords allow-other-keys? args)
1021
+ ;; Filter keyword arguments from ARGS and return the resulting list.
1022
+ ;; KEYWORDS is the list of allowed keywords, and ALLOW-OTHER-KEYS?
1023
+ ;; specified whethere keywords not listed in KEYWORDS are allowed.
1024
+ (let loop ((args args)
1025
+ (result '()))
1026
+ (if (null? args)
1027
+ (reverse result)
1028
+ (let ((arg (car args)))
1029
+ (if (and (const? arg)
1030
+ (or (memq (const-exp arg) keywords)
1031
+ (and allow-other-keys?
1032
+ (keyword? (const-exp arg)))))
1033
+ (loop (if (pair? (cdr args))
1034
+ (cddr args)
1035
+ '())
1036
+ result)
1037
+ (loop (cdr args)
1038
+ (cons arg result)))))))
1039
+
1040
+ (define (arities proc)
1041
+ ;; Return the arities of PROC, which can be either a tree-il or a
1042
+ ;; procedure.
1043
+ (define (len x)
1044
+ (or (and (or (null? x) (pair? x))
1045
+ (length x))
1046
+ 0))
1047
+ (cond ((program? proc)
1048
+ (values (procedure-name proc)
1049
+ (map (lambda (a)
1050
+ (list (length (or (assq-ref a 'required) '()))
1051
+ (length (or (assq-ref a 'optional) '()))
1052
+ (and (assq-ref a 'rest) #t)
1053
+ (map car (or (assq-ref a 'keyword) '()))
1054
+ (assq-ref a 'allow-other-keys?)))
1055
+ (program-arguments-alists proc))))
1056
+ ((procedure? proc)
1057
+ (if (struct? proc)
1058
+ ;; An applicable struct.
1059
+ (arities (struct-ref proc 0))
1060
+ ;; An applicable smob.
1061
+ (let ((arity (procedure-minimum-arity proc)))
1062
+ (values (procedure-name proc)
1063
+ (list (list (car arity) (cadr arity) (caddr arity)
1064
+ #f #f))))))
1065
+ (else
1066
+ (let loop ((name #f)
1067
+ (proc proc)
1068
+ (arities '()))
1069
+ (if (not proc)
1070
+ (values name (reverse arities))
1071
+ (record-case proc
1072
+ ((<lambda-case> req opt rest kw alternate)
1073
+ (loop name alternate
1074
+ (cons (list (len req) (len opt) rest
1075
+ (and (pair? kw) (map car (cdr kw)))
1076
+ (and (pair? kw) (car kw)))
1077
+ arities)))
1078
+ ((<lambda> meta body)
1079
+ (loop (assoc-ref meta 'name) body arities))
1080
+ (else
1081
+ (values #f #f))))))))
1082
+
1083
+ (let ((args (call-args call))
1084
+ (src (tree-il-src call)))
1085
+ (call-with-values (lambda () (arities proc))
1086
+ (lambda (name arities)
1087
+ (define matches?
1088
+ (find (lambda (arity)
1089
+ (pmatch arity
1090
+ ((,req ,opt ,rest? ,kw ,aok?)
1091
+ (let ((args (if (pair? kw)
1092
+ (filter-keyword-args kw aok? args)
1093
+ args)))
1094
+ (if (and req opt)
1095
+ (let ((count (length args)))
1096
+ (and (>= count req)
1097
+ (or rest?
1098
+ (<= count (+ req opt)))))
1099
+ #t)))
1100
+ (else #t)))
1101
+ arities))
1102
+
1103
+ (if (not matches?)
1104
+ (warning 'arity-mismatch src
1105
+ (or name (with-output-to-string (lambda () (write proc))))
1106
+ lexical?)))))
1107
+ #t)
1108
+
1109
+ (define arity-analysis
1110
+ ;; Report arity mismatches in the given tree.
1111
+ (make-tree-analysis
1112
+ (lambda (x info env locs)
1113
+ ;; Down into X.
1114
+ (define (extend lexical-name val info)
1115
+ ;; If VAL is a lambda, add NAME to the lexical-lambdas of INFO.
1116
+ (let ((toplevel-calls (toplevel-procedure-calls info))
1117
+ (lexical-lambdas (lexical-lambdas info))
1118
+ (toplevel-lambdas (toplevel-lambdas info)))
1119
+ (record-case val
1120
+ ((<lambda> body)
1121
+ (make-arity-info toplevel-calls
1122
+ (vhash-consq lexical-name val
1123
+ lexical-lambdas)
1124
+ toplevel-lambdas))
1125
+ ((<lexical-ref> gensym)
1126
+ ;; lexical alias
1127
+ (let ((val* (vhash-assq gensym lexical-lambdas)))
1128
+ (if (pair? val*)
1129
+ (extend lexical-name (cdr val*) info)
1130
+ info)))
1131
+ ((<toplevel-ref> name)
1132
+ ;; top-level alias
1133
+ (make-arity-info toplevel-calls
1134
+ (vhash-consq lexical-name val
1135
+ lexical-lambdas)
1136
+ toplevel-lambdas))
1137
+ (else info))))
1138
+
1139
+ (let ((toplevel-calls (toplevel-procedure-calls info))
1140
+ (lexical-lambdas (lexical-lambdas info))
1141
+ (toplevel-lambdas (toplevel-lambdas info)))
1142
+
1143
+ (record-case x
1144
+ ((<toplevel-define> name exp)
1145
+ (record-case exp
1146
+ ((<lambda> body)
1147
+ (make-arity-info toplevel-calls
1148
+ lexical-lambdas
1149
+ (vhash-consq name exp toplevel-lambdas)))
1150
+ ((<toplevel-ref> name)
1151
+ ;; alias for another toplevel
1152
+ (let ((proc (vhash-assq name toplevel-lambdas)))
1153
+ (make-arity-info toplevel-calls
1154
+ lexical-lambdas
1155
+ (vhash-consq (toplevel-define-name x)
1156
+ (if (pair? proc)
1157
+ (cdr proc)
1158
+ exp)
1159
+ toplevel-lambdas))))
1160
+ (else info)))
1161
+ ((<let> gensyms vals)
1162
+ (fold extend info gensyms vals))
1163
+ ((<letrec> gensyms vals)
1164
+ (fold extend info gensyms vals))
1165
+ ((<fix> gensyms vals)
1166
+ (fold extend info gensyms vals))
1167
+
1168
+ ((<call> proc args src)
1169
+ (record-case proc
1170
+ ((<lambda> body)
1171
+ (validate-arity proc x #t)
1172
+ info)
1173
+ ((<toplevel-ref> name)
1174
+ (make-arity-info (vhash-consq name x toplevel-calls)
1175
+ lexical-lambdas
1176
+ toplevel-lambdas))
1177
+ ((<lexical-ref> gensym)
1178
+ (let ((proc (vhash-assq gensym lexical-lambdas)))
1179
+ (if (pair? proc)
1180
+ (record-case (cdr proc)
1181
+ ((<toplevel-ref> name)
1182
+ ;; alias to toplevel
1183
+ (make-arity-info (vhash-consq name x toplevel-calls)
1184
+ lexical-lambdas
1185
+ toplevel-lambdas))
1186
+ (else
1187
+ (validate-arity (cdr proc) x #t)
1188
+ info))
1189
+
1190
+ ;; If GENSYM wasn't found, it may be because it's an
1191
+ ;; argument of the procedure being compiled.
1192
+ info)))
1193
+ (else info)))
1194
+ (else info))))
1195
+
1196
+ (lambda (x info env locs)
1197
+ ;; Up from X.
1198
+ (define (shrink name val info)
1199
+ ;; Remove NAME from the lexical-lambdas of INFO.
1200
+ (let ((toplevel-calls (toplevel-procedure-calls info))
1201
+ (lexical-lambdas (lexical-lambdas info))
1202
+ (toplevel-lambdas (toplevel-lambdas info)))
1203
+ (make-arity-info toplevel-calls
1204
+ (if (vhash-assq name lexical-lambdas)
1205
+ (vlist-tail lexical-lambdas)
1206
+ lexical-lambdas)
1207
+ toplevel-lambdas)))
1208
+
1209
+ (let ((toplevel-calls (toplevel-procedure-calls info))
1210
+ (lexical-lambdas (lexical-lambdas info))
1211
+ (toplevel-lambdas (toplevel-lambdas info)))
1212
+ (record-case x
1213
+ ((<let> gensyms vals)
1214
+ (fold shrink info gensyms vals))
1215
+ ((<letrec> gensyms vals)
1216
+ (fold shrink info gensyms vals))
1217
+ ((<fix> gensyms vals)
1218
+ (fold shrink info gensyms vals))
1219
+
1220
+ (else info))))
1221
+
1222
+ (lambda (result env)
1223
+ ;; Post-processing: check all top-level procedure calls that have been
1224
+ ;; encountered.
1225
+ (let ((toplevel-calls (toplevel-procedure-calls result))
1226
+ (toplevel-lambdas (toplevel-lambdas result)))
1227
+ (vlist-for-each
1228
+ (lambda (name+call)
1229
+ (let* ((name (car name+call))
1230
+ (call (cdr name+call))
1231
+ (proc
1232
+ (or (and=> (vhash-assq name toplevel-lambdas) cdr)
1233
+ (and (module? env)
1234
+ (false-if-exception
1235
+ (module-ref env name)))))
1236
+ (proc*
1237
+ ;; handle toplevel aliases
1238
+ (if (toplevel-ref? proc)
1239
+ (let ((name (toplevel-ref-name proc)))
1240
+ (and (module? env)
1241
+ (false-if-exception
1242
+ (module-ref env name))))
1243
+ proc)))
1244
+ (cond ((lambda? proc*)
1245
+ (validate-arity proc* call #t))
1246
+ ((procedure? proc*)
1247
+ (validate-arity proc* call #f)))))
1248
+ toplevel-calls)))
1249
+
1250
+ (make-arity-info vlist-null vlist-null vlist-null)))
1251
+
1252
+
1253
+ ;;;
1254
+ ;;; `format' argument analysis.
1255
+ ;;;
1256
+
1257
+ (define &syntax-error
1258
+ ;; The `throw' key for syntax errors.
1259
+ (gensym "format-string-syntax-error"))
1260
+
1261
+ (define (format-string-argument-count fmt)
1262
+ ;; Return the minimum and maxium number of arguments that should
1263
+ ;; follow format string FMT (or, ahem, a good estimate thereof) or
1264
+ ;; `any' if the format string can be followed by any number of
1265
+ ;; arguments.
1266
+
1267
+ (define (drop-group chars end)
1268
+ ;; Drop characters from CHARS until "~END" is encountered.
1269
+ (let loop ((chars chars)
1270
+ (tilde? #f))
1271
+ (if (null? chars)
1272
+ (throw &syntax-error 'unterminated-iteration)
1273
+ (if tilde?
1274
+ (if (eq? (car chars) end)
1275
+ (cdr chars)
1276
+ (loop (cdr chars) #f))
1277
+ (if (eq? (car chars) #\~)
1278
+ (loop (cdr chars) #t)
1279
+ (loop (cdr chars) #f))))))
1280
+
1281
+ (define (digit? char)
1282
+ ;; Return true if CHAR is a digit, #f otherwise.
1283
+ (memq char '(#\0 #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9)))
1284
+
1285
+ (define (previous-number chars)
1286
+ ;; Return the previous series of digits found in CHARS.
1287
+ (let ((numbers (take-while digit? chars)))
1288
+ (and (not (null? numbers))
1289
+ (string->number (list->string (reverse numbers))))))
1290
+
1291
+ (let loop ((chars (string->list fmt))
1292
+ (state 'literal)
1293
+ (params '())
1294
+ (conditions '())
1295
+ (end-group #f)
1296
+ (min-count 0)
1297
+ (max-count 0))
1298
+ (if (null? chars)
1299
+ (if end-group
1300
+ (throw &syntax-error 'unterminated-conditional)
1301
+ (values min-count max-count))
1302
+ (case state
1303
+ ((tilde)
1304
+ (case (car chars)
1305
+ ((#\~ #\% #\& #\t #\T #\_ #\newline #\( #\) #\! #\| #\/ #\q #\Q)
1306
+ (loop (cdr chars) 'literal '()
1307
+ conditions end-group
1308
+ min-count max-count))
1309
+ ((#\0 #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9 #\, #\: #\@ #\+ #\- #\#)
1310
+ (loop (cdr chars)
1311
+ 'tilde (cons (car chars) params)
1312
+ conditions end-group
1313
+ min-count max-count))
1314
+ ((#\v #\V) (loop (cdr chars)
1315
+ 'tilde (cons (car chars) params)
1316
+ conditions end-group
1317
+ (+ 1 min-count)
1318
+ (+ 1 max-count)))
1319
+ ((#\p #\P) (let* ((colon? (memq #\: params))
1320
+ (min-count (if colon?
1321
+ (max 1 min-count)
1322
+ (+ 1 min-count))))
1323
+ (loop (cdr chars) 'literal '()
1324
+ conditions end-group
1325
+ min-count
1326
+ (if colon?
1327
+ (max max-count min-count)
1328
+ (+ 1 max-count)))))
1329
+ ((#\[)
1330
+ (loop chars 'literal '() '()
1331
+ (let ((selector (previous-number params))
1332
+ (at? (memq #\@ params)))
1333
+ (lambda (chars conds)
1334
+ ;; end of group
1335
+ (let ((mins (map car conds))
1336
+ (maxs (map cdr conds))
1337
+ (sel? (and selector
1338
+ (< selector (length conds)))))
1339
+ (if (and (every number? mins)
1340
+ (every number? maxs))
1341
+ (loop chars 'literal '() conditions end-group
1342
+ (+ min-count
1343
+ (if sel?
1344
+ (car (list-ref conds selector))
1345
+ (+ (if at? 0 1)
1346
+ (if (null? mins)
1347
+ 0
1348
+ (apply min mins)))))
1349
+ (+ max-count
1350
+ (if sel?
1351
+ (cdr (list-ref conds selector))
1352
+ (+ (if at? 0 1)
1353
+ (if (null? maxs)
1354
+ 0
1355
+ (apply max maxs))))))
1356
+ (values 'any 'any))))) ;; XXX: approximation
1357
+ 0 0))
1358
+ ((#\;)
1359
+ (if end-group
1360
+ (loop (cdr chars) 'literal '()
1361
+ (cons (cons min-count max-count) conditions)
1362
+ end-group
1363
+ 0 0)
1364
+ (throw &syntax-error 'unexpected-semicolon)))
1365
+ ((#\])
1366
+ (if end-group
1367
+ (end-group (cdr chars)
1368
+ (reverse (cons (cons min-count max-count)
1369
+ conditions)))
1370
+ (throw &syntax-error 'unexpected-conditional-termination)))
1371
+ ((#\{) (if (memq #\@ params)
1372
+ (values min-count 'any)
1373
+ (loop (drop-group (cdr chars) #\})
1374
+ 'literal '()
1375
+ conditions end-group
1376
+ (+ 1 min-count) (+ 1 max-count))))
1377
+ ((#\*) (if (memq #\@ params)
1378
+ (values 'any 'any) ;; it's unclear what to do here
1379
+ (loop (cdr chars)
1380
+ 'literal '()
1381
+ conditions end-group
1382
+ (+ (or (previous-number params) 1)
1383
+ min-count)
1384
+ (+ (or (previous-number params) 1)
1385
+ max-count))))
1386
+ ((#\? #\k #\K)
1387
+ ;; We don't have enough info to determine the exact number
1388
+ ;; of args, but we could determine a lower bound (TODO).
1389
+ (values 'any 'any))
1390
+ ((#\^)
1391
+ (values min-count 'any))
1392
+ ((#\h #\H)
1393
+ (let ((argc (if (memq #\: params) 2 1)))
1394
+ (loop (cdr chars) 'literal '()
1395
+ conditions end-group
1396
+ (+ argc min-count)
1397
+ (+ argc max-count))))
1398
+ ((#\')
1399
+ (if (null? (cdr chars))
1400
+ (throw &syntax-error 'unexpected-termination)
1401
+ (loop (cddr chars) 'tilde (cons (cadr chars) params)
1402
+ conditions end-group min-count max-count)))
1403
+ (else (loop (cdr chars) 'literal '()
1404
+ conditions end-group
1405
+ (+ 1 min-count) (+ 1 max-count)))))
1406
+ ((literal)
1407
+ (case (car chars)
1408
+ ((#\~) (loop (cdr chars) 'tilde '()
1409
+ conditions end-group
1410
+ min-count max-count))
1411
+ (else (loop (cdr chars) 'literal '()
1412
+ conditions end-group
1413
+ min-count max-count))))
1414
+ (else (error "computer bought the farm" state))))))
1415
+
1416
+ (define (proc-ref? exp proc special-name env)
1417
+ "Return #t when EXP designates procedure PROC in ENV. As a last
1418
+ resort, return #t when EXP refers to the global variable SPECIAL-NAME."
1419
+
1420
+ (define special?
1421
+ (cut eq? <> special-name))
1422
+
1423
+ (match exp
1424
+ (($ <toplevel-ref> _ (? special?))
1425
+ ;; Allow top-levels like: (define _ (cut gettext <> "my-domain")).
1426
+ #t)
1427
+ (($ <toplevel-ref> _ name)
1428
+ (let ((var (module-variable env name)))
1429
+ (and var (variable-bound? var)
1430
+ (eq? (variable-ref var) proc))))
1431
+ (($ <module-ref> _ _ (? special?))
1432
+ #t)
1433
+ (($ <module-ref> _ module name public?)
1434
+ (let* ((mod (if public?
1435
+ (false-if-exception (resolve-interface module))
1436
+ (resolve-module module #:ensure #f)))
1437
+ (var (and mod (module-variable mod name))))
1438
+ (and var (variable-bound? var) (eq? (variable-ref var) proc))))
1439
+ (($ <lexical-ref> _ (? special?))
1440
+ #t)
1441
+ (_ #f)))
1442
+
1443
+ (define gettext? (cut proc-ref? <> gettext '_ <>))
1444
+ (define ngettext? (cut proc-ref? <> ngettext 'N_ <>))
1445
+
1446
+ (define (const-fmt x env)
1447
+ ;; Return the literal format string for X, or #f.
1448
+ (match x
1449
+ (($ <const> _ (? string? exp))
1450
+ exp)
1451
+ (($ <call> _ (? (cut gettext? <> env))
1452
+ (($ <const> _ (? string? fmt))))
1453
+ ;; Gettexted literals, like `(_ "foo")'.
1454
+ fmt)
1455
+ (($ <call> _ (? (cut ngettext? <> env))
1456
+ (($ <const> _ (? string? fmt)) ($ <const> _ (? string?)) _ ..1))
1457
+ ;; Plural gettextized literals, like `(N_ "singular" "plural" n)'.
1458
+
1459
+ ;; TODO: Check whether the singular and plural strings have the
1460
+ ;; same format escapes.
1461
+ fmt)
1462
+ (_ #f)))
1463
+
1464
+ (define format-analysis
1465
+ ;; Report arity mismatches in the given tree.
1466
+ (make-tree-analysis
1467
+ (lambda (x _ env locs)
1468
+ ;; Down into X.
1469
+ (define (check-format-args args loc)
1470
+ (pmatch args
1471
+ ((,port ,fmt . ,rest)
1472
+ (guard (const-fmt fmt env))
1473
+ (if (and (const? port)
1474
+ (not (boolean? (const-exp port))))
1475
+ (warning 'format loc 'wrong-port (const-exp port)))
1476
+ (let ((fmt (const-fmt fmt env))
1477
+ (count (length rest)))
1478
+ (catch &syntax-error
1479
+ (lambda ()
1480
+ (let-values (((min max)
1481
+ (format-string-argument-count fmt)))
1482
+ (and min max
1483
+ (or (and (or (eq? min 'any) (>= count min))
1484
+ (or (eq? max 'any) (<= count max)))
1485
+ (warning 'format loc 'wrong-format-arg-count
1486
+ fmt min max count)))))
1487
+ (lambda (_ key)
1488
+ (warning 'format loc 'syntax-error key fmt)))))
1489
+ ((,port ,fmt . ,rest)
1490
+ (if (and (const? port)
1491
+ (not (boolean? (const-exp port))))
1492
+ (warning 'format loc 'wrong-port (const-exp port)))
1493
+
1494
+ (match fmt
1495
+ (($ <const> loc* (? (negate string?) fmt))
1496
+ (warning 'format (or loc* loc) 'wrong-format-string fmt))
1497
+
1498
+ ;; Warn on non-literal format strings, unless they refer to
1499
+ ;; a lexical variable named "fmt".
1500
+ (($ <lexical-ref> _ fmt)
1501
+ #t)
1502
+ ((? (negate const?))
1503
+ (warning 'format loc 'non-literal-format-string))))
1504
+ (else
1505
+ (warning 'format loc 'wrong-num-args (length args)))))
1506
+
1507
+ (define (check-simple-format-args args loc)
1508
+ ;; Check the arguments to the `simple-format' procedure, which is
1509
+ ;; less capable than that of (ice-9 format).
1510
+
1511
+ (define allowed-chars
1512
+ '(#\A #\S #\a #\s #\~ #\%))
1513
+
1514
+ (define (format-chars fmt)
1515
+ (let loop ((chars (string->list fmt))
1516
+ (result '()))
1517
+ (match chars
1518
+ (()
1519
+ (reverse result))
1520
+ ((#\~ opt rest ...)
1521
+ (loop rest (cons opt result)))
1522
+ ((_ rest ...)
1523
+ (loop rest result)))))
1524
+
1525
+ (match args
1526
+ ((port ($ <const> _ (? string? fmt)) _ ...)
1527
+ (let ((opts (format-chars fmt)))
1528
+ (or (every (cut memq <> allowed-chars) opts)
1529
+ (begin
1530
+ (warning 'format loc 'simple-format fmt
1531
+ (find (negate (cut memq <> allowed-chars)) opts))
1532
+ #f))))
1533
+ ((port (= (cut const-fmt <> env) (? string? fmt)) args ...)
1534
+ (check-simple-format-args `(,port ,(make-const loc fmt) ,args) loc))
1535
+ (_ #t)))
1536
+
1537
+ (define (resolve-toplevel name)
1538
+ (and (module? env)
1539
+ (false-if-exception (module-ref env name))))
1540
+
1541
+ (match x
1542
+ (($ <call> src ($ <toplevel-ref> _ name) args)
1543
+ (let ((proc (resolve-toplevel name)))
1544
+ (if (or (and (eq? proc (@ (guile) simple-format))
1545
+ (check-simple-format-args args
1546
+ (or src (find pair? locs))))
1547
+ (eq? proc (@ (ice-9 format) format)))
1548
+ (check-format-args args (or src (find pair? locs))))))
1549
+ (($ <call> src ($ <module-ref> _ '(ice-9 format) 'format) args)
1550
+ (check-format-args args (or src (find pair? locs))))
1551
+ (($ <call> src ($ <module-ref> _ '(guile)
1552
+ (or 'format 'simple-format))
1553
+ args)
1554
+ (and (check-simple-format-args args
1555
+ (or src (find pair? locs)))
1556
+ (check-format-args args (or src (find pair? locs)))))
1557
+ (_ #t))
1558
+ #t)
1559
+
1560
+ (lambda (x _ env locs)
1561
+ ;; Up from X.
1562
+ #t)
1563
+
1564
+ (lambda (_ env)
1565
+ ;; Post-processing.
1566
+ #t)
1567
+
1568
+ #t))