MCPcopy Index your code
hub / github.com/josdejong/mathjs / parseLogicalOr

Function parseLogicalOr

src/expression/parse.js:788–797  ·  view source on GitHub ↗

* logical or, 'x or y' * @return {Node} node * @private

(state)

Source from the content-addressed store, hash-verified

786 * @private
787 */
788 function parseLogicalOr (state) {
789 let node = parseLogicalXor(state)
790
791 while (state.token === 'or') { // eslint-disable-line no-unmodified-loop-condition
792 getTokenSkipNewline(state)
793 node = new OperatorNode('or', 'or', [node, parseLogicalXor(state)])
794 }
795
796 return node
797 }
798
799 /**
800 * logical exclusive or, 'x xor y'

Callers 1

parseConditionalFunction · 0.85

Calls 2

parseLogicalXorFunction · 0.85
getTokenSkipNewlineFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…