From: Damien Mattei <damien.mattei@gmail.com>
To: kawa mailing list <kawa@sourceware.org>
Subject: Re: meaning of | in scheme
Date: Tue, 7 Nov 2023 11:51:43 +0100 [thread overview]
Message-ID: <CADEOadc=DRLu_f-4j4vMFm1hFJpY_-B7FYiGRPTJFQ_EuqnbUA@mail.gmail.com> (raw)
In-Reply-To: <CADEOadfKxEWFAjipd-GHf0__gJm0auPKHgeMaEA_OyDRO8PZfQ@mail.gmail.com>
i can avoid that with: tr -d '|' in shell:
kawa curly-infix2prefix4kawa.scm
../AI_Deep_Learning/exo_retropropagationNhidden_layers_matrix_v2_by_vectors4kawa+.scm
| tr -d '|' > ../AI_Deep_Learning/exo_retropropagationNhidden_layers_matrix_v2_by_vectors4kawa.scm
a solution for now to parse kawa code that import java method.
On Tue, Nov 7, 2023 at 11:43 AM Damien Mattei <damien.mattei@gmail.com> wrote:
>
> i'm annoying with some | | that appear sometimes in my parser but i do
> not know where they came from
>
> #|kawa:2|# (|≠| 2 2)
> #f
> #|kawa:3|# |≠|
> #<procedure ≠>
> #|kawa:4|# |java.lang.Math:random|
> /dev/tty:4:1: warning - no declaration seen for java.lang.Math:random
> /dev/tty:4:1: unbound location: java.lang.Math:random
> at gnu.mapping.DynamicLocation.get(DynamicLocation.java:36)
> at atInteractiveLevel-35.run(tty:4)
> at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:290)
> at gnu.expr.ModuleExp.evalModule(ModuleExp.java:211)
> at kawa.Shell.run(Shell.java:289)
> at kawa.Shell.run(Shell.java:196)
> at kawa.Shell.run(Shell.java:183)
> at kawa.repl.processArgs(repl.java:724)
> at kawa.repl.main(repl.java:830)
> #|kawa:5|# java.lang.Math:random
> Type double java.lang.Math.random()
> #|kawa:6|# |sin|
> #<procedure sin>
>
> i can not remember exactly why some symbols are sometimes in | | in
> scheme, this was not a problem with procedures but it behavior bad
> with java method imported in kawa, see the error.
>
> and i can not find where it is generated in the parser (attached)
>
> why it does not offend scheme procedure? (and why is it a problem with
> java imported methods)
>
> any idea?
next prev parent reply other threads:[~2023-11-07 10:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-07 10:43 Damien Mattei
2023-11-07 10:51 ` Damien Mattei [this message]
2023-11-07 15:24 ` Per Bothner
2023-11-07 16:00 ` 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='CADEOadc=DRLu_f-4j4vMFm1hFJpY_-B7FYiGRPTJFQ_EuqnbUA@mail.gmail.com' \
--to=damien.mattei@gmail.com \
--cc=kawa@sourceware.org \
/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).