dietc.lexer

Members

Aliases

Position
alias Position = size_t[2]

zero-based [line, column]

Functions

matchText
bool matchText(ref DietInput input, string match)

Advances the input and returns true in case the tokens start with this match. Warning: on match this will start a next token if it contains part of the match, discarding it basically.

validateIdentifier
bool validateIdentifier(string s)

[-_0-9a-zA-Z]+

validateIdentifierAlpha
bool validateIdentifierAlpha(string s)

[-_a-zA-Z] [-_0-9a-zA-Z]*

validateTagIdentifier
bool validateTagIdentifier(string s)

[-:_0-9a-zA-Z]+

Structs

DietInput
struct DietInput

Meta