MCPcopy
hub / github.com/josdejong/mathjs / parseEnd

Function parseEnd

src/expression/parse.js:1794–1801  ·  view source on GitHub ↗

* Evaluated when the expression is not yet ended but expected to end * @return {Node} res * @private

(state)

Source from the content-addressed store, hash-verified

1792 * @private
1793 */
1794 function parseEnd (state) {
1795 if (state.token === '') {
1796 // syntax error or unexpected end of expression
1797 throw createSyntaxError(state, 'Unexpected end of expression')
1798 } else {
1799 throw createSyntaxError(state, 'Value expected')
1800 }
1801 }
1802
1803 /**
1804 * Shortcut for getting the current row value (one based)

Callers 1

parseParenthesesFunction · 0.85

Calls 1

createSyntaxErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…