package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=5d1187d5e44ed0163f76fb12dabf012e
sha512=91bc81530fa4f6498961583ad51eac5001f139881788b88e360a866ad8e2a6e2c5bce86d1a580ab4cd4782bf49d48318767df82471ce33ba3ac143e5569ad33c
doc/coq-core.gramlib/Gramlib/LStream/index.html
Module Gramlib.LStream
Source
Extending streams with a (non-canonical) location function
Returning the loc of the last consumed element or the initial loc if no element is consumed
Returning the loc of the max visited element or the initial loc if no element is consumed
interval_loc bp ep strm
returns the loc starting after element bp
(counting from 0) and spanning up to already peeked element at position ep
, under the assumption that bp
<= ep
; returns an empty interval if bp
= ep
; returns the empty initial interval if additionally bp
= 0; fails if the elements have not been peeked yet
Return location of an already peeked element at some position counting from 0; fails if the element has not been peeked yet
Lifted usual function on streams
next e strm
returns and consumes the next element; raise Stream.Failure
if the stream is empty
Other functions