package pacomb
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Pacomb.PosSource
Functions managing positions
Source
type pos = {name : string;(*file's name
*)line : int;(*line number
*)col : int;(*column number
*)phantom : bool;(*is the postion a "phantom", i.e. not really in the file
*)
}Type to represent position
Get a position from an input buffer and a column number
Style for printing positions:
printting for position
and interval
print_buf_pos () ch (buf,pos) = print_pos () ch (get_pos buf pos)
Exception raised by the function below when parsing fails
handle_exception fn v applies the function fn to v and handles the Parse_error exception. In particular, a parse error message is presented to the user in case of a failure, then error e is called where e is the raised exception. The default error is fun _ -> exit 1. raise is another possibility.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page