diff options
Diffstat (limited to 'firmware/test/memory/test.l')
-rw-r--r-- | firmware/test/memory/test.l | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/firmware/test/memory/test.l b/firmware/test/memory/test.l deleted file mode 100644 index 7b938e9330..0000000000 --- a/firmware/test/memory/test.l +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | %{ | ||
2 | #include "test.tab.h" | ||
3 | #define YY_INPUT(buf,result,max_size) \ | ||
4 | result = read_input (buf,max_size); | ||
5 | %} | ||
6 | |||
7 | %s GETNUMBER | ||
8 | |||
9 | %% | ||
10 | |||
11 | <GETNUMBER>[0-9]+ { yylval = atoi(yytext); return NUMBER;} | ||
12 | |||
13 | <INITIAL>"a"|"allocate" { BEGIN GETNUMBER; return ALLOCATE; } | ||
14 | <INITIAL>"r"|"release" { BEGIN GETNUMBER; return RELEASE; } | ||
15 | <INITIAL>"s"|"spy" { BEGIN GETNUMBER; return SPY; } | ||
16 | <INITIAL>"c"|"check" { BEGIN GETNUMBER; return CHECK; } | ||
17 | <INITIAL>"i"|"init" { return INIT; } | ||
18 | <INITIAL>"d"|"dump" { return DUMP; } | ||
19 | <INITIAL>"q"|"quit" { return QUIT; } | ||
20 | [ \t] ; | ||
21 | \n|. { BEGIN 0; return yytext[0]; } | ||
22 | %% | ||
23 | |||