You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

css_rule_parser.rl 355B

123456789101112131415161718192021222324252627
  1. %%{
  2. machine css_parser;
  3. alphtype unsigned char;
  4. include css_syntax "css_syntax.rl";
  5. main := declaration;
  6. }%%
  7. %% write data;
  8. #include <cstddef>
  9. namespace rspamd::css {
  10. int
  11. foo (const unsigned char *data, std::size_t len)
  12. {
  13. const unsigned char *p = data, *pe = data + len, *eof;
  14. int cs;
  15. %% write init;
  16. %% write exec;
  17. return cs;
  18. }
  19. }