public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: Damien Mattei <damien.mattei@gmail.com>
Cc: Per Bothner <per@bothner.com>, Jamison Hope <jhope@alum.mit.edu>,
	kawa@sourceware.org
Subject: Re: simple main example hello world
Date: Sat, 30 Sep 2023 20:35:54 +0200	[thread overview]
Message-ID: <CAMFYt2Zx8KWEj+WGcc-KMrVg6jhXxaUMg9tZDUnGmGGgXdOcDg@mail.gmail.com> (raw)
In-Reply-To: <CADEOaddsvhZNE-XSmHWsqFnmj_=sL_U3jhDq0WSW5=pKSAx-_Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1127 bytes --]

Yes. String[] is parsed as ($bracket-apply$ String)

When in doubt, you can always evaluate the expression:

(call-with-input-string "(String[])" read)

sob., 30 wrz 2023 o 20:22 Damien Mattei via Kawa <kawa@sourceware.org>
napisał(a):

> thank you
>
> the simplest example works:
>
> (display "hello") (newline)
> (format #t "The command-line was:~{ ~w~}~%" (command-line))
>
> kawa test.scm
>
> i see kawa use some syntax extension such as []:
> '((main args::String[])::void allocation: 'static (display "hello"))
>  that expands in curly-infix reader as:
> '((main args::String ()) ::void allocation: 'static (display "hello"))
>
> is there a way to replace String[] in kawa by something that does not use
> []  ?
>
> On Sat, Sep 30, 2023 at 6:03 PM Per Bothner <per@bothner.com> wrote:
> >
> > As Jamison wrote - this can be the entirety of your test.scm:
> >
> >      (display "hello") (newline)
> >
> > More information and suggestions here:
> > https://www.gnu.org/software/kawa/Scripts.html
> >
> > --
> >         --Per Bothner
> > per@bothner.com   http://per.bothner.com/
>

  reply	other threads:[~2023-09-30 18:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-30 13:25 Damien Mattei
2023-09-30 14:06 ` Damien Mattei
2023-09-30 15:09   ` Jamison Hope
2023-09-30 16:02     ` Per Bothner
2023-09-30 18:21       ` Damien Mattei
2023-09-30 18:35         ` Panicz Maciej Godek [this message]
2023-09-30 20:11           ` Damien Mattei
2023-09-30 23:28             ` Per Bothner
2023-10-01  8:30               ` Damien Mattei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMFYt2Zx8KWEj+WGcc-KMrVg6jhXxaUMg9tZDUnGmGGgXdOcDg@mail.gmail.com \
    --to=godek.maciek@gmail.com \
    --cc=damien.mattei@gmail.com \
    --cc=jhope@alum.mit.edu \
    --cc=kawa@sourceware.org \
    --cc=per@bothner.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).