diet-complete ~master (2018-09-11T12:44:55Z)
Dub
Repo
DietInput.expect
dietc
lexer
DietInput
Does a peek and advances a token and adds an error if it doesn't match.
struct
DietInput
bool
expect
(
TokenType
type
,
string
match
= null
,
string
srcfile
= __FILE__
,
size_t
srcline
= __LINE__
)
Meta
Source
See Implementation
dietc
lexer
DietInput
functions
expect
match
peek
Does a peek and advances a token and adds an error if it doesn't match.