add more primitives and predicates to (language tree-il primitives)
authorAndy Wingo <wingo@pobox.com>
Tue, 10 Apr 2012 22:47:21 +0000 (15:47 -0700)
committerAndy Wingo <wingo@pobox.com>
Mon, 23 Apr 2012 19:52:02 +0000 (21:52 +0200)
commit5deea34d0eb3d2ec5db421eb79516e747eed5841
treef126824e81975aa635701e97ad99f67591adebd5
parent7e822b32d2a165a027fd1de4d59fdfae568599bf
add more primitives and predicates to (language tree-il primitives)

* module/language/tree-il/primitives.scm
  (*interesting-primitive-names*): Add number? and char?.  Add more
  numeric predicates.  Add character comparators.  Add throw, error, and
  scm-error.
  (*primitive-accessors*): Remove struct-vtable.  Though the vtable's
  contents may change (through redefinition), its identity does not
  change.
  (*effect-free-primitives*): Put struct-vtable, number?, and char?
  here.
  (*multiply-valued-primitives*): Instead of listing singly-valued
  primitives, list multiply-valued primitives.
  (*bailout-primitives*): New list.
  (*negatable-primitives*): New alist.
  (*bailout-primitive-table*, *multiply-valued-primitive-table*)
  (*negatable-primitive-table*): New tables.
  (singly-valued-primitive?): Adapt to
  use *multiply-valued-primitive-table*.
  (bailout-primitive?, negate-primitive): New exported procedures.
module/language/tree-il/primitives.scm