parse_l.l 491 B

12345678910111213141516171819202122
  1. %{
  2. #ifdef HAVE_CONFIG_H
  3. # include <config.h>
  4. #endif
  5. #include <stdio.h>
  6. #include "parse_y.h"
  7. %}
  8. %option noyywrap
  9. %%
  10. \#[\$]+[a-zA-Z]*(\=[0-9]+)? return NEW_COUNTER;
  11. \#\{[a-zA-Z][a-zA-Z0-9\_]*\} return LABEL;
  12. \# return NO_INDENT;
  13. \#\# return RIGHT;
  14. \\\# return HASH;
  15. [^\n] return CHAR;
  16. [\n] return NEWLINE;
  17. %%