[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Parsing Simple Markup
From: |
Andy Bennett |
Subject: |
Re: [Chicken-users] Parsing Simple Markup |
Date: |
Mon, 22 Sep 2014 13:01:41 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.6.0 |
Hi,
> Actually due to the possible presence of nested commands, it should
> probably be something more generic, since in the last example:
>
> (bold (smallcap (size 2 "text")))
>
> what the procedure 'bold' would be taking in is not a string "text", but
> rather an expression...so this is where I guess things would need to be
> recursive.
The evaluation rules will evaluate things in the "correct" order. So
(size 2 "text") will be evaluated first, then (smallcap <>) and then
(bold <>). It's deliberately unspecified in which order 2 or "text" will
be evaluated in.
Regards,
@ndy
--
address@hidden
http://www.ashurst.eu.org/
0x7EBA75FF