[ragel-users] Re: changes to ragel, feedback requested
thurs... at cs.queensu.ca
Wed Mar 21 02:09:58 UTC 2007
Ah, I like that. CS is always initialized unless it is explicitly
requested that it isn't. When the user wants to init CS it can happen
before write init. Also, CS isn't initialized twice. Seems like a winner
In regards to the question of initializing with the first vs last
instantiation, I am leaning towards the last since Ragel programs are
normally specified in a bottom-up nature (leaf machine definitions come
first). Instantiations can go in any order, but in the programs I write
the main machine always ends up last.
Oliver Schonefeld wrote:
> Hello Adrian,
> Eines schoenen Tages schrieb Adrian Thurston:
>> Defaulting to the first/last is a
>> possibility. I'm not sure I like the requirement that cs be initialized
>> after the write init. Could be a source of bugs more common than the one
>> we're trying to prevent.
> How about an additional option to 'init', which prevents the initalization
> of cs. Something link '%write init nocsinit'. The makes the need for the to
> initalize cs more explicit.
> Best Regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 252 bytes
Desc: OpenPGP digital signature
More information about the ragel-users