Script File Preprocessor

32 views
Skip to first unread message

Andrea Del Signore

unread,
Sep 22, 2011, 11:47:49 AM9/22/11
to Scriptsharp
In my solution I need to modify the .script, because I want to add
this section

/*
#asset(custom/*)
*/

The final file is:

//! #= ScriptFile ##
//

/*
#asset(custom/*)
*/

(function($) {
#include[as-is] "%code%"
})();

//! This script was generated using Script# v#= CompilerVersion ##

But when the s# compiler parse it, it strips the #asset directive (I
think because it doesn't know what to do with it).
is there any way to include some text and instruct the compiler to
include it verbatim in the output file?

Thanks in advance.
Regards,
Andrea

nikhilk

unread,
Sep 26, 2011, 7:44:47 AM9/26/11
to Scriptsharp
Comments are stripped out by the preprocessor unless they start
with //!

You might want to try:

//! #asset(custom)

Also, I would recommend switching to StackOverflow for general script#
questions. See http://stackoverflow.com/questions/tagged/script%23
and the issues list on github for reporting bugs: see
https://github.com/nikhilk/scriptsharp.

Those are the channels I check up on.

Andrea Del Signore

unread,
Sep 26, 2011, 7:46:05 PM9/26/11
to Scriptsharp
Hi,

I'm sorry I caused a little bit of confusion because I'm the same
person who opened the issue on github.

As I've said on the bug issue I already tried with //! asset(custom/*)
but that doesn't work with the generate.py script include in qooxdoo.

About the channel to use for talking about scriptsharp I think that we
need a little more than stackoverflow.
For example what if I need some clarification on the scripsharp
codebase? Or I want to discuss a proposal with the community?

IMHO something like a mailing list (or this group or another
"official" one) is more appropriate.
Having said that, for my next questions I'll use the official channels
advised by Nikhik ;)

Best regards,
Andrea

P.S.
for only this question can we continue to discuss on the bug report?
https://github.com/nikhilk/scriptsharp/issues/108

On Sep 26, 1:44 pm, nikhilk <nikhilk....@gmail.com> wrote:
> Comments are stripped out by the preprocessor unless they start
> with //!
>
> You might want to try:
>
> //! #asset(custom)
>
> Also, I would recommend switching to StackOverflow for general script#
> questions. Seehttp://stackoverflow.com/questions/tagged/script%23
> and the issues list on github for reporting bugs: seehttps://github.com/nikhilk/scriptsharp.
Reply all
Reply to author
Forward
0 new messages