gfy-cpp
Loading...
Searching...
No Matches
token.hpp File Reference
#include <string>
#include <tuple>

Go to the source code of this file.

Data Structures

class  Token
 

Enumerations

enum class  Type {
  Module , Keyword , Identifier , Operator ,
  Parenthesis , Bracket , Int , Float ,
  String , Boolean , List , Eof ,
  Unknown
}
 Token types. More...
 

Functions

string type2str (Type type)
 Convert a type to a string.
 

Enumeration Type Documentation

◆ Type

enum class Type
strong

Token types.

Enumerator
Module 
Keyword 
Identifier 
Operator 
Parenthesis 
Bracket 
Int 
Float 
String 
Boolean 
List 
Eof 
Unknown 

Function Documentation

◆ type2str()

string type2str ( Type type)

Convert a type to a string.

Returns
The string representation of the type