gfy-cpp
Loading...
Searching...
No Matches
lexer.hpp File Reference
#include "token.hpp"
#include <fstream>
#include <string>
#include <array>
#include <locale>

Go to the source code of this file.

Data Structures

class  Lexer
 A class to read tokens from a source file. More...
 

Variables

const array< string, 11 > KEYWORDS
 The keywords in the language.
 

Variable Documentation

◆ KEYWORDS

const array<string, 11> KEYWORDS
Initial value:
= {
"set",
"print",
"add",
"sub",
"mul",
"div",
"mod",
"equals",
"greater",
"less",
"define",
}

The keywords in the language.