(s: string)
| 329 | |
| 330 | export function validEpsil(s: string): Expression | null { |
| 331 | const [value, errors] = parseEpsil(s); |
| 332 | if (errors && errors.length > 0) return formatError(errors); |
| 333 | expect(operator(value)).toBe('Program'); |
| 334 | // Grammar tests compare a single statement's payload. Multiple statements |
| 335 | // retain their Program container; Program cardinalities are tested separately. |
| 336 | return strip(operands(value).length === 1 ? operand(value, 1)! : value); |
| 337 | } |
| 338 |
no test coverage detected