Hi Zelphir,
Zelphir Kaltstahl writes:
> At first I had the macro use `define`, but then I thought: "What if I
> want to conditionally define a route procedure?". My guess is, that then
> the define form would be inside some `cond` or `if` form and then it
> would not work
You're right, it would
On 7/20/19 10:21 AM, pelzflorian (Florian Pelz) wrote:
On Sat, Jul 20, 2019 at 07:54:21AM -0700, Matt Wette wrote:
The next major release will be 1.0. If you are currently using nyacc
please give this a try. I want to have a clean, working 1.0 release.
Thank you for your work!
I never used t
Ah thanks! Sometimes one does not see the simple solution. I was
thinking that it would have to be something complicated.
On 2019-07-20 22:37, Ricardo Wurmus wrote:
Hi Zelphir,
This was I found out about an issue, but not sure how to solve it. It
seems like `module-define!` wants to have a sy
Hi,
At first I had the macro use `define`, but then I thought: "What if I
want to conditionally define a route procedure?". My guess is, that then
the define form would be inside some `cond` or `if` form and then it
would not work (I did not check this assumption though, because my macro
did not w
Matt Wette writes:
> On 7/19/19 3:51 PM, zelphirkaltstahl wrote:
>> (module-define! (current-module)
>> ;; `route` should be `/container/json` for example.
>> route
>
> (quote route)
Yes, or equivalently: 'route
As an aside, is there a reason to not de
Hi Zelphir,
> This was I found out about an issue, but not sure how to solve it. It
> seems like `module-define!` wants to have a symbol as input. But I
> could not figure out how to create a symbol from an identifier.
>
> Here is my updated version of the macro:
[…]
> (define-syntax define-api-
Hey Ricardo,
Thanks for the advice! I did not remember, that I could use ,expand in
the Guile REPL.
This was I found out about an issue, but not sure how to solve it. It
seems like `module-define!` wants to have a symbol as input. But I could
not figure out how to create a symbol from an ident
On Sat, Jul 20, 2019 at 07:54:21AM -0700, Matt Wette wrote:
> The next major release will be 1.0. If you are currently using nyacc
> please give this a try. I want to have a clean, working 1.0 release.
Thank you for your work!
I never used the other parts of nyacc directly, but I think your
ffi
NYACC, for Not Yet Another Compiler Compiler, is set of guile modules for
generating parsers and lexical analyzers. It also provides sample parsers
and pretty-printers using SXML trees as an intermediate representation.
It provides a decent C parser and a `FFI Helper' tool to help create
Guile S
On 7/19/19 3:51 PM, zelphirkaltstahl wrote:
(module-define! (current-module)
;; `route` should be `/container/json` for example.
route
(quote route)
Hi,
> However, when I call this macro as follows:
>
>
> 88
> (define-api-route /container/json 'POST
> application/x-www-form-urlencoded)
> 88
>
> I get the following error:
>
> 88
zelphirkaltstahl writes:
> Hi Guile Users,
>
> I want to write a macro, which creates a procedure of given name,
> where the given name is a not yet defined identifier.
> Here is what I have so far:
…
> Anyway, can you help me out writing the macro, fixing at least the 2
> issues or direct me
12 matches
Mail list logo