rex v0.1.0-alpha4 Rex.Macro

Functions dealing with Rex AST.

Rex is a concatenative language written in Elixir syntax.

A Rex AST is a list of Elixir terms in RPN (Reverse Polish Notation)

A Rex program stack is a list of functions in that same order, each function takes and returns a tuple with the form:

{data_stack, program_stack, env}

Summary

Functions

Transforms an Elixir AST into a Rex AST

Macros

Turns Elixir code into a Rex program stack

Functions

to_rex_ast(elixir_ast)

Transforms an Elixir AST into a Rex AST

Macros

to_rex(elixir_ast)

Turns Elixir code into a Rex program stack.