Toy 1.1.6
The Toy programming language is an imperative bytecode-intermediate embedded scripting language
Loading...
Searching...
No Matches
Data Fields
Toy_Literal Struct Reference

Data Fields

union {
   bool   boolean
 
   int   integer
 
   float   number
 
   struct {
      Toy_RefString *   ptr
 
   }   string
 
   struct Toy_LiteralArray *   array
 
   struct Toy_LiteralDictionary *   dictionary
 
   struct {
      union {
         Toy_RefFunction *   ptr
 
         Toy_NativeFn   native
 
         Toy_HookFn   hook
 
      }   inner
 
      struct Toy_Scope *   scope
 
   }   function
 
   struct {
      Toy_RefString *   ptr
 
      int   hash
 
   }   identifier
 
   struct {
      struct Toy_Literal *   subtypes
 
      Toy_LiteralType   typeOf
 
      unsigned char   capacity
 
      unsigned char   count
 
      bool   constant
 
   }   type
 
   struct {
      void *   ptr
 
      int   tag
 
   }   opaque
 
   void *   generic
 
} as
 
Toy_LiteralType type
 

Field Documentation

◆ array

struct Toy_LiteralArray* Toy_Literal::array

8

◆ 

union { ... } Toy_Literal::as

16

◆ boolean

bool Toy_Literal::boolean

1

◆ capacity

unsigned char Toy_Literal::capacity

1

◆ constant

bool Toy_Literal::constant

1

◆ count

unsigned char Toy_Literal::count

1

◆ dictionary

struct Toy_LiteralDictionary* Toy_Literal::dictionary

8

◆ 

struct { ... } Toy_Literal::function

16

◆ generic

void* Toy_Literal::generic

8

◆ hash

int Toy_Literal::hash

4

◆ hook

Toy_HookFn Toy_Literal::hook

8

◆ 

struct { ... } Toy_Literal::identifier

16

◆ 

union { ... } Toy_Literal::inner

8

◆ integer

int Toy_Literal::integer

4

◆ native

Toy_NativeFn Toy_Literal::native

8

◆ number

float Toy_Literal::number

4

◆ 

struct { ... } Toy_Literal::opaque

16

◆ ptr [1/3]

Toy_RefString* Toy_Literal::ptr

8

◆ ptr [2/3]

Toy_RefFunction* Toy_Literal::ptr

8

◆ ptr [3/3]

void* Toy_Literal::ptr

8

◆ scope

struct Toy_Scope* Toy_Literal::scope

@???@

◆ 

struct { ... } Toy_Literal::string

8

◆ subtypes

struct Toy_Literal* Toy_Literal::subtypes

8

◆ tag

int Toy_Literal::tag

4

◆  [1/2]

struct { ... } Toy_Literal::type

16

◆ type [2/2]

Toy_LiteralType Toy_Literal::type

4

◆ typeOf

Toy_LiteralType Toy_Literal::typeOf

4


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