> Is fry supposed to work with nested quotations, or should I be using
> some other construct? eg:
> 3 '[ 1 2 [ , ] ]
> => [ 1 2 [ 3 ] ]
It doesn't yet... I've wanted to do stuff like this also. My workaround looks
like this:
3 '[ , ] '[ 1 2 , ]
Ed
--
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 Do
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...]
I thought that meant that the default input encoding is auto-detect
and the default output is UTF-8. This seems to confirm that:
http://www.voidspace.org.uk/python/articles/guessing_encoding.shtml.
(But the fact that Python 3 does a particular thing with Unicode isn't
a good argument in either dire
http://dharmatech.onigirihouse.com/booya.png
Optional codec argument?CHECK
Default is UTF-8? CHECK
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell se