Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefix operators #4

Open
joelmccracken opened this issue Jul 5, 2024 · 0 comments
Open

prefix operators #4

joelmccracken opened this issue Jul 5, 2024 · 0 comments

Comments

@joelmccracken
Copy link

Howdy,

I am using this lib to translate/debug logical statements into code, and then evaluating them to see that they're equal.

The thing I'm frustrated with is not, or neg - I'd like a unary prefix operator.

$(a and (not b)) works, but b gets complex, e.g. $(a and (not {a or b})), well that's not processed; so I went and looked and saw that $(a and ($ not {a or b})) was supported; I did that, but ended up makign an an operator (defun neg (x y) (not y)) (infix #x500 neg) jthat just ignores its first argument, which is a little more natural.

I see you noted about prefix operators in your source. Any advice on implementation?

And, thanks for the lib! I thought at least you might like to hear how someone's using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant