@@ -394,23 +394,23 @@ cdef class _ResultIterator(object):
394394 raise StopIteration ()
395395
396396
397- def all (program , value = _NO_VALUE, text = _NO_VALUE):
398- return compile (program).input(value, text = text).all()
397+ def all (program , value = _NO_VALUE, text = _NO_VALUE, args = None ):
398+ return compile (program, args = args ).input(value, text = text).all()
399399
400400
401- def first (program , value = _NO_VALUE, text = _NO_VALUE):
402- return compile (program).input(value, text = text).first()
401+ def first (program , value = _NO_VALUE, text = _NO_VALUE, args = None ):
402+ return compile (program, args = args ).input(value, text = text).first()
403403
404404
405405_iter = iter
406406
407407
408- def iter (program , value = _NO_VALUE, text = _NO_VALUE):
409- return _iter(compile (program).input(value, text = text))
408+ def iter (program , value = _NO_VALUE, text = _NO_VALUE, args = None ):
409+ return _iter(compile (program, args = args ).input(value, text = text))
410410
411411
412- def text (program , value = _NO_VALUE, text = _NO_VALUE):
413- return compile (program).input(value, text = text).text()
412+ def text (program , value = _NO_VALUE, text = _NO_VALUE, args = None ):
413+ return compile (program, args = args ).input(value, text = text).text()
414414
415415
416416# Support the 0.1.x API for backwards compatibility
0 commit comments