ArkScript
A small, fast, functional and scripting language for video games
Common.hpp File Reference

Common code for the compiler. More...

#include <array>
#include <string_view>
#include <vector>
#include <cinttypes>
+ Include dependency graph for Common.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
 

Typedefs

using Ark::bytecode_t = std::vector< uint8_t >
 

Enumerations

enum class  Ark::internal::NodeType {
  Ark::internal::Symbol , Ark::internal::Capture , Ark::internal::GetField , Ark::internal::Keyword ,
  Ark::internal::String , Ark::internal::Number , Ark::internal::List , Ark::internal::Closure ,
  Ark::internal::Macro , Ark::internal::Spread , Ark::internal::Unused
}
 The different node types available. More...
 
enum class  Ark::internal::Keyword {
  Ark::internal::Fun , Ark::internal::Let , Ark::internal::Mut , Ark::internal::Set ,
  Ark::internal::If , Ark::internal::While , Ark::internal::Begin , Ark::internal::Import ,
  Ark::internal::Quote , Ark::internal::Del
}
 The different keywords available. More...
 

Variables

constexpr std::array< std::string_view, 11 > Ark::internal::nodeTypes
 
constexpr std::array< std::string_view, 10 > Ark::internal::keywords
 List of available keywords in ArkScript.
 
constexpr std::array< std::string_view, 25 > Ark::internal::operators
 

Detailed Description

Common code for the compiler.

Author
Alexandre Plateau (lexpl.nosp@m.t.de.nosp@m.v@gma.nosp@m.il.c.nosp@m.om)
Version
0.3
Date
2021-10-02

Definition in file Common.hpp.