summaryrefslogtreecommitdiff
path: root/doc/specs/parse_l.l
blob: 7cab424c3e4e53c98542daaf661920669a214dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%{
#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <stdio.h>

#include "parse_y.h"
%}

%%

\#[\$]+[a-zA-Z]*(\=[0-9]+)?          return NEW_COUNTER;
\#\{[a-zA-Z][a-zA-Z0-9\_]*\}         return LABEL;
\#                                   return NO_INDENT;
\#\#                                 return RIGHT;
\\\#                                 return HASH;
[^\n]                                return CHAR;
[\n]                                 return NEWLINE;

%%