1#ifndef SPUDPLATE_LEXER_H
2#define SPUDPLATE_LEXER_H
7#include "spudplate/token.h"
21 explicit Lexer(std::string source);
32 [[nodiscard]]
char current()
const;
34 [[nodiscard]]
bool isAtEnd()
const;
35 void skipWhitespace();
36 void skipLineContinuation();
37 Token readIdentifierOrKeyword();
38 Token readStringLiteral();
39 Token readIntegerLiteral();
Tokenises a spudlang source string into a stream of Token values.
Definition lexer.h:18
Token nextToken()
Returns the next Token from the source, advancing the position.
Definition lexer.cpp:122
A single lexical token with source location.
Definition token.h:84