Re: Trying to understand preprocessor

new topic     » goto parent     » topic index » view thread      » older message » newer message
moskito_x said...

That does not explain why "eui thedate.dex" does not work? without a pre-processor hook defined.
It's in the eu.cfg "-p dex:datesub.ex:-f %m/%d/%Y"

D:\euphoria-405\demo\preproc>eui thedate.dex  
Can't open 'D:\euphoria-405\demo\preproc\thedate.dex'  

Are you sure the file was really there?

moskito_x said...

Magic:

After I entered once:

eui eui:datesub.ex thedate.eui 

all other attempts now run.

Weird. You left off the -p there, btw.

moskito_x said...

Microsoft Windows XP [Version 5.1.2600] 
(C) Copyright 1985-2001 Microsoft Corp. 
 
D:\euphoria-405\demo\preproc>eui thedate.dex 
2013-02-09 
 
D:\euphoria-405\demo\preproc>eui -p eui:datesub.ex thedate.dex 
2013-02-09 

Those worked.

moskito_x said...

D:\euphoria-405\demo\preproc>eui -p eui:datesub.ex thedate.ex 
The date this was run is @DATE@ 

That wasn't suppose to work, as "-p eui" and ".ex" don't match.

moskito_x said...

D:\euphoria-405\demo\preproc>eui -p eui:datesub.ex thedate.dex 
2013-02-09 

That otherwise wasn't suppose to work either - but it did thanks to your eu.cfg

moskito_x said...

In eu.cfg: after I delete the line "-p dex:datesub.ex:-f %m/%d/%Y"

MAGIC : What happened here?

Thanks moskito x

D:\euphoria-405\demo\preproc>eui -p eui:datesub.ex thedate.dex 
@DATE@ 
 

That wasn't suppose to work - "-p eui" and ".dex" don't match.

moskito_x said...

D:\euphoria-405\demo\preproc>eui -p ex:datesub.ex thedate.ex 
The date this was run is 2013-02-09 
 
D:\euphoria-405\demo\preproc> 

That worked, because "-p ex" and ".ex" match.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu