prayer

Utility types and tools for macro.
https://github.com/fal-works/prayer/

To install, run:

haxelib install prayer 0.1.3 

See using Haxelib in Haxelib documentation for more information.

README.md

prayer

Utility library for Haxe macro.

Requires Haxe 4 (developed with v4.0.5).

Caveats

Reinventing the wheel!

Maybe you would prefer to use tink_macro or any other library.

Usage

import prayer.*;

using prayer.extensions.Index;

Classes

ContextTools

Utility functions using haxe.macro.Context.

ModuleTools

Utility functions for modules.

Values

Some constant values.

Types

MacroResult

Enum, either - Ok(value: T) or - Failed(message: String, position: haxe.macro.Expr.Position)

Also has some additional methods.

CompilerFlag

Object unit representing a compiler flag with a default value.

ModuleInfo

Information about a module.

EnumAbstractType

A kind of haxe.macro.Type.AbstractType instance that has @:enum metadata.

Fields

Just an alias for Array<haxe.macro.Expr.Field>.

Static extension

using prayer.extensions.Index;

The above enables you to use additional methods for several macro-related types
(such as Type, Expr, Field, ComplexType, ClassType etc).

Dependencies

See also: FAL Haxe libraries

Contributors
fal-works
Version
0.1.3
Published
4 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub