LibParseInterstitial

Git Source

Functions

skipComment

The cursor currently points at the head of a comment. We need to skip over all data until we find the end of the comment. This MAY REVERT if the comment is malformed, e.g. if the comment doesn't start with /*.

function skipComment(ParseState memory state, uint256 cursor, uint256 end) internal pure returns (uint256);

Parameters

NameTypeDescription
stateParseStateThe parser state.
cursoruint256The current cursor position.
enduint256

Returns

NameTypeDescription
<none>uint256The new cursor position.

skipWhitespace

function skipWhitespace(ParseState memory state, uint256 cursor, uint256 end) internal pure returns (uint256);

parseInterstitial

function parseInterstitial(ParseState memory state, uint256 cursor, uint256 end) internal pure returns (uint256);