Closed waneck closed 12 years ago
Wonderful! Andreas already merged your changes and I hope I can use those soon ;)
Franco
On Mon, Nov 28, 2011 at 3:38 AM, waneck < reply@reply.github.com
wrote:
Hey guys, I've been using erazor macros on production for some time now, and I think it's quite stable. I've done some moderately complex stuff, like creating helper functions, switching on values, etc, and they are all working. Please tell me if you think something should be changed!
Thank you Cau
You can merge this Pull Request by running:
git pull https://github.com/waneck/erazor master
Or you can view, comment on it, or merge it online at:
https://github.com/ciscoheat/erazor/pull/7
-- Commit Summary --
- added initial macro support
- added support for @:includeTemplate meta
- Changed how Types are handled in macros. Now it is possible to call static functions and match on enums on the macro parser
- Merge branch 'master' of https://github.com/waneck/erazor
- Changed how Types are handled inside erazor-macro. Now it's possible to call static functions, and even match on enums.
- Changed how Types are handled inside erazor-macro. Now it's possible to call static functions, and even match on enums.
- Merge branch 'master' of https://github.com/waneck/erazor
- added support for implicit importing
- minor fix
- Added an explicit import case
- Added another test case: Explicit import at source level
- added warning when using capitalized vars
- Added support for correct error positions; Fixed bug with macro Parser (macro regex inconsistency); simplified macro processing on display mode
-- File Changes --
A .tm-autocomplete.hxml (10) A .tmbuild (1) A build.hxml (73) A erazor.tmproj (82) M src/erazor/Parser.hx (792) M src/erazor/TBlock.hx (0) M src/erazor/Template.hx (156) A src/erazor/error/ParserError.hx (33) A src/erazor/macro/Build.hx (414) A src/erazor/macro/MacroBlock.hx (16) A src/erazor/macro/Template.hx (22) M test/TestAll.hx (1) A test/erazor/Test.erazor (1) A test/erazor/TestMacro.hx (168) M test/erazor/TestParser.hx (11) M test/erazor/TestScriptBuilder.hx (0)
-- Patch Links --
https://github.com/ciscoheat/erazor/pull/7.patch https://github.com/ciscoheat/erazor/pull/7.diff
Reply to this email directly or view it on GitHub: https://github.com/ciscoheat/erazor/pull/7
Great! I'm happy to see it approved : )
I've tried to concentrate the changes into the 'erazor.macro' package, but I've had to make a couple of changes in the parser. First change was to work around the macros' regex limitations (and bugs), and I've also changed so all errors in the parser include the positions, so we can report the compilation errors' position properly.
Also the Build code is very ugly right now, and doesn't follow any conventions like the rest of the code. It was done in a proof of concept spirit. I'll clean it up later!
If you have suggestions, please tell me!
Cauê
Hey guys, I've been using erazor macros on production for some time now, and I think it's quite stable. I've done some moderately complex stuff, like creating helper functions, switching on values, etc, and they are all working. Please tell me if you think something should be changed!
Thank you Cauê