import { ParseMode } from '../public/core' ; import { Atom } from './atom-class' ; /**
/**
 * Return an atom suitable for use as the root of a formula.
 */ export function makeRoot ( parseMode , body = [ ] ) { const root = new Atom ( 'root' , { mode : parseMode } ) ; console . assert ( body . every ( ( x ) => ! x . parent ) ) ; root . body = body ; return root ; }