MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / atom

Function atom

src/math-json/parse-sympy.ts:295–309  ·  view source on GitHub ↗
(
  s: string,
  start: number
)

Source from the content-addressed store, hash-verified

293
294function atom(
295 s: string,
296 start: number
297): [index: number, result: Expression | null] {
298 let [i, e] = identifier(s, start);
299 if (e) return [i, e];
300
301 [i, e] = literal(s, start);
302 if (e) return [i, e];
303
304 [i, e] = enclosure(s, start);
305 if (e) return [i, e];
306
307 return [start, null];
308}
309
310// expression_list ::= expression ("," expression)* [","]
311function expressionList(
312 s: string,

Callers 1

primaryFunction · 0.85

Calls 3

identifierFunction · 0.85
enclosureFunction · 0.85
literalFunction · 0.70

Tested by

no test coverage detected