Designer is working great now, and this fixes a bunch of things about the mouse.
This commit is contained in:
parent
f05f652c26
commit
ffc787df64
10 changed files with 4958 additions and 91 deletions
100
ansi_parser.cpp
100
ansi_parser.cpp
|
@ -20,85 +20,87 @@ static const char _ansi_parser_actions[] = {
|
|||
5, 1, 6, 1, 7, 1, 8, 1,
|
||||
9, 1, 10, 1, 11, 1, 15, 1,
|
||||
16, 2, 1, 12, 2, 1, 13, 2,
|
||||
16, 5, 3, 1, 14, 2
|
||||
6, 7, 2, 16, 5, 3, 1, 14,
|
||||
2
|
||||
};
|
||||
|
||||
static const char _ansi_parser_key_offsets[] = {
|
||||
0, 0, 1, 2, 10, 11, 13, 16,
|
||||
20, 21, 25, 26, 27, 28, 29, 31,
|
||||
34, 36, 39, 41, 44, 45, 48, 49,
|
||||
50, 51, 52, 53
|
||||
0, 0, 1, 2, 11, 12, 14, 17,
|
||||
18, 22, 23, 27, 28, 29, 30, 31,
|
||||
33, 36, 38, 41, 43, 46, 47, 50,
|
||||
51, 52, 53, 54, 55
|
||||
};
|
||||
|
||||
static const int _ansi_parser_trans_keys[] = {
|
||||
27, 91, 49, 50, 51, 52, 55, 57,
|
||||
48, 54, 109, 48, 109, 34, 48, 55,
|
||||
50, 52, 55, 109, 109, 49, 56, 57,
|
||||
109, 109, 59, 50, 59, 48, 57, 59,
|
||||
48, 57, 48, 57, 59, 48, 57, 48,
|
||||
57, 109, 48, 57, 109, 56, 57, 109,
|
||||
59, 50, 109, 109, 27, 27, 0
|
||||
27, 91, 48, 49, 50, 51, 52, 55,
|
||||
57, 53, 54, 109, 48, 109, 34, 48,
|
||||
55, 109, 50, 52, 55, 109, 109, 49,
|
||||
56, 57, 109, 109, 59, 50, 59, 48,
|
||||
57, 59, 48, 57, 48, 57, 59, 48,
|
||||
57, 48, 57, 109, 48, 57, 109, 56,
|
||||
57, 109, 59, 50, 109, 109, 27, 27,
|
||||
0
|
||||
};
|
||||
|
||||
static const char _ansi_parser_single_lengths[] = {
|
||||
0, 1, 1, 6, 1, 2, 3, 4,
|
||||
1, 4, 1, 1, 1, 1, 0, 1,
|
||||
0, 1, 0, 1, 1, 3, 1, 1,
|
||||
1, 1, 1, 1
|
||||
0, 1, 1, 7, 1, 2, 3, 1,
|
||||
4, 1, 4, 1, 1, 1, 1, 0,
|
||||
1, 0, 1, 0, 1, 1, 3, 1,
|
||||
1, 1, 1, 1, 1
|
||||
};
|
||||
|
||||
static const char _ansi_parser_range_lengths[] = {
|
||||
0, 0, 0, 1, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 1, 1,
|
||||
1, 1, 1, 1, 0, 0, 0, 0,
|
||||
0, 0, 0, 0
|
||||
0, 0, 0, 0, 0, 0, 0, 1,
|
||||
1, 1, 1, 1, 1, 0, 0, 0,
|
||||
0, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
static const char _ansi_parser_index_offsets[] = {
|
||||
0, 0, 2, 4, 12, 14, 17, 21,
|
||||
26, 28, 33, 35, 37, 39, 41, 43,
|
||||
46, 48, 51, 53, 56, 58, 62, 64,
|
||||
66, 68, 70, 72
|
||||
0, 0, 2, 4, 13, 15, 18, 22,
|
||||
24, 29, 31, 36, 38, 40, 42, 44,
|
||||
46, 49, 51, 54, 56, 59, 61, 65,
|
||||
67, 69, 71, 73, 75
|
||||
};
|
||||
|
||||
static const char _ansi_parser_trans_targs[] = {
|
||||
2, 1, 3, 0, 5, 7, 9, 21,
|
||||
25, 6, 4, 0, 27, 0, 6, 27,
|
||||
0, 4, 4, 4, 0, 4, 4, 8,
|
||||
27, 0, 27, 0, 10, 11, 20, 27,
|
||||
0, 27, 0, 12, 0, 13, 0, 14,
|
||||
0, 15, 0, 16, 15, 0, 17, 0,
|
||||
18, 17, 0, 19, 0, 27, 19, 0,
|
||||
27, 0, 22, 24, 27, 0, 23, 0,
|
||||
13, 0, 27, 0, 27, 0, 2, 1,
|
||||
2, 1, 0
|
||||
2, 1, 3, 0, 4, 5, 8, 10,
|
||||
22, 26, 6, 7, 0, 28, 0, 6,
|
||||
28, 0, 7, 7, 7, 0, 28, 0,
|
||||
7, 7, 9, 28, 0, 28, 0, 11,
|
||||
12, 21, 28, 0, 28, 0, 13, 0,
|
||||
14, 0, 15, 0, 16, 0, 17, 16,
|
||||
0, 18, 0, 19, 18, 0, 20, 0,
|
||||
28, 20, 0, 28, 0, 23, 25, 28,
|
||||
0, 24, 0, 14, 0, 28, 0, 28,
|
||||
0, 2, 1, 2, 1, 0
|
||||
};
|
||||
|
||||
static const char _ansi_parser_trans_actions[] = {
|
||||
0, 7, 0, 0, 21, 21, 21, 21,
|
||||
21, 21, 21, 0, 0, 0, 0, 0,
|
||||
21, 21, 21, 21, 0, 31, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
17, 0, 15, 0, 0, 0, 0, 0,
|
||||
0, 19, 0, 0, 0, 3, 0, 0,
|
||||
0, 1, 0, 25, 0, 0, 1, 0,
|
||||
28, 0, 0, 1, 0, 34, 0, 0,
|
||||
9, 0, 0, 0, 0, 0, 0, 0,
|
||||
5, 0, 11, 0, 13, 0, 0, 7,
|
||||
23, 31, 0
|
||||
0, 0, 0, 17, 0, 15, 0, 0,
|
||||
0, 0, 0, 0, 19, 0, 0, 0,
|
||||
3, 0, 0, 0, 1, 0, 25, 0,
|
||||
0, 1, 0, 28, 0, 0, 1, 0,
|
||||
37, 0, 0, 9, 0, 0, 0, 0,
|
||||
0, 0, 0, 5, 0, 11, 0, 13,
|
||||
0, 0, 7, 23, 34, 0
|
||||
};
|
||||
|
||||
static const char _ansi_parser_eof_actions[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 23
|
||||
0, 0, 0, 0, 23
|
||||
};
|
||||
|
||||
static const int ansi_parser_start = 26;
|
||||
static const int ansi_parser_first_final = 26;
|
||||
static const int ansi_parser_start = 27;
|
||||
static const int ansi_parser_first_final = 27;
|
||||
static const int ansi_parser_error = 0;
|
||||
|
||||
static const int ansi_parser_en_main = 26;
|
||||
static const int ansi_parser_en_main = 27;
|
||||
|
||||
|
||||
#line 125 "ansi_parser.rl"
|
||||
|
@ -123,14 +125,14 @@ bool ANSIParser::parse(std::wstring_view codes, ColorCB color_cb, WriteCB write_
|
|||
sf::Color* target = &color;
|
||||
|
||||
|
||||
#line 118 "ansi_parser.cpp"
|
||||
#line 120 "ansi_parser.cpp"
|
||||
{
|
||||
cs = ansi_parser_start;
|
||||
}
|
||||
|
||||
#line 146 "ansi_parser.rl"
|
||||
|
||||
#line 121 "ansi_parser.cpp"
|
||||
#line 123 "ansi_parser.cpp"
|
||||
{
|
||||
int _klen;
|
||||
unsigned int _trans;
|
||||
|
@ -321,7 +323,7 @@ _match:
|
|||
#line 85 "ansi_parser.rl"
|
||||
{}
|
||||
break;
|
||||
#line 294 "ansi_parser.cpp"
|
||||
#line 296 "ansi_parser.cpp"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -341,7 +343,7 @@ _again:
|
|||
#line 85 "ansi_parser.rl"
|
||||
{}
|
||||
break;
|
||||
#line 312 "ansi_parser.cpp"
|
||||
#line 314 "ansi_parser.cpp"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue