Skip to content

Struct worldlang::Unit

ClassList > worldlang > Unit

More...

  • #include <Language.hpp>

Public Types

Type Name
enum Type

Public Attributes

Type Name
Type type
std::string value
The value of this code unit. What it means depends on the type.

Detailed Description

A singular code unit. Will have some specific meaning within the interpreter itself.

Public Types Documentation

enum Type

enum worldlang::Unit::Type {
    number,
    string,
    identifier,
    function,
    operation,
    function_decl
};

Various types of code Units.

Note:

that most internal interpreter functions all fall under operation.

Public Attributes Documentation

variable type

Type type;

This determines how this unit is used within the interpreter. The type of this code unit.

variable value

std::string value;

The documentation for this class was generated from the following file source/Worlds/Language.hpp