[ragel-users] [newbie] parsing CSS style

Adrian Thurston thurs... at cs.queensu.ca
Thu Oct 18 14:13:39 UTC 2007


Mat| wrote:

> - knowing that my target language is C++, is there a way to do
> something simpler in my actions ? For the moment I use some
> variables like tk and tk2 in a class and I have to reallocate them
> with "calloc"...

You could use a macro or some function to simplify your actions.


> - I have got a problem (maybe more than one but I could only
> detect one !) with my machines, indeed in my expressions I always
> have a terminating ";" character but for some reason the style_item
> action is executed even if there is no terminating ";". For example,
> if I use "background: green" as an input string, the style_item is
> going to be executed but it should not because there is no ";" at
> the end.

Do you mean style_item_value action? The style_item action will get
executed when leaving the name portion, in this case on the colon.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20071018/3f4b7882/attachment-0001.sig>


More information about the ragel-users mailing list