import type { Parser } from "../api.js" ; import { inputEnd , inputStart , lineEnd , lineStart } from "../prims/anchor.js" ; import { seq } from "./seq.js" ; export const startsWith = < T > ( parser ) => seq ( [ inputStart , parser ] ) ; export const endsWith = < T > ( parser ) => seq ( [ parser , inputEnd ] ) ; export const entireLine = ( parser ) => seq ( [ lineStart , parser , lineEnd ] ) ; export const entirely = < T > ( parser ) => seq ( [ inputStart , parser , inputEnd ] ) ;