abc icon indicating copy to clipboard operation
abc copied to clipboard

Support for unary ~ and infix ^

Open davidgiven opened this issue 9 years ago • 0 comments

It seems the PDP-11 version of B supported ~ and ^ --- I added support to my copy, mainly because I wanted to test code generation for not and xor.

You mention in the README that you were thinking of adding support for different versions of the language. My versions have ACK code generation so will be of limited use to you, but for reference::

~ support:

https://github.com/davidgiven/ack/commit/374e7a1c57ec44a98ad1e9df2291b6638c54efa0#diff-001711b0da5eb4e0fdb5dd4d0bb2bcfc

^ support:

https://github.com/davidgiven/ack/commit/803b81e3f4aca291ef937174d9033bc30f32e78c#diff-001711b0da5eb4e0fdb5dd4d0bb2bcfc

davidgiven avatar Jan 07 '17 23:01 davidgiven