The main one: seems that needs an external C preprocessor, isn't it?
This will be useless for 95% of JAL users, and this will give us a lot
of problems about this.
The second one, just a thought: looks like C too much, is there a way
to "JALify" it? I'm thinking in something like a procedure/function
syntax: "macro ( ) is ... end macro".
Tell me what do you think prior to do anything. Otherwise it's fine.
Regards,
Javi.
On jue, 2005-11-03 at 17:40 +0100, Marco Pantaleoni wrote:
> On Thursday 03 November 2005 16:34, Marco Pantaleoni wrote:
> >
> > If you like, I'll add a command line switch to jal to invoke automatically
> > the preprocessor, thus avoiding the two separate commands shown above.
>
> I've added that switch. Now if you run jal with the "-P" switch, it will
> invoke cpp for you.
> Compiling the example of the previous message would become:
>
> $ jal -P silly-example.jal
>
> (jal will call cpp handling automatically the temporary file creation and
> removal).
>
> You can also specify a different "cpp" passing a command string to -P, as in:
>
> $ jal -P/usr/local/bin/cpp silly-example.jal
>
> you can pass complex commands quoting with simple or double quotes the
> command:
>
> $ jal -P'/usr/local/bin/cpp -funny' silly-example.jal
>
> I can't check if CVS has been updated recently (it goes in time-out right
> now), so I'm providing a patch against the CVS version without my previous
> patch. In other words, this patch supersedes the previous one.
>
> Cheers,
> Marco
>
Hi, I've added support to jal for cpp-like preprocessors (cpp, gpp, ...). This essentialy allows to write macros using #define (and correctly handle line...
... Hi Javier, I apologize for the late answer, but I've been out of town. ... of course. The main use of preprocessor support in jal is to write macros, short...
... I've added that switch. Now if you run jal with the "-P" switch, it will invoke cpp for you. Compiling the example of the previous message would become: $...
Hi Marco, Sorry, I've been busy. ;) Just 2 questions. The main one: seems that needs an external C preprocessor, isn't it? This will be useless for 95% of...
... Yes, but if someone doesn't need it, he can just ignore it. One possible solution could be to selective enable the preprocessor support when running the...
Hi Marco, ... Yes, but what about sharing code? These macro functions will make JAL "other" language (JAL-cpp vs JAL), that is you'll not able to share code ...
... You are right, it would impede code sharing. I think of this feature as a "sharp knife", to be used exclusively when unavoidable, but I understand that ...
... hello Marco, Javi, As a non-C-programmer, I cann't understand the full extend / consequences of this C-isch macro implementation, but here a few remarks: ...
... I agree, but while on unix-like systems a pre-processor is (almost) always present, on other systems (windows), it is not. I'm not interested in windows ...
Hi all, ... Marco, you hit in the bulls eye. Ask in the jallist how many of them have a C compiler to build latest JAL sources .... ... and now think that...
... Yes, I understand. ... This sounds great! Thanks. In the meantime I'll try to come to a more integrated solution. I'll keep you posted. Cheers, Marco -- ...
Hi all, Available patches in jal.sf.net: ID Summary 1352435 10Fxxx support 1352433 Preprocessor support 1118846 JAL 16F648 Extensions Regards, Javi....