├── .gitignore ├── LICENSE ├── README.md └── cheatsheets ├── README.md ├── haxe-Expr.graffle ├── haxe-Type.graffle ├── haxe-ast.graffle ├── haxe-ast.pdf ├── haxe-ast.svg └── haxe-typed-ast.graffle /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Nick Main 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Haxe Macro Tools 2 | 3 | To be: a collection of [Haxe macros][macros] and related tools and documentation. 4 | 5 | See LICENSE for the code license. 6 | 7 | Documentation and graphics in this repository are licensed under the [Creative Commons Attribution 4.0 International License][ccby]. 8 | 9 | ![CC-BY Logo](https://i.creativecommons.org/l/by/4.0/88x31.png) 10 | 11 | [macros]: http://haxe.org/manual/macro.html 12 | [ccby]: http://creativecommons.org/licenses/by/4.0/ -------------------------------------------------------------------------------- /cheatsheets/README.md: -------------------------------------------------------------------------------- 1 | Note that these cheatsheets are part of the author's personal learning process and not intended to be definitive, complete, or accurate documentation ! -------------------------------------------------------------------------------- /cheatsheets/haxe-Expr.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickmain/haxe-macros/52a038f6b1e2bd821772715977a4f5ebcb6b439f/cheatsheets/haxe-Expr.graffle -------------------------------------------------------------------------------- /cheatsheets/haxe-Type.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickmain/haxe-macros/52a038f6b1e2bd821772715977a4f5ebcb6b439f/cheatsheets/haxe-Type.graffle -------------------------------------------------------------------------------- /cheatsheets/haxe-ast.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickmain/haxe-macros/52a038f6b1e2bd821772715977a4f5ebcb6b439f/cheatsheets/haxe-ast.graffle -------------------------------------------------------------------------------- /cheatsheets/haxe-ast.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickmain/haxe-macros/52a038f6b1e2bd821772715977a4f5ebcb6b439f/cheatsheets/haxe-ast.pdf -------------------------------------------------------------------------------- /cheatsheets/haxe-ast.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Produced by OmniGraffle 6.4.1 2015-12-30 05:48:46 +0000Canvas 1Layer 1PositionfilemaxminExprposexprExprDefEConstConstantEArrayExprExprEBinopExprBinopExprEFieldExprStringEParenthesisExprEObjectDecl{field, expr}*EArrayDeclExpr*ECallExprExpr*ENewTypePathExpr*EUnopExprUnoppostfixEVarsVar*EFunctionname?FunctionEBlockExpr*EForiter:ExprExprEInExprExprEIfelse:Expr?Exprif:ExprEWhilenormalExprbody:ExprESwitchdef:Expr?ExprCase*ETryExprCatch*EReturnExprEBreakEContinueEUntypedExprEThrowExprECastExprComplexType?EDisplayExprisCallEDisplayNewTypePathETernaryelse:ExprExprif:ExprECheckTypeExprComplexTypeEMetaMetadataEntryExprBinopOpBoolOrOpAssignOpBinopOpMultOpDivOpSubOpAssignOpEqOpNotEqOpGtOpGteOpLtOpLteOpAndOpOrOpXorOpBoolAndOpShlOpShrOpUShrOpModOpIntervalOpArrowOpAddUnopOpIncrementOpDecrementOpNotOpNegOpNegBitsFunctionFunctionArg*ExprTypeParamDecl*ret:ComplexType?ConstantCIntStringCFloatStringCStringStringCIdentStringCRegexpopt:StringStringFunctionArgnameoptional?ComplexType?value:Expr?TypeParamDeclparams:TypeParamDecl*constraints:ComplexType*nameComplexTypeTPathTypePathTFunctionret:ComplexTypeargs:ComplexType*TAnonymousField*TParentComplexTypeTExtendField*TypePath*TOptionalComplexTypeFieldAccess*doc:String?FieldTypeMetadataEntry*namePositionFieldTypeFVarExprComplexType?FFunFunctionFPropExprComplexTypesetgetAccessAPublicAPrivateAStaticAOverrideADynamicAInlineAMacroMetadataEntrynameposExpr*TypePathnamesub:String?pack:String*TypeParam*TypeParamTPTypeComplexTypeTPExprExprVarExpr?ComplexType?nameCaseExprvalue:Expr*guard:Expr?CatchExprComplexTypenameTypeDefinitionField*isExternTypeKindDefMetadataEntry*namepack:String*params:TypeParamDecl*PositionTypeKindDefTDEnumTDStructureTDClassisInterfaceifaces:TypePath*super:TypePathTDAliasComplexTypeTDAbstractto:ComplexType*from:ComplexType*this:ComplexType?Context.defineType()ImportExprImportModepath:{Position,name}*ImportModeINormalIAsNamealiasIAllContext.defineModule() 4 | -------------------------------------------------------------------------------- /cheatsheets/haxe-typed-ast.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickmain/haxe-macros/52a038f6b1e2bd821772715977a4f5ebcb6b439f/cheatsheets/haxe-typed-ast.graffle --------------------------------------------------------------------------------