Pegjs operates on strings. However, strings and arrays are very similar! This function adds charAt, charCodeAt, and substring methods to array so that array can then be fed to a Pegjs generated parser.
charAt
charCodeAt
substring
array
Generated using TypeDoc
Pegjs operates on strings. However, strings and arrays are very similar! This function adds
charAt
,charCodeAt
, andsubstring
methods toarray
so thatarray
can then be fed to a Pegjs generated parser.