Skip to content

Commit 1680410

Browse files
author
Braisdom
committed
Rename risers
1 parent f0f8713 commit 1680410

File tree

6 files changed

+572
-0
lines changed

6 files changed

+572
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
*.iml
77
/.idea/vcs.xml
88
/*.db
9+
/idea-flex.skeleton
10+
/jflex-1.7.0-2.jar

dionaea/dionaea.flex

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package com.github.braisdom.dionaea.syntax;
2+
3+
%%
4+
5+
%public
6+
%class DionaeaLexer
7+
%function advance
8+
%type DionaeaType
9+
%unicode
10+
11+
EOL=\R
12+
CRLF=\R
13+
WHITE_SPACE=[\ \n\t\f]
14+
LineTerminator = \r|\n|\r\n
15+
InputCharacter = [^\r\n]
16+
17+
END_OF_LINE_COMMENT=("-- ")[^\r\n]*
18+
Identifier = [a-zA-Z][a-zA-Z0-9_]*
19+
StringCharacter = [^\r\n\"\\]
20+
SingleCharacter = [^\r\n\'\\]
21+
BackQuoteChars = [^\r\n\`\\]
22+
23+
%state WAITING_VALUE
24+
25+
%%
26+
27+
"query" { return DionaeaType.QUERY; }
28+
29+
30+
<YYINITIAL> {
31+
{END_OF_LINE_COMMENT} { return DionaeaType.COMMENT; }
32+
}
33+
34+
[^] { return DionaeaType.BAD_CHARACTER; }

0 commit comments

Comments
 (0)