olety / cjass

Preserving cjass code from code.google.com/p/cjass
0 stars 0 forks source link

cjass not working with new jasshelper by cohador #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
http://www.hiveworkshop.com/forums/warcraft-editing-tools-277/jasshelper-2011-12
-19-a-208802/

Original issue reported on code.google.com by mrasolo...@gmail.com on 19 Feb 2012 at 4:20

GoogleCodeExporter commented 9 years ago
Use //! nocjass and //! endnocjass keywords.

Code:

#define a = 0
integer i = a // there is defines works

//! nocjass
    integer f = a // ooops, cjass totally ignored code in nocjass tags, you can't use defines there
    // code with any syntax
    function ХУЙНЯ takes ...
        for ...
    endfunction
//! endnocjass

In this case adicParser must be running first (it parse cJass and vJass code 
and ignores new vJass code which placed in //! nocjass tags), then vJass, and 
then adicOptimizer (it works only witc Jass code).

cJass can't process one more syntax (cJass work with basically Jass syntax, 
vJass syntax and cJass syntax, and it not easy). So you must choise what you 
want use in some code: cJass, zinc, classic vJass or this "new" vjass.

Good luck to cohador with their new project!

Also as you understand I not support cJass now (

Original comment by adi...@gmail.com on 19 Feb 2012 at 8:39

GoogleCodeExporter commented 9 years ago
adic3x you are still alive! nice! I don't want to pressure you into developing 
cjass further, but I wish so much you made a comeback :). 

I need quite a few features (eg. % operator for mod), but probably the most 
important for me is function overloading / default parameters in functions. I 
know it is possible to emulate with macros, but it is too hackish / annoying / 
not straight-forward. Please please could you make it? (:

Original comment by evgkoc...@gmail.com on 25 Feb 2012 at 7:59

GoogleCodeExporter commented 9 years ago
Yes, I'm STILL ALIVE :) Glad to see you!

I'm probably not going to work on this project ;(

Original comment by adi...@gmail.com on 25 Feb 2012 at 9:50