This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sample operator data for demonstration purposes | |
const operators = { | |
'+': { name: '_ADD', infix: { name: '_PLUS' }, prefix: null }, | |
'-': { name: '_SUB', infix: { name: '_MINUS' }, prefix: { name: '_NEGATE' } }, | |
'*': { name: '_MUL', infix: null, prefix: null }, | |
'/': { name: '_DIV', infix: null, prefix: null }, | |
// ... potentially other operators ... | |
}; | |
// Create a set of all operator names |