DietInput

Undocumented in source.

Members

Functions

determineIndentation
size_t determineIndentation(string whitespace, bool error)
Undocumented in source. Be warned that the author may not have intended to support it.
empty
bool empty()
Undocumented in source. Be warned that the author may not have intended to support it.
expect
bool expect(TokenType type, string match, string srcfile, size_t srcline)

Does a peek and advances a token and adds an error if it doesn't match.

front
auto front()
Undocumented in source. Be warned that the author may not have intended to support it.
indexEOL
size_t indexEOL()
Undocumented in source. Be warned that the author may not have intended to support it.
match
bool match(TokenType type, string match)

Does a peek and advances a token.

peek
bool peek(TokenType type, string match)

Checks if the current token matches type & optional match.

popFront
void popFront()
Undocumented in source. Be warned that the author may not have intended to support it.
read
string read(size_t[2] range)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
save
auto save()
Undocumented in source. Be warned that the author may not have intended to support it.
skipAll
size_t skipAll(TokenType[] types)
Undocumented in source. Be warned that the author may not have intended to support it.
skipAllCount
size_t[] skipAllCount(TokenType[] types)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

fromFile
DietInput fromFile(R file)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

backlog
Token[] backlog;
Undocumented in source.
code
string code;
Undocumented in source.
errors
ErrorContext errors;
Undocumented in source.
file
string file;
Undocumented in source.
indentation
size_t[] indentation;
Undocumented in source.
indentationStyle
IndentStyle indentationStyle;
Undocumented in source.
index
size_t index;
Undocumented in source.
last
Token last;
Undocumented in source.
lastWasNewline
bool lastWasNewline;
Undocumented in source.
tabSize
int tabSize;
Undocumented in source.

Meta