import { OPERATOR_PREFIX } from '../constants' ; import { createOperatorSpecification } from '../spec/operator' ; import { Parser , ParserContext } from '../types' ; const match = ( line ) : boolean => line . startsWith ( OPERATOR_PREFIX ) ; const run = ( lines , { content } ) => { const title = lines [ 0 ] . substring ( OPERATOR_PREFIX . length ) . trim ( ) ; const spec = createOperatorSpecification ( title ) ; content . push ( spec ) ; } ; export const operatorParser = { match , run } ;