|
Shi
|
Namespaces | |
| namespace | literals |
Classes | |
| struct | Init |
| Init struct. More... | |
| struct | is_reference_wrapper |
| struct | is_reference_wrapper< std::reference_wrapper< U > > |
| struct | remove_cvref |
| struct | Word |
| Word. More... | |
Typedefs | |
| template<typename T > | |
| using | remove_cvref_t = typename remove_cvref<T>::type |
Functions | |
| size_t | depth () |
| size_t | size () |
| template<typename T > | |
| void | push (T &&t) |
| template<typename... Ts> | |
| void | push (Ts &&... ts) |
| template<typename T = int32_t> | |
| T | pop () |
| template<typename... Ts, typename = std::enable_if_t<(sizeof...(Ts) > 1)>> | |
| std::tuple< Ts... > | pop () |
| template<typename T = int32_t> | |
| decltype(auto) | top (size_t offset=0) |
| void | shi_init_asm (Init &) |
| void | init (Init s) |
| void | evaluate (char const *str) |
| void | evaluate (char const *str, size_t len) |
| template<typename T > | |
| void | variable (T adr, char const *str) |
| template<typename T > | |
| void | variable (T adr, char const *str, size_t len) |
| void | clear () |
| Clear stack. | |
| void_fp | tick (char const *str) |
| void_fp | tick (char const *str, size_t len) |
Variables | |
| template<typename T > | |
| constexpr bool | is_reference_wrapper_v {is_reference_wrapper<T>::value} |
| using shi::remove_cvref_t = typename remove_cvref<T>::type |
|
inline |
Clear stack.

|
inline |
Returns the number of elements on the stack


|
inline |
Evaluate
| str | Pointer to the null-terminated byte string |

|
inline |
Evaluate
| str | Pointer to the null-terminated byte string |
| len | Length of the null-terminated string |

|
inline |
| T shi::pop | ( | ) |
Remove element from the top of the stack
| T | Type of element to pop |

| std::tuple< Ts... > shi::pop | ( | ) |
Remove elements from the top of the stack
| Ts | Types of element to pop |

| void shi::push | ( | T && | t | ) |
Add element to the top of the stack
| T | Type of element to push |
| t | Value to push |

| void shi::push | ( | Ts &&... | ts | ) |
Add elements to the top of the stack
| Ts | Types of elements to push |
| ts | Values to push |

| void shi::shi_init_asm | ( | Init & | ) |

|
inline |
Returns the number of elements on the stack


|
inline |
Tick
| str | Pointer to the null-terminated byte string |

|
inline |
Tick
| str | Pointer to the null-terminated byte string |
| len | Length of the null-terminated string |

| decltype(auto) shi::top | ( | size_t | offset = 0 | ) |
Get element from the stack
| T | Type of element to get |
| offset | Offset in cells |
| void shi::variable | ( | T | adr, |
| char const * | str ) |
Create reference to C variable
| T | Type of address |
| adr | Address of variable |
| str | Pointer to the null-terminated byte string |

| void shi::variable | ( | T | adr, |
| char const * | str, | ||
| size_t | len ) |
Create reference to C variable
| T | Type of address |
| adr | Address of variable |
| str | Pointer to the null-terminated byte string |
| len | Length of the null-terminated string |

|
inlineconstexpr |