guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PEG Parser


From: Andy Wingo
Subject: Re: PEG Parser
Date: Sat, 29 Jan 2011 12:33:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

On Sat 29 Jan 2011 04:07, Noah Lavine <address@hidden> writes:

> Yes, the binding stuff actually seemed very weird to me too, mostly
> because it's very non-idiomatic. More specifically, the peg module
> does most of its code generation in regular functions rather than
> macros. safe-bind implements hygiene for these code-generating
> functions. It's basically what you'd get with defmacro.

It's perfectly fine for regular functions to use `syntax' or
`quasisyntax' to build up a result, in the hygienic context.

Syntax transformers are just functions that transform syntax to syntax.
See the manual for more.  I recommend reading the entire "Macros"
section.

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]