-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
It would be nice if I could transform an Boolean expression using De Morgan's Theorems. It's useful when you want to convert an 'if' expression into an 'else', or simply switch the form of your expression.
Examples:
Selecting first OR term (!(A && B)
) in the next expression and switching:
!(A && B) || C
wold give:
(A && B) || C
Anywhere in the expression:
A || B && (C || D)
transforms the whole expression into:
!(A || B) || !(C || D)
Simplifying further:
(!A && !B) || (!C && !D)
I think you get the idea...
Maybe the language servers have some functions that could help with the tokenization.
Metadata
Metadata
Assignees
Labels
No labels