import "../test/setup" ; import { between , manySepBy } from "../lib/combinators" ; import { float , whitespace } from "../lib" ; let tupleElement = float ( ) ; let paddedElement = tupleElement . pipe ( between ( whitespace ( ) ) ) ; let separated = paddedElement . pipe ( manySepBy ( "," ) ) ; let surrounded = separated . pipe ( between ( "(" , ")" ) , between ( whitespace ( ) ) ) ; console . log ( surrounded . parse ( "(1,  2 , 3 )" ) ) ; let result = surrounded . parse ( `








(1, a, 3

` ) ; console . log ( result . toString ( ) ) ;