Hi Chris,
This is not supported yet.
Another option there is to use locals instead of match-replace:
[let | quot [ ... ] |
[ ... [ ... quot ... ] ... ] ]
However fry is lighter (syntax-wise) and what you're proposing would
make a great addition so I will implement it soon.
Slava
Chris Double wrote:
> Is fry supposed to work with nested quotations, or should I be using
> some other construct? eg:
>
> 3 '[ 1 2 [ , ] ]
> => [ 1 2 [ 3 ] ]
>
> This doesn't work but I'm looking for something that will let me do
> similar. In pegs I use match-replace for code generation. Code looks
> similar to:
>
> [ ...somecode...] \ ?quot [
> dup empty? [
> drop f
> ] [
> unclip-slice dup ?quot call [
> <parse-result>
> ] [
> 2drop f
> ] if
> ] if
> ] match-replace
>
> Is fry intended to be used for this sort of thing? if so, how?
>
> Chris.
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk