ArkScript
A small, lisp-inspired, functional scripting language
Instructions.hpp File Reference

The different instructions used by the compiler and virtual machine. More...

#include <array>
#include "Instructions.x"
Include dependency graph for Instructions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Ark
 
namespace  Ark::internal
 

Macros

#define X(name, value)
 
#define X(name, value)
 

Enumerations

enum  Ark::internal::Instruction : uint8_t {
  Ark::internal::SYM_TABLE_START = 0xA1 , Ark::internal::VAL_TABLE_START = 0xA2 , Ark::internal::CODE_SEGMENT_START = 0xA3 , Ark::internal::NUMBER_TYPE = 0xF1 ,
  Ark::internal::STRING_TYPE = 0xF2 , Ark::internal::FUNC_TYPE = 0xF3 , Ark::internal::FILENAMES_TABLE_START = 0xA4 , Ark::internal::INST_LOC_TABLE_START = 0xA5 ,
  Ark::internal::X , Ark::internal::X
}
 The different bytecodes are stored here. More...
 

Variables

constexpr uint8_t Ark::internal::FirstOperator = Instruction::BREAKPOINT
 
constexpr std::array Ark::internal::InstructionNames
 

Detailed Description

The different instructions used by the compiler and virtual machine.

Author
Lexy Plateau (lexpl.nosp@m.t.de.nosp@m.v@gma.nosp@m.il.c.nosp@m.om)
Date
2020-10-27

Definition in file Instructions.hpp.

Macro Definition Documentation

◆ X [1/2]

#define X ( name,
value )
Value:
name = (value),

Definition at line 37 of file Instructions.hpp.

◆ X [2/2]

#define X ( name,
value )
Value:
#name,

Definition at line 37 of file Instructions.hpp.