Gymbo

Public Attributes | List of all members
gymbo::Token Struct Reference

Structure representing a token. More...

`#include <tokenizer.h>`

Collaboration diagram for gymbo::Token:
[legend]

## Public Attributes
TokenKind | kind
| Token kind. More...
Token * | next
| Pointer to the next token in the sequence. More...
float | val
| If kind is TOKEN_NUM, its value. More...
char * | str
| Token string. More...
int | len
| Token length. More...
int | var_id
| Variable ID. More...

## Detailed Description

Structure representing a token.

## Member Data Documentation

## ◆ kind

TokenKind gymbo::Token::kind

Token kind.

## ◆ len

int gymbo::Token::len

Token length.

## ◆ next

Token* gymbo::Token::next

Pointer to the next token in the sequence.

## ◆ str

char* gymbo::Token::str

Token string.

## ◆ val

float gymbo::Token::val

If kind is TOKEN_NUM, its value.

## ◆ var_id

int gymbo::Token::var_id

Variable ID.

The documentation for this struct was generated from the following file:

- libgymbo/tokenizer.h