diet-complete ~master (2021-12-23T12:39:56.512012)
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
determineIndentation
empty
expect
front
indexEOL
match
peek
popFront
read
reset
save
skipAll
skipAllCount
static functions
fromFile
variables
backlog
code
errors
file
indentation
indentationStyle
index
last
lastWasNewline
tabSize
Does a peek and advances a token and adds an error if it doesn't match.