• Stars
    star
    231
  • Rank 173,434 (Top 4 %)
  • Language
    Erlang
  • License
    Apache License 2.0
  • Created almost 15 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Parse transform utilities for Erlang

The parse_trans application

Authors: Ulf Wiger ([email protected]).

Parse_transform utilities

Build Status Hex pm

Introduction

Parse_trans was written in order to capture some useful patterns in parse transformation and code generation for Erlang.

Most notably, perhaps, the module exprecs generates standardized accessor functions for records, and ct_expand makes it possible to evaluate an expression at compile-time and substitute the result as a compile-time constant.

Less known modules, perhaps:

  • parse_trans_pp can be called with escript to pretty-print source from debug-compiled .beam files.
  • parse_trans_codegen provides pseudo-functions that can be used for simple code generation.
  • parse_trans provides various helper functions for traversing code and managing complex parse transforms

Modules

ct_expand
exprecs
parse_trans
parse_trans_codegen
parse_trans_mod
parse_trans_pp