This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: kawa file extensions?
* Per Bothner <per@bothner.com> [100411 16:27]:
> On 04/11/2010 11:45 AM, Tim Johnson wrote:
>> Is there anything in the kawa system that would preclude the use of
>> an alternative file extension - like
>> .kawa
>> as opposed to
>> .scm?
>
> No. Extensions are used to specify the default language,
> but are otherwise not required. If there is no extension,
> the language defaults to Kawa-Scheme, and if the extension is
> one that Kawa associates with another language (see the
> languages tables in gnu.expr.Language) that you might get
> the wrong language. However, if both cases you can specify
> an explicit language:
>
> To force XQuery instead of the default Scheme language:
>
> $ kawa --xquery /tmp/bar
>
> To force Scheme instead of the implied XQuery:
>
> $ kawa --scheme /tmp/bar.xq
Understood. Thank you.
--
Tim
tim@johnsons-web.com
http://www.akwebsoft.com