llexer.h Header

#include <Layers/llexer.h>

Types

struct LToken A token is a character or set of characters (text) that represents a lexical component (identified by type) at a particular location (line) in a larger text amongst other tokens.
struct LError An error is a problem that has been identified at a particular line and explained by message. Errors are meant to be logged to make users aware so that the problems can be fixed.
class LLexer Build tokens from Layers input.

Type Aliases

using LTokens Pluralized identifier for a vector of LTokens

Enums

enum class LTokenType Types of character-based (lexical) components (tokens).

Functions

std::string to_string(LTokenType token_type)

Type Alias Documentation

using LTokens = std::vector<LToken>

Pluralized identifier for a vector of LTokens

Enum Documentation

enum class LTokenType

Types of character-based (lexical) components (tokens).

Constant Description
WORD
BOOL
NUMBER
STRING
COLOR
COLON : = Definition
AT @ = State conditions
AMP & = Conditional conjunction
SLASH / = Path traversal
DOT . = Grouping
PAREN_OPEN ( = Expansion start
PAREN_CLOSE ) = Expansion end
COMMA , = Expansion separator
INHERIT << = Inheritance
INDENT
DEDENT
NEWLINE
ENDFILE
ERROR

Function Documentation

std::string to_string(LTokenType token_type)

Returns a string identifying the given token type (e.g. "WORD" if the token type is LTokenType::WORD).

Appearance
Theme
—