build: Add lexer/parser.cs files to src ctrl

Move all lexer/parser files into a single dir, DataStreamGrammar, for
organizational purposes and to avoid dependency conflicts when
generating code. Note that we'll only need to regen cs if we modify the
parser/lexer files, which seems unlikely.
This commit is contained in:
John Colvin committed 2023-09-03 13:53:07 -04:00
1 parent 86a1695286
commit cc2959249e
18 files changed
+13590 -56

No files matched your search

-2
View File
@@ -55,5 +55,3 @@ trace_data/
**/CMakeDeps.cmake
**/CMakeDeps_win.cmake
**/devcontainer.json
src/**/*.lexer.cs
src/**/*.parser.cs
@@ -16,11 +16,11 @@
</ItemGroup>
<ItemGroup>
<Lexer Include="BooleanExpressionTokens.lexer" />
<Compile Include="$(DataStreamGrammarDir)\BooleanExpressionTokens.lexer.cs" />
</ItemGroup>
<ItemGroup>
<Parser Include="BooleanExpressionSyntax.parser" />
<Compile Include="$(DataStreamGrammarDir)\BooleanExpressionSyntax.parser.cs" />
</ItemGroup>
</Project>
@@ -16,12 +16,12 @@
</ItemGroup>
<ItemGroup>
<Lexer Include="ArithmeticTokens.lexer" />
<Compile Include="$(DataStreamGrammarDir)\ArithmeticTokens.lexer.cs" />
</ItemGroup>
<ItemGroup>
<Parser Include="ArithmeticSyntax.parser" />
<Parser Include="ColumnMapExpressionSyntax.parser" />
<Compile Include="$(DataStreamGrammarDir)\ArithmeticSyntax.parser.cs" />
<Compile Include="$(DataStreamGrammarDir)\ColumnMapExpressionSyntax.parser.cs" />
</ItemGroup>
</Project>
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,948 @@
using System;using Tools;
namespace BCG.ArithmeticExpression {
//%+NumberConstant
[Serializable] public class NumberConstant : TOKEN{
public object value ;
public override string yyname() { return "NumberConstant"; }
public NumberConstant(Lexer yyl):base(yyl){}}
//%+IntegerConstant
[Serializable] public class IntegerConstant : NumberConstant{
public override string yyname() { return "IntegerConstant"; }
public IntegerConstant(Lexer yyl):base(yyl){}}
//%+RealConstant
[Serializable] public class RealConstant : NumberConstant{
public override string yyname() { return "RealConstant"; }
public RealConstant(Lexer yyl):base(yyl){}}
[Serializable] public class IntegerConstant_1 : IntegerConstant {
public IntegerConstant_1(Lexer yym):base(yym) {value = Int32.Parse(yytext);}}
[Serializable] public class RealConstant_1 : RealConstant {
public RealConstant_1(Lexer yym):base(yym) {value = Double.Parse(yytext);}}
//%Identifier
[Serializable] public class Identifier : TOKEN{ public override string yyname() { return "Identifier";}
public Identifier(Lexer yyl):base(yyl) {}}
//%OpenP
[Serializable] public class OpenP : TOKEN{ public override string yyname() { return "OpenP";}
public OpenP(Lexer yyl):base(yyl) {}}
//%CloseP
[Serializable] public class CloseP : TOKEN{ public override string yyname() { return "CloseP";}
public CloseP(Lexer yyl):base(yyl) {}}
//%Minus
[Serializable] public class Minus : TOKEN{ public override string yyname() { return "Minus";}
public Minus(Lexer yyl):base(yyl) {}}
//%Times
[Serializable] public class Times : TOKEN{ public override string yyname() { return "Times";}
public Times(Lexer yyl):base(yyl) {}}
//%Div
[Serializable] public class Div : TOKEN{ public override string yyname() { return "Div";}
public Div(Lexer yyl):base(yyl) {}}
//%Comma
[Serializable] public class Comma : TOKEN{ public override string yyname() { return "Comma";}
public Comma(Lexer yyl):base(yyl) {}}
//%Plus
[Serializable] public class Plus : TOKEN{ public override string yyname() { return "Plus";}
public Plus(Lexer yyl):base(yyl) {}}
//%Equals
[Serializable] public class Equals : TOKEN{ public override string yyname() { return "Equals";}
public Equals(Lexer yyl):base(yyl) {}}
//%|tokens
public class yytokens : Tokens {
public yytokens(ErrorHandler eh):base(eh) { arr = new byte[] {
0,1,0,0,0,255,255,255,255,1,
0,0,0,0,0,0,0,4,1,0,0,
0,25,83,121,115,116,101,109,46,84,101,
120,116,46,65,83,67,73,73,69,110,99,
111,100,105,110,103,9,0,0,0,10,109,
95,99,111,100,101,80,97,103,101,8,100,
97,116,97,73,116,101,109,15,101,110,99,
111,100,101,114,70,97,108,108,98,97,99,
107,15,100,101,99,111,100,101,114,70,97,
108,108,98,97,99,107,19,69,110,99,111,
100,105,110,103,43,109,95,99,111,100,101,
80,97,103,101,17,69,110,99,111,100,105,
110,103,43,100,97,116,97,73,116,101,109,
21,69,110,99,111,100,105,110,103,43,109,
95,105,115,82,101,97,100,79,110,108,121,
24,69,110,99,111,100,105,110,103,43,101,
110,99,111,100,101,114,70,97,108,108,98,
97,99,107,24,69,110,99,111,100,105,110,
103,43,100,101,99,111,100,101,114,70,97,
108,108,98,97,99,107,0,3,3,3,0,
3,0,3,3,8,37,83,121,115,116,101,
109,46,71,108,111,98,97,108,105,122,97,
116,105,111,110,46,67,111,100,101,80,97,
103,101,68,97,116,97,73,116,101,109,38,
83,121,115,116,101,109,46,84,101,120,116,
46,69,110,99,111,100,101,114,82,101,112,
108,97,99,101,109,101,110,116,70,97,108,
108,98,97,99,107,38,83,121,115,116,101,
109,46,84,101,120,116,46,68,101,99,111,
100,101,114,82,101,112,108,97,99,101,109,
101,110,116,70,97,108,108,98,97,99,107,
8,37,83,121,115,116,101,109,46,71,108,
111,98,97,108,105,122,97,116,105,111,110,
46,67,111,100,101,80,97,103,101,68,97,
116,97,73,116,101,109,1,38,83,121,115,
116,101,109,46,84,101,120,116,46,69,110,
99,111,100,101,114,82,101,112,108,97,99,
101,109,101,110,116,70,97,108,108,98,97,
99,107,38,83,121,115,116,101,109,46,84,
101,120,116,46,68,101,99,111,100,101,114,
82,101,112,108,97,99,101,109,101,110,116,
70,97,108,108,98,97,99,107,159,78,0,
0,10,9,2,0,0,0,9,3,0,0,
0,159,78,0,0,10,1,9,2,0,0,
0,9,3,0,0,0,4,2,0,0,0,
38,83,121,115,116,101,109,46,84,101,120,
116,46,69,110,99,111,100,101,114,82,101,
112,108,97,99,101,109,101,110,116,70,97,
108,108,98,97,99,107,3,0,0,0,10,
115,116,114,68,101,102,97,117,108,116,27,
98,73,115,77,105,99,114,111,115,111,102,
116,66,101,115,116,70,105,116,70,97,108,
108,98,97,99,107,43,69,110,99,111,100,
101,114,70,97,108,108,98,97,99,107,43,
98,73,115,77,105,99,114,111,115,111,102,
116,66,101,115,116,70,105,116,70,97,108,
108,98,97,99,107,1,0,0,1,1,6,
6,0,0,0,1,63,0,0,4,3,0,
0,0,38,83,121,115,116,101,109,46,84,
101,120,116,46,68,101,99,111,100,101,114,
82,101,112,108,97,99,101,109,101,110,116,
70,97,108,108,98,97,99,107,3,0,0,
0,10,115,116,114,68,101,102,97,117,108,
116,27,98,73,115,77,105,99,114,111,115,
111,102,116,66,101,115,116,70,105,116,70,
97,108,108,98,97,99,107,43,68,101,99,
111,100,101,114,70,97,108,108,98,97,99,
107,43,98,73,115,77,105,99,114,111,115,
111,102,116,66,101,115,116,70,105,116,70,
97,108,108,98,97,99,107,1,0,0,1,
1,9,6,0,0,0,0,0,11,0,1,
0,0,0,255,255,255,255,1,0,0,0,
0,0,0,0,4,1,0,0,0,14,83,
121,115,116,101,109,46,66,111,111,108,101,
97,110,1,0,0,0,7,109,95,118,97,
108,117,101,0,1,0,11,0,1,0,0,
0,255,255,255,255,1,0,0,0,0,0,
0,0,4,1,0,0,0,28,83,121,115,
116,101,109,46,67,111,108,108,101,99,116,
105,111,110,115,46,72,97,115,104,116,97,
98,108,101,7,0,0,0,10,76,111,97,
100,70,97,99,116,111,114,7,86,101,114,
115,105,111,110,8,67,111,109,112,97,114,
101,114,16,72,97,115,104,67,111,100,101,
80,114,111,118,105,100,101,114,8,72,97,
115,104,83,105,122,101,4,75,101,121,115,
6,86,97,108,117,101,115,0,0,3,3,
0,5,5,11,8,28,83,121,115,116,101,
109,46,67,111,108,108,101,99,116,105,111,
110,115,46,73,67,111,109,112,97,114,101,
114,36,83,121,115,116,101,109,46,67,111,
108,108,101,99,116,105,111,110,115,46,73,
72,97,115,104,67,111,100,101,80,114,111,
118,105,100,101,114,8,236,81,56,63,31,
0,0,0,10,10,47,0,0,0,9,2,
0,0,0,9,3,0,0,0,16,2,0,
0,0,29,0,0,0,9,4,0,0,0,
9,5,0,0,0,9,6,0,0,0,9,
7,0,0,0,9,8,0,0,0,9,9,
0,0,0,9,10,0,0,0,9,11,0,
0,0,9,12,0,0,0,9,13,0,0,
0,9,14,0,0,0,9,15,0,0,0,
9,16,0,0,0,9,17,0,0,0,9,
18,0,0,0,9,19,0,0,0,9,20,
0,0,0,9,21,0,0,0,9,22,0,
0,0,9,23,0,0,0,9,24,0,0,
0,9,25,0,0,0,9,26,0,0,0,
9,27,0,0,0,9,28,0,0,0,9,
29,0,0,0,9,30,0,0,0,9,31,
0,0,0,9,32,0,0,0,16,3,0,
0,0,29,0,0,0,9,33,0,0,0,
9,34,0,0,0,9,35,0,0,0,9,
36,0,0,0,9,37,0,0,0,9,38,
0,0,0,9,39,0,0,0,9,40,0,
0,0,9,41,0,0,0,9,42,0,0,
0,9,43,0,0,0,9,44,0,0,0,
9,45,0,0,0,9,46,0,0,0,9,
47,0,0,0,9,48,0,0,0,9,49,
0,0,0,9,50,0,0,0,9,51,0,
0,0,9,52,0,0,0,9,53,0,0,
0,9,54,0,0,0,9,55,0,0,0,
9,56,0,0,0,9,57,0,0,0,9,
58,0,0,0,9,59,0,0,0,9,60,
0,0,0,9,61,0,0,0,4,4,0,
0,0,36,83,121,115,116,101,109,46,71,
108,111,98,97,108,105,122,97,116,105,111,
110,46,85,110,105,99,111,100,101,67,97,
116,101,103,111,114,121,1,0,0,0,7,
118,97,108,117,101,95,95,0,8,29,0,
0,0,1,5,0,0,0,4,0,0,0,
28,0,0,0,1,6,0,0,0,4,0,
0,0,27,0,0,0,1,7,0,0,0,
4,0,0,0,26,0,0,0,1,8,0,
0,0,4,0,0,0,25,0,0,0,1,
9,0,0,0,4,0,0,0,24,0,0,
0,1,10,0,0,0,4,0,0,0,23,
0,0,0,1,11,0,0,0,4,0,0,
0,22,0,0,0,1,12,0,0,0,4,
0,0,0,21,0,0,0,1,13,0,0,
0,4,0,0,0,20,0,0,0,1,14,
0,0,0,4,0,0,0,19,0,0,0,
1,15,0,0,0,4,0,0,0,18,0,
0,0,1,16,0,0,0,4,0,0,0,
17,0,0,0,1,17,0,0,0,4,0,
0,0,15,0,0,0,1,18,0,0,0,
4,0,0,0,14,0,0,0,1,19,0,
0,0,4,0,0,0,13,0,0,0,1,
20,0,0,0,4,0,0,0,12,0,0,
0,1,21,0,0,0,4,0,0,0,11,
0,0,0,1,22,0,0,0,4,0,0,
0,10,0,0,0,1,23,0,0,0,4,
0,0,0,9,0,0,0,1,24,0,0,
0,4,0,0,0,8,0,0,0,1,25,
0,0,0,4,0,0,0,7,0,0,0,
1,26,0,0,0,4,0,0,0,6,0,
0,0,1,27,0,0,0,4,0,0,0,
5,0,0,0,1,28,0,0,0,4,0,
0,0,4,0,0,0,1,29,0,0,0,
4,0,0,0,3,0,0,0,1,30,0,
0,0,4,0,0,0,2,0,0,0,1,
31,0,0,0,4,0,0,0,1,0,0,
0,1,32,0,0,0,4,0,0,0,0,
0,0,0,12,62,0,0,0,60,84,111,
111,108,115,44,32,86,101,114,115,105,111,
110,61,48,46,48,46,48,46,48,44,32,
67,117,108,116,117,114,101,61,110,101,117,
116,114,97,108,44,32,80,117,98,108,105,
99,75,101,121,84,111,107,101,110,61,110,
117,108,108,5,33,0,0,0,13,84,111,
111,108,115,46,67,104,97,114,115,101,116,
3,0,0,0,5,109,95,99,97,116,9,
109,95,103,101,110,101,114,105,99,7,109,
95,99,104,97,114,115,3,0,3,36,83,
121,115,116,101,109,46,71,108,111,98,97,
108,105,122,97,116,105,111,110,46,85,110,
105,99,111,100,101,67,97,116,101,103,111,
114,121,3,28,83,121,115,116,101,109,46,
67,111,108,108,101,99,116,105,111,110,115,
46,72,97,115,104,116,97,98,108,101,62,
0,0,0,1,193,255,255,255,4,0,0,
0,29,0,0,0,205,176,9,64,0,0,
0,1,34,0,0,0,33,0,0,0,1,
191,255,255,255,4,0,0,0,28,0,0,
0,194,166,9,66,0,0,0,1,35,0,
0,0,33,0,0,0,1,189,255,255,255,
4,0,0,0,27,0,0,0,94,9,68,
0,0,0,1,36,0,0,0,33,0,0,
0,1,187,255,255,255,4,0,0,0,26,
0,0,0,36,9,70,0,0,0,1,37,
0,0,0,33,0,0,0,1,185,255,255,
255,4,0,0,0,25,0,0,0,60,9,
72,0,0,0,1,38,0,0,0,33,0,
0,0,1,183,255,255,255,4,0,0,0,
24,0,0,0,33,9,74,0,0,0,1,
39,0,0,0,33,0,0,0,1,181,255,
255,255,4,0,0,0,23,0,0,0,194,
187,9,76,0,0,0,1,40,0,0,0,
33,0,0,0,1,179,255,255,255,4,0,
0,0,22,0,0,0,194,171,9,78,0,
0,0,1,41,0,0,0,33,0,0,0,
1,177,255,255,255,4,0,0,0,21,0,
0,0,93,9,80,0,0,0,1,42,0,
0,0,33,0,0,0,1,175,255,255,255,
4,0,0,0,20,0,0,0,91,9,82,
0,0,0,1,43,0,0,0,33,0,0,
0,1,173,255,255,255,4,0,0,0,19,
0,0,0,194,173,9,84,0,0,0,1,
44,0,0,0,33,0,0,0,1,171,255,
255,255,4,0,0,0,18,0,0,0,226,
128,191,9,86,0,0,0,1,45,0,0,
0,33,0,0,0,1,169,255,255,255,4,
0,0,0,17,0,0,0,238,128,128,9,
88,0,0,0,1,46,0,0,0,33,0,
0,0,1,167,255,255,255,4,0,0,0,
15,0,0,0,216,128,9,90,0,0,0,
1,47,0,0,0,33,0,0,0,1,165,
255,255,255,4,0,0,0,14,0,0,0,
1,9,92,0,0,0,1,48,0,0,0,
33,0,0,0,1,163,255,255,255,4,0,
0,0,13,0,0,0,226,128,169,9,94,
0,0,0,1,49,0,0,0,33,0,0,
0,1,161,255,255,255,4,0,0,0,12,
0,0,0,226,128,168,9,96,0,0,0,
1,50,0,0,0,33,0,0,0,1,159,
255,255,255,4,0,0,0,11,0,0,0,
194,160,9,98,0,0,0,1,51,0,0,
0,33,0,0,0,1,157,255,255,255,4,
0,0,0,10,0,0,0,194,178,9,100,
0,0,0,1,52,0,0,0,33,0,0,
0,1,155,255,255,255,4,0,0,0,9,
0,0,0,225,155,174,9,102,0,0,0,
1,53,0,0,0,33,0,0,0,1,153,
255,255,255,4,0,0,0,8,0,0,0,
48,9,104,0,0,0,1,54,0,0,0,
33,0,0,0,1,151,255,255,255,4,0,
0,0,7,0,0,0,210,136,9,106,0,
0,0,1,55,0,0,0,33,0,0,0,
1,149,255,255,255,4,0,0,0,6,0,
0,0,224,164,131,9,108,0,0,0,1,
56,0,0,0,33,0,0,0,1,147,255,
255,255,4,0,0,0,5,0,0,0,204,
128,9,110,0,0,0,1,57,0,0,0,
33,0,0,0,1,145,255,255,255,4,0,
0,0,4,0,0,0,198,187,9,112,0,
0,0,1,58,0,0,0,33,0,0,0,
1,143,255,255,255,4,0,0,0,3,0,
0,0,202,176,9,114,0,0,0,1,59,
0,0,0,33,0,0,0,1,141,255,255,
255,4,0,0,0,2,0,0,0,199,133,
9,116,0,0,0,1,60,0,0,0,33,
0,0,0,1,139,255,255,255,4,0,0,
0,1,0,0,0,97,9,118,0,0,0,
1,61,0,0,0,33,0,0,0,1,137,
255,255,255,4,0,0,0,0,0,0,0,
65,9,120,0,0,0,1,64,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,121,0,0,
0,9,122,0,0,0,1,66,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,123,0,0,
0,9,124,0,0,0,1,68,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,125,0,0,
0,9,126,0,0,0,1,70,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,127,0,0,
0,9,128,0,0,0,1,72,0,0,0,
1,0,0,0,236,81,56,63,3,0,0,
0,10,10,11,0,0,0,9,129,0,0,
0,9,130,0,0,0,1,74,0,0,0,
1,0,0,0,236,81,56,63,7,0,0,
0,10,10,11,0,0,0,9,131,0,0,
0,9,132,0,0,0,1,76,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,133,0,0,
0,9,134,0,0,0,1,78,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,135,0,0,
0,9,136,0,0,0,1,80,0,0,0,
1,0,0,0,236,81,56,63,2,0,0,
0,10,10,11,0,0,0,9,137,0,0,
0,9,138,0,0,0,1,82,0,0,0,
1,0,0,0,236,81,56,63,2,0,0,
0,10,10,11,0,0,0,9,139,0,0,
0,9,140,0,0,0,1,84,0,0,0,
1,0,0,0,236,81,56,63,4,0,0,
0,10,10,11,0,0,0,9,141,0,0,
0,9,142,0,0,0,1,86,0,0,0,
1,0,0,0,236,81,56,63,2,0,0,
0,10,10,11,0,0,0,9,143,0,0,
0,9,144,0,0,0,1,88,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,145,0,0,
0,9,146,0,0,0,1,90,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,147,0,0,
0,9,148,0,0,0,1,92,0,0,0,
1,0,0,0,236,81,56,63,7,0,0,
0,10,10,11,0,0,0,9,149,0,0,
0,9,150,0,0,0,1,94,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,151,0,0,
0,9,152,0,0,0,1,96,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,153,0,0,
0,9,154,0,0,0,1,98,0,0,0,
1,0,0,0,236,81,56,63,2,0,0,
0,10,10,11,0,0,0,9,155,0,0,
0,9,156,0,0,0,1,100,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,157,0,0,
0,9,158,0,0,0,1,102,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,159,0,0,
0,9,160,0,0,0,1,104,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,161,0,0,
0,9,162,0,0,0,1,106,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,163,0,0,
0,9,164,0,0,0,1,108,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,165,0,0,
0,9,166,0,0,0,1,110,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,167,0,0,
0,9,168,0,0,0,1,112,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,169,0,0,
0,9,170,0,0,0,1,114,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,171,0,0,
0,9,172,0,0,0,1,116,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,173,0,0,
0,9,174,0,0,0,1,118,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,175,0,0,
0,9,176,0,0,0,1,120,0,0,0,
1,0,0,0,236,81,56,63,1,0,0,
0,10,10,11,0,0,0,9,177,0,0,
0,9,178,0,0,0,16,121,0,0,0,
1,0,0,0,8,3,205,176,16,122,0,
0,0,1,0,0,0,8,1,1,16,123,
0,0,0,1,0,0,0,8,3,194,166,
16,124,0,0,0,1,0,0,0,8,1,
1,16,125,0,0,0,1,0,0,0,8,
3,94,16,126,0,0,0,1,0,0,0,
8,1,1,16,127,0,0,0,1,0,0,
0,8,3,36,16,128,0,0,0,1,0,
0,0,8,1,1,16,129,0,0,0,3,
0,0,0,8,3,60,8,3,61,8,3,
43,16,130,0,0,0,3,0,0,0,8,
1,1,8,1,1,8,1,1,16,131,0,
0,0,5,0,0,0,8,3,46,8,3,
47,8,3,44,8,3,42,8,3,33,16,
132,0,0,0,5,0,0,0,8,1,1,
8,1,1,8,1,1,8,1,1,8,1,
1,16,133,0,0,0,1,0,0,0,8,
3,194,187,16,134,0,0,0,1,0,0,
0,8,1,1,16,135,0,0,0,1,0,
0,0,8,3,194,171,16,136,0,0,0,
1,0,0,0,8,1,1,16,137,0,0,
0,2,0,0,0,8,3,93,8,3,41,
16,138,0,0,0,2,0,0,0,8,1,
1,8,1,1,16,139,0,0,0,2,0,
0,0,8,3,91,8,3,40,16,140,0,
0,0,2,0,0,0,8,1,1,8,1,
1,16,141,0,0,0,2,0,0,0,8,
3,45,8,3,194,173,16,142,0,0,0,
2,0,0,0,8,1,1,8,1,1,16,
143,0,0,0,2,0,0,0,8,3,226,
128,191,8,3,95,16,144,0,0,0,2,
0,0,0,8,1,1,8,1,1,16,145,
0,0,0,1,0,0,0,8,3,238,128,
128,16,146,0,0,0,1,0,0,0,8,
1,1,16,147,0,0,0,1,0,0,0,
8,3,216,128,16,148,0,0,0,1,0,
0,0,8,1,1,16,149,0,0,0,5,
0,0,0,8,3,1,8,3,13,8,3,
9,8,3,10,8,3,0,16,150,0,0,
0,5,0,0,0,8,1,1,8,1,1,
8,1,1,8,1,1,8,1,1,16,151,
0,0,0,1,0,0,0,8,3,226,128,
169,16,152,0,0,0,1,0,0,0,8,
1,1,16,153,0,0,0,1,0,0,0,
8,3,226,128,168,16,154,0,0,0,1,
0,0,0,8,1,1,16,155,0,0,0,
2,0,0,0,8,3,194,160,8,3,32,
16,156,0,0,0,2,0,0,0,8,1,
1,8,1,1,16,157,0,0,0,1,0,
0,0,8,3,194,178,16,158,0,0,0,
1,0,0,0,8,1,1,16,159,0,0,
0,1,0,0,0,8,3,225,155,174,16,
160,0,0,0,1,0,0,0,8,1,1,
16,161,0,0,0,1,0,0,0,8,3,
48,16,162,0,0,0,1,0,0,0,8,
1,1,16,163,0,0,0,1,0,0,0,
8,3,210,136,16,164,0,0,0,1,0,
0,0,8,1,1,16,165,0,0,0,1,
0,0,0,8,3,224,164,131,16,166,0,
0,0,1,0,0,0,8,1,1,16,167,
0,0,0,1,0,0,0,8,3,204,128,
16,168,0,0,0,1,0,0,0,8,1,
1,16,169,0,0,0,1,0,0,0,8,
3,198,187,16,170,0,0,0,1,0,0,
0,8,1,1,16,171,0,0,0,1,0,
0,0,8,3,202,176,16,172,0,0,0,
1,0,0,0,8,1,1,16,173,0,0,
0,1,0,0,0,8,3,199,133,16,174,
0,0,0,1,0,0,0,8,1,1,16,
175,0,0,0,1,0,0,0,8,3,97,
16,176,0,0,0,1,0,0,0,8,1,
1,16,177,0,0,0,1,0,0,0,8,
3,65,16,178,0,0,0,1,0,0,0,
8,1,1,11,0,1,0,0,0,255,255,
255,255,1,0,0,0,0,0,0,0,4,
1,0,0,0,36,83,121,115,116,101,109,
46,71,108,111,98,97,108,105,122,97,116,
105,111,110,46,85,110,105,99,111,100,101,
67,97,116,101,103,111,114,121,1,0,0,
0,7,118,97,108,117,101,95,95,0,8,
29,0,0,0,11,0,1,0,0,0,255,
255,255,255,1,0,0,0,0,0,0,0,
4,1,0,0,0,14,83,121,115,116,101,
109,46,66,111,111,108,101,97,110,1,0,
0,0,7,109,95,118,97,108,117,101,0,
1,0,11,0,1,0,0,0,255,255,255,
255,1,0,0,0,0,0,0,0,4,1,
0,0,0,28,83,121,115,116,101,109,46,
67,111,108,108,101,99,116,105,111,110,115,
46,72,97,115,104,116,97,98,108,101,7,
0,0,0,10,76,111,97,100,70,97,99,
116,111,114,7,86,101,114,115,105,111,110,
8,67,111,109,112,97,114,101,114,16,72,
97,115,104,67,111,100,101,80,114,111,118,
105,100,101,114,8,72,97,115,104,83,105,
122,101,4,75,101,121,115,6,86,97,108,
117,101,115,0,0,3,3,0,5,5,11,
8,28,83,121,115,116,101,109,46,67,111,
108,108,101,99,116,105,111,110,115,46,73,
67,111,109,112,97,114,101,114,36,83,121,
115,116,101,109,46,67,111,108,108,101,99,
116,105,111,110,115,46,73,72,97,115,104,
67,111,100,101,80,114,111,118,105,100,101,
114,8,236,81,56,63,1,0,0,0,10,
10,11,0,0,0,9,2,0,0,0,9,
3,0,0,0,16,2,0,0,0,1,0,
0,0,6,4,0,0,0,9,89,89,73,
78,73,84,73,65,76,16,3,0,0,0,
1,0,0,0,9,5,0,0,0,12,6,
0,0,0,60,84,111,111,108,115,44,32,
86,101,114,115,105,111,110,61,48,46,48,
46,48,46,48,44,32,67,117,108,116,117,
114,101,61,110,101,117,116,114,97,108,44,
32,80,117,98,108,105,99,75,101,121,84,
111,107,101,110,61,110,117,108,108,5,5,
0,0,0,9,84,111,111,108,115,46,68,
102,97,4,0,0,0,5,109,95,109,97,
112,9,109,95,97,99,116,105,111,110,115,
10,109,95,116,111,107,67,108,97,115,115,
7,109,95,115,116,97,116,101,3,4,1,
0,28,83,121,115,116,101,109,46,67,111,
108,108,101,99,116,105,111,110,115,46,72,
97,115,104,116,97,98,108,101,16,84,111,
111,108,115,46,68,102,97,43,65,99,116,
105,111,110,6,0,0,0,8,6,0,0,
0,9,7,0,0,0,10,6,8,0,0,
0,0,139,0,0,0,1,7,0,0,0,
1,0,0,0,236,81,56,63,20,0,0,
0,10,10,47,0,0,0,9,9,0,0,
0,9,10,0,0,0,16,9,0,0,0,
18,0,0,0,8,3,42,8,3,32,8,
3,199,133,8,3,44,8,3,61,8,3,
9,8,3,41,8,3,48,8,3,43,8,
3,65,8,3,13,8,3,97,8,3,45,
8,3,40,8,3,202,176,8,3,198,187,
8,3,10,8,3,47,16,10,0,0,0,
18,0,0,0,9,11,0,0,0,9,12,
0,0,0,9,13,0,0,0,9,14,0,
0,0,9,15,0,0,0,9,12,0,0,
0,9,17,0,0,0,9,18,0,0,0,
9,19,0,0,0,9,13,0,0,0,9,
12,0,0,0,9,13,0,0,0,9,23,
0,0,0,9,24,0,0,0,9,13,0,
0,0,9,13,0,0,0,9,12,0,0,
0,9,27,0,0,0,1,11,0,0,0,
5,0,0,0,9,28,0,0,0,9,29,
0,0,0,6,30,0,0,0,5,84,105,
109,101,115,158,1,0,0,1,12,0,0,
0,5,0,0,0,9,31,0,0,0,9,
32,0,0,0,9,8,0,0,0,225,2,
0,0,1,13,0,0,0,5,0,0,0,
9,34,0,0,0,9,35,0,0,0,6,
36,0,0,0,10,73,100,101,110,116,105,
102,105,101,114,27,3,0,0,1,14,0,
0,0,5,0,0,0,9,37,0,0,0,
9,38,0,0,0,6,39,0,0,0,5,
67,111,109,109,97,113,1,0,0,1,15,
0,0,0,5,0,0,0,9,40,0,0,
0,9,41,0,0,0,6,42,0,0,0,
6,69,113,117,97,108,115,145,0,0,0,
1,17,0,0,0,5,0,0,0,9,43,
0,0,0,9,44,0,0,0,6,45,0,
0,0,6,67,108,111,115,101,80,207,1,
0,0,1,18,0,0,0,5,0,0,0,
9,46,0,0,0,9,47,0,0,0,6,
48,0,0,0,17,73,110,116,101,103,101,
114,67,111,110,115,116,97,110,116,95,49,
78,2,0,0,1,19,0,0,0,5,0,
0,0,9,49,0,0,0,9,50,0,0,
0,6,51,0,0,0,4,80,108,117,115,
190,0,0,0,1,23,0,0,0,5,0,
0,0,9,52,0,0,0,9,53,0,0,
0,6,54,0,0,0,5,77,105,110,117,
115,42,2,0,0,1,24,0,0,0,5,
0,0,0,9,55,0,0,0,9,56,0,
0,0,6,57,0,0,0,5,79,112,101,
110,80,253,1,0,0,1,27,0,0,0,
5,0,0,0,9,58,0,0,0,9,59,
0,0,0,6,60,0,0,0,3,68,105,
118,236,0,0,0,1,28,0,0,0,1,
0,0,0,236,81,56,63,0,0,0,0,
10,10,11,0,0,0,9,61,0,0,0,
9,62,0,0,0,5,29,0,0,0,16,
84,111,111,108,115,46,68,102,97,43,65,
99,116,105,111,110,2,0,0,0,5,97,
95,97,99,116,6,97,95,110,101,120,116,
0,4,8,16,84,111,111,108,115,46,68,
102,97,43,65,99,116,105,111,110,6,0,
0,0,6,0,0,0,97,0,0,0,10,
1,31,0,0,0,1,0,0,0,236,81,
56,63,0,0,0,0,10,10,11,0,0,
0,9,63,0,0,0,9,64,0,0,0,
1,32,0,0,0,29,0,0,0,136,0,
0,0,10,1,34,0,0,0,1,0,0,
0,236,81,56,63,7,0,0,0,10,10,
11,0,0,0,9,65,0,0,0,9,66,
0,0,0,1,35,0,0,0,29,0,0,
0,49,0,0,0,10,1,37,0,0,0,
1,0,0,0,236,81,56,63,0,0,0,
0,10,10,11,0,0,0,9,67,0,0,
0,9,68,0,0,0,1,38,0,0,0,
29,0,0,0,107,0,0,0,10,1,40,
0,0,0,1,0,0,0,236,81,56,63,
0,0,0,0,10,10,11,0,0,0,9,
69,0,0,0,9,70,0,0,0,1,41,
0,0,0,29,0,0,0,117,0,0,0,
10,1,43,0,0,0,1,0,0,0,236,
81,56,63,0,0,0,0,10,10,11,0,
0,0,9,71,0,0,0,9,72,0,0,
0,1,44,0,0,0,29,0,0,0,87,
0,0,0,10,1,46,0,0,0,1,0,
0,0,236,81,56,63,2,0,0,0,10,
10,11,0,0,0,9,73,0,0,0,9,
74,0,0,0,1,47,0,0,0,29,0,
0,0,2,0,0,0,10,1,49,0,0,
0,1,0,0,0,236,81,56,63,0,0,
0,0,10,10,11,0,0,0,9,75,0,
0,0,9,76,0,0,0,1,50,0,0,
0,29,0,0,0,112,0,0,0,10,1,
52,0,0,0,1,0,0,0,236,81,56,
63,1,0,0,0,10,10,11,0,0,0,
9,77,0,0,0,9,78,0,0,0,1,
53,0,0,0,29,0,0,0,92,0,0,
0,10,1,55,0,0,0,1,0,0,0,
236,81,56,63,0,0,0,0,10,10,11,
0,0,0,9,79,0,0,0,9,80,0,
0,0,1,56,0,0,0,29,0,0,0,
82,0,0,0,10,1,58,0,0,0,1,
0,0,0,236,81,56,63,1,0,0,0,
10,10,11,0,0,0,9,81,0,0,0,
9,82,0,0,0,1,59,0,0,0,29,
0,0,0,102,0,0,0,10,16,61,0,
0,0,0,0,0,0,16,62,0,0,0,
0,0,0,0,16,63,0,0,0,0,0,
0,0,16,64,0,0,0,0,0,0,0,
16,65,0,0,0,7,0,0,0,8,3,
199,133,8,3,198,187,8,3,48,8,3,
202,176,8,3,95,8,3,97,8,3,65,
16,66,0,0,0,7,0,0,0,9,83,
0,0,0,9,83,0,0,0,9,84,0,
0,0,9,83,0,0,0,9,86,0,0,
0,9,83,0,0,0,9,83,0,0,0,
16,67,0,0,0,0,0,0,0,16,68,
0,0,0,0,0,0,0,16,69,0,0,
0,0,0,0,0,16,70,0,0,0,0,
0,0,0,16,71,0,0,0,0,0,0,
0,16,72,0,0,0,0,0,0,0,16,
73,0,0,0,2,0,0,0,8,3,46,
8,3,48,16,74,0,0,0,2,0,0,
0,9,88,0,0,0,9,18,0,0,0,
16,75,0,0,0,0,0,0,0,16,76,
0,0,0,0,0,0,0,16,77,0,0,
0,1,0,0,0,8,3,48,16,78,0,
0,0,1,0,0,0,9,18,0,0,0,
16,79,0,0,0,0,0,0,0,16,80,
0,0,0,0,0,0,0,16,81,0,0,
0,1,0,0,0,8,3,47,16,82,0,
0,0,1,0,0,0,9,90,0,0,0,
1,83,0,0,0,5,0,0,0,9,91,
0,0,0,9,92,0,0,0,6,93,0,
0,0,10,73,100,101,110,116,105,102,105,
101,114,125,3,0,0,1,84,0,0,0,
5,0,0,0,9,94,0,0,0,9,95,
0,0,0,6,96,0,0,0,10,73,100,
101,110,116,105,102,105,101,114,85,3,0,
0,1,86,0,0,0,5,0,0,0,9,
97,0,0,0,9,98,0,0,0,6,99,
0,0,0,10,73,100,101,110,116,105,102,
105,101,114,49,3,0,0,1,88,0,0,
0,5,0,0,0,9,100,0,0,0,10,
9,8,0,0,0,86,2,0,0,1,90,
0,0,0,5,0,0,0,9,102,0,0,
0,9,103,0,0,0,9,8,0,0,0,
245,0,0,0,1,91,0,0,0,1,0,
0,0,236,81,56,63,7,0,0,0,10,
10,11,0,0,0,9,105,0,0,0,9,
106,0,0,0,1,92,0,0,0,29,0,
0,0,49,0,0,0,10,1,94,0,0,
0,1,0,0,0,236,81,56,63,7,0,
0,0,10,10,11,0,0,0,9,107,0,
0,0,9,108,0,0,0,1,95,0,0,
0,29,0,0,0,49,0,0,0,10,1,
97,0,0,0,1,0,0,0,236,81,56,
63,7,0,0,0,10,10,11,0,0,0,
9,109,0,0,0,9,110,0,0,0,1,
98,0,0,0,29,0,0,0,49,0,0,
0,10,1,100,0,0,0,1,0,0,0,
236,81,56,63,1,0,0,0,10,10,11,
0,0,0,9,111,0,0,0,9,112,0,
0,0,1,102,0,0,0,1,0,0,0,
236,81,56,63,44,0,0,0,10,10,107,
0,0,0,9,113,0,0,0,9,114,0,
0,0,1,103,0,0,0,29,0,0,0,
122,0,0,0,10,16,105,0,0,0,7,
0,0,0,8,3,199,133,8,3,198,187,
8,3,48,8,3,202,176,8,3,95,8,
3,97,8,3,65,16,106,0,0,0,7,
0,0,0,9,83,0,0,0,9,83,0,
0,0,9,84,0,0,0,9,83,0,0,
0,9,86,0,0,0,9,83,0,0,0,
9,83,0,0,0,16,107,0,0,0,7,
0,0,0,8,3,199,133,8,3,198,187,
8,3,48,8,3,202,176,8,3,95,8,
3,97,8,3,65,16,108,0,0,0,7,
0,0,0,9,83,0,0,0,9,83,0,
0,0,9,84,0,0,0,9,83,0,0,
0,9,86,0,0,0,9,83,0,0,0,
9,83,0,0,0,16,109,0,0,0,7,
0,0,0,8,3,199,133,8,3,198,187,
8,3,48,8,3,202,176,8,3,95,8,
3,97,8,3,65,16,110,0,0,0,7,
0,0,0,9,83,0,0,0,9,83,0,
0,0,9,84,0,0,0,9,83,0,0,
0,9,86,0,0,0,9,83,0,0,0,
9,83,0,0,0,16,111,0,0,0,1,
0,0,0,8,3,48,16,112,0,0,0,
1,0,0,0,9,128,0,0,0,16,113,
0,0,0,41,0,0,0,8,3,226,128,
191,8,3,205,176,8,3,32,8,3,36,
8,3,216,128,8,3,40,8,3,42,8,
3,44,8,3,46,8,3,48,8,3,60,
8,3,194,171,8,3,194,173,8,3,202,
176,8,3,194,187,8,3,210,136,8,3,
225,155,174,8,3,94,8,3,226,128,168,
8,3,1,8,3,9,8,3,198,187,8,
3,204,128,8,3,238,128,128,8,3,224,
164,131,8,3,199,133,8,3,33,8,3,
41,8,3,43,8,3,45,8,3,47,8,
3,194,160,8,3,194,166,8,3,61,8,
3,65,8,3,194,178,8,3,91,8,3,
93,8,3,95,8,3,97,8,3,226,128,
169,16,114,0,0,0,41,0,0,0,9,
129,0,0,0,9,129,0,0,0,9,129,
0,0,0,9,129,0,0,0,9,129,0,
0,0,9,129,0,0,0,9,129,0,0,
0,9,129,0,0,0,9,129,0,0,0,
9,129,0,0,0,9,129,0,0,0,9,
129,0,0,0,9,129,0,0,0,9,129,
0,0,0,9,129,0,0,0,9,129,0,
0,0,9,129,0,0,0,9,129,0,0,
0,9,129,0,0,0,9,129,0,0,0,
9,129,0,0,0,9,129,0,0,0,9,
129,0,0,0,9,129,0,0,0,9,129,
0,0,0,9,129,0,0,0,9,129,0,
0,0,9,129,0,0,0,9,129,0,0,
0,9,129,0,0,0,9,129,0,0,0,
9,129,0,0,0,9,129,0,0,0,9,
129,0,0,0,9,129,0,0,0,9,129,
0,0,0,9,129,0,0,0,9,129,0,
0,0,9,129,0,0,0,9,129,0,0,
0,9,129,0,0,0,1,128,0,0,0,
5,0,0,0,9,130,0,0,0,9,131,
0,0,0,6,132,0,0,0,14,82,101,
97,108,67,111,110,115,116,97,110,116,95,
49,122,2,0,0,1,129,0,0,0,5,
0,0,0,9,133,0,0,0,9,134,0,
0,0,9,8,0,0,0,246,0,0,0,
1,130,0,0,0,1,0,0,0,236,81,
56,63,1,0,0,0,10,10,11,0,0,
0,9,136,0,0,0,9,137,0,0,0,
1,131,0,0,0,29,0,0,0,19,0,
0,0,10,1,133,0,0,0,1,0,0,
0,236,81,56,63,44,0,0,0,10,10,
107,0,0,0,9,138,0,0,0,9,139,
0,0,0,1,134,0,0,0,29,0,0,
0,122,0,0,0,10,16,136,0,0,0,
1,0,0,0,8,3,48,16,137,0,0,
0,1,0,0,0,9,128,0,0,0,16,
138,0,0,0,41,0,0,0,8,3,226,
128,191,8,3,205,176,8,3,32,8,3,
36,8,3,216,128,8,3,40,8,3,42,
8,3,44,8,3,46,8,3,48,8,3,
60,8,3,194,171,8,3,194,173,8,3,
202,176,8,3,194,187,8,3,210,136,8,
3,225,155,174,8,3,94,8,3,226,128,
168,8,3,1,8,3,9,8,3,198,187,
8,3,204,128,8,3,238,128,128,8,3,
224,164,131,8,3,199,133,8,3,33,8,
3,41,8,3,43,8,3,45,8,3,47,
8,3,194,160,8,3,194,166,8,3,61,
8,3,65,8,3,194,178,8,3,91,8,
3,93,8,3,95,8,3,97,8,3,226,
128,169,16,139,0,0,0,41,0,0,0,
9,129,0,0,0,9,129,0,0,0,9,
129,0,0,0,9,129,0,0,0,9,129,
0,0,0,9,129,0,0,0,9,129,0,
0,0,9,129,0,0,0,9,129,0,0,
0,9,129,0,0,0,9,129,0,0,0,
9,129,0,0,0,9,129,0,0,0,9,
129,0,0,0,9,129,0,0,0,9,129,
0,0,0,9,129,0,0,0,9,129,0,
0,0,9,129,0,0,0,9,129,0,0,
0,9,129,0,0,0,9,129,0,0,0,
9,129,0,0,0,9,129,0,0,0,9,
129,0,0,0,9,129,0,0,0,9,129,
0,0,0,9,129,0,0,0,9,129,0,
0,0,9,129,0,0,0,9,129,0,0,
0,9,129,0,0,0,9,129,0,0,0,
9,129,0,0,0,9,129,0,0,0,9,
129,0,0,0,9,129,0,0,0,9,129,
0,0,0,9,129,0,0,0,9,129,0,
0,0,9,129,0,0,0,11,0,1,0,
0,0,255,255,255,255,1,0,0,0,0,
0,0,0,4,1,0,0,0,28,83,121,
115,116,101,109,46,67,111,108,108,101,99,
116,105,111,110,115,46,72,97,115,104,116,
97,98,108,101,7,0,0,0,10,76,111,
97,100,70,97,99,116,111,114,7,86,101,
114,115,105,111,110,8,67,111,109,112,97,
114,101,114,16,72,97,115,104,67,111,100,
101,80,114,111,118,105,100,101,114,8,72,
97,115,104,83,105,122,101,4,75,101,121,
115,6,86,97,108,117,101,115,0,0,3,
3,0,5,5,11,8,28,83,121,115,116,
101,109,46,67,111,108,108,101,99,116,105,
111,110,115,46,73,67,111,109,112,97,114,
101,114,36,83,121,115,116,101,109,46,67,
111,108,108,101,99,116,105,111,110,115,46,
73,72,97,115,104,67,111,100,101,80,114,
111,118,105,100,101,114,8,236,81,56,63,
15,0,0,0,10,10,23,0,0,0,9,
2,0,0,0,9,3,0,0,0,16,2,
0,0,0,14,0,0,0,6,4,0,0,
0,6,67,108,111,115,101,80,6,5,0,
0,0,14,78,117,109,98,101,114,67,111,
110,115,116,97,110,116,6,6,0,0,0,
5,79,112,101,110,80,6,7,0,0,0,
6,69,113,117,97,108,115,6,8,0,0,
0,12,82,101,97,108,67,111,110,115,116,
97,110,116,6,9,0,0,0,5,67,111,
109,109,97,6,10,0,0,0,5,77,105,
110,117,115,6,11,0,0,0,3,68,105,
118,6,12,0,0,0,10,73,100,101,110,
116,105,102,105,101,114,6,13,0,0,0,
17,73,110,116,101,103,101,114,67,111,110,
115,116,97,110,116,95,49,6,14,0,0,
0,15,73,110,116,101,103,101,114,67,111,
110,115,116,97,110,116,6,15,0,0,0,
14,82,101,97,108,67,111,110,115,116,97,
110,116,95,49,6,16,0,0,0,5,84,
105,109,101,115,6,17,0,0,0,4,80,
108,117,115,16,3,0,0,0,14,0,0,
0,9,18,0,0,0,9,19,0,0,0,
9,20,0,0,0,9,21,0,0,0,9,
22,0,0,0,9,23,0,0,0,9,24,
0,0,0,9,25,0,0,0,9,26,0,
0,0,9,27,0,0,0,9,28,0,0,
0,9,29,0,0,0,9,30,0,0,0,
9,31,0,0,0,12,32,0,0,0,60,
84,111,111,108,115,44,32,86,101,114,115,
105,111,110,61,48,46,48,46,48,46,48,
44,32,67,117,108,116,117,114,101,61,110,
101,117,116,114,97,108,44,32,80,117,98,
108,105,99,75,101,121,84,111,107,101,110,
61,110,117,108,108,5,18,0,0,0,17,
84,111,111,108,115,46,84,111,107,67,108,
97,115,115,68,101,102,4,0,0,0,6,
109,95,110,97,109,101,10,109,95,114,101,
102,84,111,107,101,110,16,109,95,105,110,
105,116,105,97,108,105,115,97,116,105,111,
110,11,109,95,105,109,112,108,101,109,101,
110,116,1,1,1,1,32,0,0,0,9,
4,0,0,0,6,34,0,0,0,5,84,
79,75,69,78,6,35,0,0,0,0,9,
35,0,0,0,1,19,0,0,0,18,0,
0,0,9,5,0,0,0,9,34,0,0,
0,9,35,0,0,0,9,35,0,0,0,
1,20,0,0,0,18,0,0,0,9,6,
0,0,0,9,34,0,0,0,9,35,0,
0,0,9,35,0,0,0,1,21,0,0,
0,18,0,0,0,9,7,0,0,0,9,
34,0,0,0,9,35,0,0,0,9,35,
0,0,0,1,22,0,0,0,18,0,0,
0,9,8,0,0,0,6,46,0,0,0,
14,78,117,109,98,101,114,67,111,110,115,
116,97,110,116,9,35,0,0,0,9,35,
0,0,0,1,23,0,0,0,18,0,0,
0,9,9,0,0,0,9,34,0,0,0,
9,35,0,0,0,9,35,0,0,0,1,
24,0,0,0,18,0,0,0,9,10,0,
0,0,9,34,0,0,0,9,35,0,0,
0,9,35,0,0,0,1,25,0,0,0,
18,0,0,0,9,11,0,0,0,9,34,
0,0,0,9,35,0,0,0,9,35,0,
0,0,1,26,0,0,0,18,0,0,0,
9,12,0,0,0,9,34,0,0,0,9,
35,0,0,0,9,35,0,0,0,1,27,
0,0,0,18,0,0,0,9,13,0,0,
0,9,14,0,0,0,6,62,0,0,0,
32,32,32,123,118,97,108,117,101,32,61,
32,73,110,116,51,50,46,80,97,114,115,
101,40,121,121,116,101,120,116,41,59,125,
9,35,0,0,0,1,28,0,0,0,18,
0,0,0,9,14,0,0,0,6,65,0,
0,0,14,78,117,109,98,101,114,67,111,
110,115,116,97,110,116,9,35,0,0,0,
9,35,0,0,0,1,29,0,0,0,18,
0,0,0,9,15,0,0,0,9,8,0,
0,0,6,69,0,0,0,34,9,32,32,
123,118,97,108,117,101,32,61,32,68,111,
117,98,108,101,46,80,97,114,115,101,40,
121,121,116,101,120,116,41,59,125,9,35,
0,0,0,1,30,0,0,0,18,0,0,
0,9,16,0,0,0,9,34,0,0,0,
9,35,0,0,0,9,35,0,0,0,1,
31,0,0,0,18,0,0,0,9,17,0,
0,0,9,34,0,0,0,9,35,0,0,
0,9,35,0,0,0,11,0};
new Tfactory(this,"CloseP",new TCreator(CloseP_factory));
new Tfactory(this,"NumberConstant",new TCreator(NumberConstant_factory));
new Tfactory(this,"OpenP",new TCreator(OpenP_factory));
new Tfactory(this,"Equals",new TCreator(Equals_factory));
new Tfactory(this,"RealConstant",new TCreator(RealConstant_factory));
new Tfactory(this,"Comma",new TCreator(Comma_factory));
new Tfactory(this,"Minus",new TCreator(Minus_factory));
new Tfactory(this,"Div",new TCreator(Div_factory));
new Tfactory(this,"Identifier",new TCreator(Identifier_factory));
new Tfactory(this,"IntegerConstant_1",new TCreator(IntegerConstant_1_factory));
new Tfactory(this,"IntegerConstant",new TCreator(IntegerConstant_factory));
new Tfactory(this,"RealConstant_1",new TCreator(RealConstant_1_factory));
new Tfactory(this,"Times",new TCreator(Times_factory));
new Tfactory(this,"Plus",new TCreator(Plus_factory));
}
public static object CloseP_factory(Lexer yyl) { return new CloseP(yyl);}
public static object NumberConstant_factory(Lexer yyl) { return new NumberConstant(yyl);}
public static object OpenP_factory(Lexer yyl) { return new OpenP(yyl);}
public static object Equals_factory(Lexer yyl) { return new Equals(yyl);}
public static object RealConstant_factory(Lexer yyl) { return new RealConstant(yyl);}
public static object Comma_factory(Lexer yyl) { return new Comma(yyl);}
public static object Minus_factory(Lexer yyl) { return new Minus(yyl);}
public static object Div_factory(Lexer yyl) { return new Div(yyl);}
public static object Identifier_factory(Lexer yyl) { return new Identifier(yyl);}
public static object IntegerConstant_1_factory(Lexer yyl) { return new IntegerConstant_1(yyl);}
public static object IntegerConstant_factory(Lexer yyl) { return new IntegerConstant(yyl);}
public static object RealConstant_1_factory(Lexer yyl) { return new RealConstant_1(yyl);}
public static object Times_factory(Lexer yyl) { return new Times(yyl);}
public static object Plus_factory(Lexer yyl) { return new Plus(yyl);}
public override TOKEN OldAction(Lexer yym,string yytext, int action, ref bool reject) {
switch(action) {
case -1: break;
case 136: ;
break;
case 122: ;
break;
}
return null;
}}
public class tokens:Lexer {
public tokens():base(new yytokens(new ErrorHandler(false))) {}
public tokens(ErrorHandler eh):base(new yytokens(eh)) {}
public tokens(Tokens tks):base(tks){}
}
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,603 @@
using System;using Tools;
namespace BCG.Evaluator.ColumnMapExpression {
//%+ColumnMapExpression
[Serializable] public class ColumnMapExpression : SYMBOL{
public ColumnMapExpression (Parser yyp, System . Collections . IDictionary tcolumns , bool tisInclusive ):base(((syntax)yyp)){ columns = tcolumns ;
isInclusive = tisInclusive ;
}
public ColumnMapExpression (Parser yyp, bool tisInclusive ):base(((syntax)yyp)){ columns = new System . Collections . Hashtable ();
isInclusive = tisInclusive ;
}
public System . Collections . IDictionary columns ;
public bool isInclusive ;
public override string yyname() { return "ColumnMapExpression"; }
public ColumnMapExpression(Parser yyp):base(yyp){}}
//%+AliasList
[Serializable] public class AliasList : SYMBOL{
public AliasList (Parser yyp, string name , string newName , AliasList oldList ):base(((syntax)yyp)){ columns = oldList . columns ;
columns[ name ]= newName ;
}
public AliasList (Parser yyp, string name , string newName ):base(((syntax)yyp)){ columns = new System . Collections . Hashtable ();
columns[ name ]= newName ;
}
public AliasList (Parser yyp, string name ):base(((syntax)yyp)){ columns = new System . Collections . Hashtable ();
columns[ name ]= name ;
}
public AliasList (Parser yyp, string name , AliasList oldList ):base(((syntax)yyp)){ columns = oldList . columns ;
columns[ name ]= name ;
}
public System . Collections . IDictionary columns ;
public override string yyname() { return "AliasList"; }
public AliasList(Parser yyp):base(yyp){}}
[Serializable] public class ColumnMapExpression_1 : ColumnMapExpression {
public ColumnMapExpression_1(Parser yyq):base(yyq,
((AliasList)(yyq.StackAt(0).m_value))
.columns,false){}}
[Serializable] public class ColumnMapExpression_2 : ColumnMapExpression {
public ColumnMapExpression_2(Parser yyq):base(yyq,false){}}
[Serializable] public class ColumnMapExpression_3 : ColumnMapExpression {
public ColumnMapExpression_3(Parser yyq):base(yyq,
((AliasList)(yyq.StackAt(0).m_value))
.columns,true){}}
[Serializable] public class AliasList_1 : AliasList {
public AliasList_1(Parser yyq):base(yyq,
((Identifier)(yyq.StackAt(2).m_value))
.yytext,
((Identifier)(yyq.StackAt(0).m_value))
.yytext){}}
[Serializable] public class AliasList_2 : AliasList {
public AliasList_2(Parser yyq):base(yyq,
((Identifier)(yyq.StackAt(3).m_value))
.yytext,
((Identifier)(yyq.StackAt(1).m_value))
.yytext,
((AliasList)(yyq.StackAt(0).m_value))
){}}
[Serializable] public class AliasList_3 : AliasList {
public AliasList_3(Parser yyq):base(yyq,
((Identifier)(yyq.StackAt(0).m_value))
.yytext){}}
[Serializable] public class AliasList_4 : AliasList {
public AliasList_4(Parser yyq):base(yyq,
((Identifier)(yyq.StackAt(1).m_value))
.yytext,
((AliasList)(yyq.StackAt(0).m_value))
){}}
[Serializable] public class yysyntax: Symbols {
public override object Action(Parser yyq,SYMBOL yysym, int yyact) {
switch(yyact) {
case -1: break; //// keep compiler happy
} return null; }
public yysyntax():base() { arr = new byte[] {
0,1,0,0,0,255,255,255,255,1,
0,0,0,0,0,0,0,12,2,0,0,
0,60,84,111,111,108,115,44,32,86,101,
114,115,105,111,110,61,48,46,48,46,48,
46,48,44,32,67,117,108,116,117,114,101,
61,110,101,117,116,114,97,108,44,32,80,
117,98,108,105,99,75,101,121,84,111,107,
101,110,61,110,117,108,108,5,1,0,0,
0,13,84,111,111,108,115,46,67,83,121,
109,98,111,108,4,0,0,0,9,109,95,
115,121,109,116,121,112,101,8,109,95,100,
111,108,108,97,114,3,112,111,115,11,84,
79,75,69,78,43,109,95,115,116,114,4,
2,0,1,21,84,111,111,108,115,46,67,
83,121,109,98,111,108,43,83,121,109,84,
121,112,101,2,0,0,0,8,2,0,0,
0,5,253,255,255,255,21,84,111,111,108,
115,46,67,83,121,109,98,111,108,43,83,
121,109,84,121,112,101,1,0,0,0,7,
118,97,108,117,101,95,95,0,8,2,0,
0,0,2,0,0,0,10,0,0,0,0,
6,4,0,0,0,19,67,111,108,117,109,
110,77,97,112,69,120,112,114,101,115,115,
105,111,110,11,0,1,0,0,0,255,255,
255,255,1,0,0,0,0,0,0,0,12,
2,0,0,0,60,84,111,111,108,115,44,
32,86,101,114,115,105,111,110,61,48,46,
48,46,48,46,48,44,32,67,117,108,116,
117,114,101,61,110,101,117,116,114,97,108,
44,32,80,117,98,108,105,99,75,101,121,
84,111,107,101,110,61,110,117,108,108,5,
1,0,0,0,16,84,111,111,108,115,46,
80,97,114,115,101,83,116,97,116,101,3,
0,0,0,7,109,95,115,116,97,116,101,
17,109,95,97,99,99,101,115,115,105,110,
103,83,121,109,98,111,108,9,109,95,99,
104,97,110,103,101,100,0,4,0,8,13,
84,111,111,108,115,46,67,83,121,109,98,
111,108,2,0,0,0,1,2,0,0,0,
12,0,0,0,9,3,0,0,0,0,5,
3,0,0,0,13,84,111,111,108,115,46,
67,83,121,109,98,111,108,4,0,0,0,
9,109,95,115,121,109,116,121,112,101,8,
109,95,100,111,108,108,97,114,3,112,111,
115,11,84,79,75,69,78,43,109,95,115,
116,114,4,2,0,1,21,84,111,111,108,
115,46,67,83,121,109,98,111,108,43,83,
121,109,84,121,112,101,2,0,0,0,8,
2,0,0,0,5,252,255,255,255,21,84,
111,111,108,115,46,67,83,121,109,98,111,
108,43,83,121,109,84,121,112,101,1,0,
0,0,7,118,97,108,117,101,95,95,0,
8,2,0,0,0,2,0,0,0,10,0,
0,0,0,6,5,0,0,0,19,67,111,
108,117,109,110,77,97,112,69,120,112,114,
101,115,115,105,111,110,11,0,1,0,0,
0,255,255,255,255,1,0,0,0,0,0,
0,0,4,1,0,0,0,28,83,121,115,
116,101,109,46,67,111,108,108,101,99,116,
105,111,110,115,46,72,97,115,104,116,97,
98,108,101,7,0,0,0,10,76,111,97,
100,70,97,99,116,111,114,7,86,101,114,
115,105,111,110,8,67,111,109,112,97,114,
101,114,16,72,97,115,104,67,111,100,101,
80,114,111,118,105,100,101,114,8,72,97,
115,104,83,105,122,101,4,75,101,121,115,
6,86,97,108,117,101,115,0,0,3,3,
0,5,5,11,8,28,83,121,115,116,101,
109,46,67,111,108,108,101,99,116,105,111,
110,115,46,73,67,111,109,112,97,114,101,
114,36,83,121,115,116,101,109,46,67,111,
108,108,101,99,116,105,111,110,115,46,73,
72,97,115,104,67,111,100,101,80,114,111,
118,105,100,101,114,8,236,81,56,63,12,
0,0,0,10,10,23,0,0,0,9,2,
0,0,0,9,3,0,0,0,16,2,0,
0,0,11,0,0,0,8,8,13,0,0,
0,8,8,12,0,0,0,8,8,11,0,
0,0,8,8,9,0,0,0,8,8,8,
0,0,0,8,8,7,0,0,0,8,8,
5,0,0,0,8,8,4,0,0,0,8,
8,2,0,0,0,8,8,1,0,0,0,
8,8,0,0,0,0,16,3,0,0,0,
11,0,0,0,9,4,0,0,0,9,5,
0,0,0,9,6,0,0,0,9,7,0,
0,0,9,8,0,0,0,9,9,0,0,
0,9,10,0,0,0,9,11,0,0,0,
9,12,0,0,0,9,13,0,0,0,9,
14,0,0,0,12,15,0,0,0,60,84,
111,111,108,115,44,32,86,101,114,115,105,
111,110,61,48,46,48,46,48,46,48,44,
32,67,117,108,116,117,114,101,61,110,101,
117,116,114,97,108,44,32,80,117,98,108,
105,99,75,101,121,84,111,107,101,110,61,
110,117,108,108,5,4,0,0,0,16,84,
111,111,108,115,46,80,97,114,115,101,83,
116,97,116,101,3,0,0,0,7,109,95,
115,116,97,116,101,17,109,95,97,99,99,
101,115,115,105,110,103,83,121,109,98,111,
108,9,109,95,99,104,97,110,103,101,100,
0,4,0,8,9,84,111,111,108,115,46,
69,79,70,15,0,0,0,1,15,0,0,
0,13,0,0,0,9,16,0,0,0,0,
1,5,0,0,0,4,0,0,0,12,0,
0,0,9,17,0,0,0,0,1,6,0,
0,0,4,0,0,0,11,0,0,0,9,
18,0,0,0,0,1,7,0,0,0,4,
0,0,0,9,0,0,0,9,19,0,0,
0,0,1,8,0,0,0,4,0,0,0,
8,0,0,0,9,18,0,0,0,0,1,
9,0,0,0,4,0,0,0,7,0,0,
0,9,18,0,0,0,0,1,10,0,0,
0,4,0,0,0,5,0,0,0,9,21,
0,0,0,0,1,11,0,0,0,4,0,
0,0,4,0,0,0,9,22,0,0,0,
0,1,12,0,0,0,4,0,0,0,2,
0,0,0,9,18,0,0,0,0,1,13,
0,0,0,4,0,0,0,1,0,0,0,
9,21,0,0,0,0,1,14,0,0,0,
4,0,0,0,0,0,0,0,10,0,5,
16,0,0,0,9,84,111,111,108,115,46,
69,79,70,4,0,0,0,9,109,95,115,
121,109,116,121,112,101,8,109,95,100,111,
108,108,97,114,3,112,111,115,11,84,79,
75,69,78,43,109,95,115,116,114,4,2,
0,1,21,84,111,111,108,115,46,67,83,
121,109,98,111,108,43,83,121,109,84,121,
112,101,15,0,0,0,8,15,0,0,0,
5,231,255,255,255,21,84,111,111,108,115,
46,67,83,121,109,98,111,108,43,83,121,
109,84,121,112,101,1,0,0,0,7,118,
97,108,117,101,95,95,0,8,15,0,0,
0,6,0,0,0,10,0,0,0,0,6,
26,0,0,0,3,69,79,70,5,17,0,
0,0,13,84,111,111,108,115,46,67,83,
121,109,98,111,108,4,0,0,0,9,109,
95,115,121,109,116,121,112,101,8,109,95,
100,111,108,108,97,114,3,112,111,115,11,
84,79,75,69,78,43,109,95,115,116,114,
4,2,0,1,21,84,111,111,108,115,46,
67,83,121,109,98,111,108,43,83,121,109,
84,121,112,101,15,0,0,0,8,15,0,
0,0,1,229,255,255,255,231,255,255,255,
2,0,0,0,10,0,0,0,0,6,28,
0,0,0,19,67,111,108,117,109,110,77,
97,112,69,120,112,114,101,115,115,105,111,
110,1,18,0,0,0,17,0,0,0,1,
227,255,255,255,231,255,255,255,2,0,0,
0,10,0,0,0,0,6,30,0,0,0,
9,65,108,105,97,115,76,105,115,116,1,
19,0,0,0,17,0,0,0,1,225,255,
255,255,231,255,255,255,1,0,0,0,10,
0,0,0,0,6,32,0,0,0,3,78,
111,116,1,21,0,0,0,17,0,0,0,
1,223,255,255,255,231,255,255,255,1,0,
0,0,10,0,0,0,0,6,34,0,0,
0,10,73,100,101,110,116,105,102,105,101,
114,1,22,0,0,0,17,0,0,0,1,
221,255,255,255,231,255,255,255,1,0,0,
0,10,0,0,0,0,6,36,0,0,0,
6,77,97,112,115,84,111,11,0,1,0,
0,0,255,255,255,255,1,0,0,0,0,
0,0,0,4,1,0,0,0,28,83,121,
115,116,101,109,46,67,111,108,108,101,99,
116,105,111,110,115,46,72,97,115,104,116,
97,98,108,101,7,0,0,0,10,76,111,
97,100,70,97,99,116,111,114,7,86,101,
114,115,105,111,110,8,67,111,109,112,97,
114,101,114,16,72,97,115,104,67,111,100,
101,80,114,111,118,105,100,101,114,8,72,
97,115,104,83,105,122,101,4,75,101,121,
115,6,86,97,108,117,101,115,0,0,3,
3,0,5,5,11,8,28,83,121,115,116,
101,109,46,67,111,108,108,101,99,116,105,
111,110,115,46,73,67,111,109,112,97,114,
101,114,36,83,121,115,116,101,109,46,67,
111,108,108,101,99,116,105,111,110,115,46,
73,72,97,115,104,67,111,100,101,80,114,
111,118,105,100,101,114,8,236,81,56,63,
14,0,0,0,10,10,23,0,0,0,9,
2,0,0,0,9,3,0,0,0,16,2,
0,0,0,13,0,0,0,6,4,0,0,
0,6,77,97,112,115,84,111,6,5,0,
0,0,21,67,111,108,117,109,110,77,97,
112,69,120,112,114,101,115,115,105,111,110,
95,51,6,6,0,0,0,21,67,111,108,
117,109,110,77,97,112,69,120,112,114,101,
115,115,105,111,110,95,50,6,7,0,0,
0,3,69,79,70,6,8,0,0,0,11,
65,108,105,97,115,76,105,115,116,95,52,
6,9,0,0,0,11,65,108,105,97,115,
76,105,115,116,95,51,6,10,0,0,0,
10,73,100,101,110,116,105,102,105,101,114,
6,11,0,0,0,11,65,108,105,97,115,
76,105,115,116,95,50,6,12,0,0,0,
11,65,108,105,97,115,76,105,115,116,95,
49,6,13,0,0,0,9,65,108,105,97,
115,76,105,115,116,6,14,0,0,0,19,
67,111,108,117,109,110,77,97,112,69,120,
112,114,101,115,115,105,111,110,6,15,0,
0,0,3,78,111,116,6,16,0,0,0,
21,67,111,108,117,109,110,77,97,112,69,
120,112,114,101,115,115,105,111,110,95,49,
16,3,0,0,0,13,0,0,0,9,17,
0,0,0,9,18,0,0,0,9,19,0,
0,0,9,20,0,0,0,9,21,0,0,
0,9,22,0,0,0,9,23,0,0,0,
9,24,0,0,0,9,25,0,0,0,9,
26,0,0,0,9,27,0,0,0,9,28,
0,0,0,9,29,0,0,0,12,30,0,
0,0,60,84,111,111,108,115,44,32,86,
101,114,115,105,111,110,61,48,46,48,46,
48,46,48,44,32,67,117,108,116,117,114,
101,61,110,101,117,116,114,97,108,44,32,
80,117,98,108,105,99,75,101,121,84,111,
107,101,110,61,110,117,108,108,5,17,0,
0,0,17,84,111,111,108,115,46,80,97,
114,115,105,110,103,73,110,102,111,2,0,
0,0,9,109,95,115,121,109,78,97,109,
101,12,109,95,112,97,114,115,101,116,97,
98,108,101,1,3,28,83,121,115,116,101,
109,46,67,111,108,108,101,99,116,105,111,
110,115,46,72,97,115,104,116,97,98,108,
101,30,0,0,0,9,4,0,0,0,9,
32,0,0,0,1,18,0,0,0,17,0,
0,0,9,5,0,0,0,9,34,0,0,
0,1,19,0,0,0,17,0,0,0,9,
6,0,0,0,9,34,0,0,0,1,20,
0,0,0,17,0,0,0,9,7,0,0,
0,9,38,0,0,0,1,21,0,0,0,
17,0,0,0,9,8,0,0,0,9,40,
0,0,0,1,22,0,0,0,17,0,0,
0,9,9,0,0,0,9,40,0,0,0,
1,23,0,0,0,17,0,0,0,9,10,
0,0,0,9,44,0,0,0,1,24,0,
0,0,17,0,0,0,9,11,0,0,0,
9,40,0,0,0,1,25,0,0,0,17,
0,0,0,9,12,0,0,0,9,40,0,
0,0,1,26,0,0,0,17,0,0,0,
9,13,0,0,0,9,40,0,0,0,1,
27,0,0,0,17,0,0,0,9,14,0,
0,0,9,34,0,0,0,1,28,0,0,
0,17,0,0,0,9,15,0,0,0,9,
54,0,0,0,1,29,0,0,0,17,0,
0,0,9,16,0,0,0,9,34,0,0,
0,1,32,0,0,0,1,0,0,0,236,
81,56,63,1,0,0,0,10,10,11,0,
0,0,9,57,0,0,0,9,58,0,0,
0,1,34,0,0,0,1,0,0,0,236,
81,56,63,1,0,0,0,10,10,11,0,
0,0,9,59,0,0,0,9,60,0,0,
0,1,38,0,0,0,1,0,0,0,236,
81,56,63,7,0,0,0,10,10,11,0,
0,0,9,61,0,0,0,9,62,0,0,
0,1,40,0,0,0,1,0,0,0,236,
81,56,63,4,0,0,0,10,10,11,0,
0,0,9,63,0,0,0,9,64,0,0,
0,1,44,0,0,0,1,0,0,0,236,
81,56,63,5,0,0,0,10,10,11,0,
0,0,9,65,0,0,0,9,66,0,0,
0,1,54,0,0,0,1,0,0,0,236,
81,56,63,1,0,0,0,10,10,11,0,
0,0,9,67,0,0,0,9,68,0,0,
0,16,57,0,0,0,1,0,0,0,8,
8,1,0,0,0,16,58,0,0,0,1,
0,0,0,9,69,0,0,0,16,59,0,
0,0,1,0,0,0,8,8,0,0,0,
0,16,60,0,0,0,1,0,0,0,9,
70,0,0,0,16,61,0,0,0,7,0,
0,0,8,8,9,0,0,0,8,8,8,
0,0,0,8,8,7,0,0,0,8,8,
5,0,0,0,8,8,2,0,0,0,8,
8,1,0,0,0,8,8,11,0,0,0,
16,62,0,0,0,7,0,0,0,9,71,
0,0,0,9,72,0,0,0,9,73,0,
0,0,9,74,0,0,0,9,75,0,0,
0,9,76,0,0,0,9,77,0,0,0,
16,63,0,0,0,4,0,0,0,8,8,
9,0,0,0,8,8,5,0,0,0,8,
8,1,0,0,0,8,8,0,0,0,0,
16,64,0,0,0,4,0,0,0,9,78,
0,0,0,9,79,0,0,0,9,80,0,
0,0,9,81,0,0,0,16,65,0,0,
0,5,0,0,0,8,8,9,0,0,0,
8,8,5,0,0,0,8,8,4,0,0,
0,8,8,1,0,0,0,8,8,0,0,
0,0,16,66,0,0,0,5,0,0,0,
9,82,0,0,0,9,83,0,0,0,9,
84,0,0,0,9,85,0,0,0,9,86,
0,0,0,16,67,0,0,0,1,0,0,
0,8,8,0,0,0,0,16,68,0,0,
0,1,0,0,0,9,87,0,0,0,5,
69,0,0,0,17,84,111,111,108,115,46,
80,97,114,115,101,114,83,104,105,102,116,
2,0,0,0,6,109,95,110,101,120,116,
8,109,95,97,99,116,105,111,110,4,4,
16,84,111,111,108,115,46,80,97,114,115,
101,83,116,97,116,101,30,0,0,0,18,
84,111,111,108,115,46,80,97,114,115,101,
114,65,99,116,105,111,110,30,0,0,0,
30,0,0,0,9,88,0,0,0,10,1,
70,0,0,0,69,0,0,0,9,89,0,
0,0,10,5,71,0,0,0,18,84,111,
111,108,115,46,80,97,114,115,101,114,82,
101,100,117,99,101,3,0,0,0,7,109,
95,100,101,112,116,104,6,109,95,112,114,
111,100,8,109,95,97,99,116,105,111,110,
0,4,4,8,16,84,111,111,108,115,46,
80,114,111,100,117,99,116,105,111,110,30,
0,0,0,24,84,111,111,108,115,46,80,
97,114,115,101,114,83,105,109,112,108,101,
65,99,116,105,111,110,30,0,0,0,30,
0,0,0,1,0,0,0,9,90,0,0,
0,9,91,0,0,0,1,72,0,0,0,
71,0,0,0,1,0,0,0,9,92,0,
0,0,9,93,0,0,0,1,73,0,0,
0,71,0,0,0,4,0,0,0,9,94,
0,0,0,9,95,0,0,0,1,74,0,
0,0,71,0,0,0,3,0,0,0,9,
96,0,0,0,9,97,0,0,0,1,75,
0,0,0,71,0,0,0,2,0,0,0,
9,98,0,0,0,9,99,0,0,0,1,
76,0,0,0,71,0,0,0,1,0,0,
0,9,100,0,0,0,9,101,0,0,0,
1,77,0,0,0,71,0,0,0,2,0,
0,0,9,102,0,0,0,9,103,0,0,
0,1,78,0,0,0,69,0,0,0,9,
104,0,0,0,10,1,79,0,0,0,69,
0,0,0,9,105,0,0,0,10,1,80,
0,0,0,69,0,0,0,9,106,0,0,
0,10,1,81,0,0,0,69,0,0,0,
9,107,0,0,0,10,1,82,0,0,0,
69,0,0,0,9,108,0,0,0,10,1,
83,0,0,0,69,0,0,0,9,108,0,
0,0,10,1,84,0,0,0,69,0,0,
0,9,109,0,0,0,10,1,85,0,0,
0,69,0,0,0,9,108,0,0,0,10,
1,86,0,0,0,69,0,0,0,9,108,
0,0,0,10,1,87,0,0,0,69,0,
0,0,9,111,0,0,0,10,5,88,0,
0,0,16,84,111,111,108,115,46,80,97,
114,115,101,83,116,97,116,101,3,0,0,
0,7,109,95,115,116,97,116,101,17,109,
95,97,99,99,101,115,115,105,110,103,83,
121,109,98,111,108,9,109,95,99,104,97,
110,103,101,100,0,4,0,8,13,84,111,
111,108,115,46,67,83,121,109,98,111,108,
30,0,0,0,1,30,0,0,0,4,0,
0,0,9,112,0,0,0,0,1,89,0,
0,0,88,0,0,0,12,0,0,0,9,
113,0,0,0,0,5,90,0,0,0,16,
84,111,111,108,115,46,80,114,111,100,117,
99,116,105,111,110,1,0,0,0,5,109,
95,112,110,111,0,8,30,0,0,0,2,
0,0,0,5,91,0,0,0,24,84,111,
111,108,115,46,80,97,114,115,101,114,83,
105,109,112,108,101,65,99,116,105,111,110,
6,0,0,0,5,109,95,115,121,109,5,
109,95,108,101,110,9,109,95,115,121,109,
116,121,112,101,8,109,95,100,111,108,108,
97,114,3,112,111,115,11,84,79,75,69,
78,43,109,95,115,116,114,4,0,4,2,
0,1,13,84,111,111,108,115,46,67,83,
121,109,98,111,108,30,0,0,0,8,21,
84,111,111,108,115,46,67,83,121,109,98,
111,108,43,83,121,109,84,121,112,101,30,
0,0,0,8,30,0,0,0,9,114,0,
0,0,2,0,0,0,5,141,255,255,255,
21,84,111,111,108,115,46,67,83,121,109,
98,111,108,43,83,121,109,84,121,112,101,
1,0,0,0,7,118,97,108,117,101,95,
95,0,8,30,0,0,0,5,0,0,0,
10,235,4,0,0,6,116,0,0,0,20,
37,67,111,108,117,109,110,77,97,112,69,
120,112,114,101,115,115,105,111,110,1,92,
0,0,0,90,0,0,0,3,0,0,0,
1,93,0,0,0,91,0,0,0,9,117,
0,0,0,2,0,0,0,1,138,255,255,
255,141,255,255,255,5,0,0,0,10,52,
5,0,0,6,119,0,0,0,20,37,67,
111,108,117,109,110,77,97,112,69,120,112,
114,101,115,115,105,111,110,1,94,0,0,
0,90,0,0,0,5,0,0,0,1,95,
0,0,0,91,0,0,0,9,120,0,0,
0,5,0,0,0,1,135,255,255,255,141,
255,255,255,5,0,0,0,10,47,6,0,
0,6,122,0,0,0,10,37,65,108,105,
97,115,76,105,115,116,1,96,0,0,0,
90,0,0,0,4,0,0,0,1,97,0,
0,0,91,0,0,0,9,123,0,0,0,
4,0,0,0,1,132,255,255,255,141,255,
255,255,5,0,0,0,10,196,5,0,0,
6,125,0,0,0,10,37,65,108,105,97,
115,76,105,115,116,1,98,0,0,0,90,
0,0,0,7,0,0,0,1,99,0,0,
0,91,0,0,0,9,126,0,0,0,3,
0,0,0,1,129,255,255,255,141,255,255,
255,5,0,0,0,10,228,6,0,0,6,
128,0,0,0,10,37,65,108,105,97,115,
76,105,115,116,1,100,0,0,0,90,0,
0,0,6,0,0,0,1,101,0,0,0,
91,0,0,0,9,129,0,0,0,2,0,
0,0,1,126,255,255,255,141,255,255,255,
5,0,0,0,10,135,6,0,0,6,131,
0,0,0,10,37,65,108,105,97,115,76,
105,115,116,1,102,0,0,0,90,0,0,
0,1,0,0,0,1,103,0,0,0,91,
0,0,0,9,132,0,0,0,3,0,0,
0,1,123,255,255,255,141,255,255,255,5,
0,0,0,10,168,4,0,0,6,134,0,
0,0,20,37,67,111,108,117,109,110,77,
97,112,69,120,112,114,101,115,115,105,111,
110,1,104,0,0,0,88,0,0,0,11,
0,0,0,9,135,0,0,0,0,1,105,
0,0,0,88,0,0,0,7,0,0,0,
9,135,0,0,0,0,1,106,0,0,0,
88,0,0,0,2,0,0,0,9,135,0,
0,0,0,1,107,0,0,0,88,0,0,
0,8,0,0,0,9,135,0,0,0,0,
1,108,0,0,0,88,0,0,0,1,0,
0,0,9,136,0,0,0,0,1,109,0,
0,0,88,0,0,0,5,0,0,0,9,
136,0,0,0,0,1,111,0,0,0,88,
0,0,0,9,0,0,0,9,137,0,0,
0,0,5,112,0,0,0,13,84,111,111,
108,115,46,67,83,121,109,98,111,108,4,
0,0,0,9,109,95,115,121,109,116,121,
112,101,8,109,95,100,111,108,108,97,114,
3,112,111,115,11,84,79,75,69,78,43,
109,95,115,116,114,4,2,0,1,21,84,
111,111,108,115,46,67,83,121,109,98,111,
108,43,83,121,109,84,121,112,101,30,0,
0,0,8,30,0,0,0,1,118,255,255,
255,141,255,255,255,1,0,0,0,10,0,
0,0,0,9,4,0,0,0,1,113,0,
0,0,112,0,0,0,1,116,255,255,255,
141,255,255,255,2,0,0,0,10,0,0,
0,0,9,14,0,0,0,1,114,0,0,
0,112,0,0,0,1,114,255,255,255,141,
255,255,255,3,0,0,0,10,0,0,0,
0,9,6,0,0,0,1,117,0,0,0,
112,0,0,0,1,112,255,255,255,141,255,
255,255,3,0,0,0,10,0,0,0,0,
9,5,0,0,0,1,120,0,0,0,112,
0,0,0,1,110,255,255,255,141,255,255,
255,3,0,0,0,10,0,0,0,0,9,
11,0,0,0,1,123,0,0,0,112,0,
0,0,1,108,255,255,255,141,255,255,255,
3,0,0,0,10,0,0,0,0,9,12,
0,0,0,1,126,0,0,0,112,0,0,
0,1,106,255,255,255,141,255,255,255,3,
0,0,0,10,0,0,0,0,9,8,0,
0,0,1,129,0,0,0,112,0,0,0,
1,104,255,255,255,141,255,255,255,3,0,
0,0,10,0,0,0,0,9,9,0,0,
0,1,132,0,0,0,112,0,0,0,1,
102,255,255,255,141,255,255,255,3,0,0,
0,10,0,0,0,0,9,16,0,0,0,
1,135,0,0,0,112,0,0,0,1,100,
255,255,255,141,255,255,255,2,0,0,0,
10,0,0,0,0,9,13,0,0,0,1,
136,0,0,0,112,0,0,0,1,98,255,
255,255,141,255,255,255,1,0,0,0,10,
0,0,0,0,9,10,0,0,0,1,137,
0,0,0,112,0,0,0,1,96,255,255,
255,141,255,255,255,1,0,0,0,10,0,
0,0,0,9,15,0,0,0,11,0,1,
0,0,0,255,255,255,255,1,0,0,0,
0,0,0,0,4,1,0,0,0,28,83,
121,115,116,101,109,46,67,111,108,108,101,
99,116,105,111,110,115,46,72,97,115,104,
116,97,98,108,101,7,0,0,0,10,76,
111,97,100,70,97,99,116,111,114,7,86,
101,114,115,105,111,110,8,67,111,109,112,
97,114,101,114,16,72,97,115,104,67,111,
100,101,80,114,111,118,105,100,101,114,8,
72,97,115,104,83,105,122,101,4,75,101,
121,115,6,86,97,108,117,101,115,0,0,
3,3,0,5,5,11,8,28,83,121,115,
116,101,109,46,67,111,108,108,101,99,116,
105,111,110,115,46,73,67,111,109,112,97,
114,101,114,36,83,121,115,116,101,109,46,
67,111,108,108,101,99,116,105,111,110,115,
46,73,72,97,115,104,67,111,100,101,80,
114,111,118,105,100,101,114,8,236,81,56,
63,0,0,0,0,10,10,11,0,0,0,
9,2,0,0,0,9,3,0,0,0,16,
2,0,0,0,0,0,0,0,16,3,0,
0,0,0,0,0,0,11,0,1,0,0,
0,255,255,255,255,1,0,0,0,0,0,
0,0,4,1,0,0,0,14,83,121,115,
116,101,109,46,66,111,111,108,101,97,110,
1,0,0,0,7,109,95,118,97,108,117,
101,0,1,1,11,0};
new Sfactory(this,"ColumnMapExpression",new SCreator(ColumnMapExpression_factory));
new Sfactory(this,"ColumnMapExpression_1",new SCreator(ColumnMapExpression_1_factory));
new Sfactory(this,"ColumnMapExpression_3",new SCreator(ColumnMapExpression_3_factory));
new Sfactory(this,"ColumnMapExpression_2",new SCreator(ColumnMapExpression_2_factory));
new Sfactory(this,"AliasList_3",new SCreator(AliasList_3_factory));
new Sfactory(this,"AliasList_4",new SCreator(AliasList_4_factory));
new Sfactory(this,"AliasList_1",new SCreator(AliasList_1_factory));
new Sfactory(this,"AliasList_2",new SCreator(AliasList_2_factory));
new Sfactory(this,"AliasList",new SCreator(AliasList_factory));
new Sfactory(this,"error",new SCreator(error_factory));
}
public static object ColumnMapExpression_factory(Parser yyp) { return new ColumnMapExpression(yyp); }
public static object ColumnMapExpression_1_factory(Parser yyp) { return new ColumnMapExpression_1(yyp); }
public static object ColumnMapExpression_3_factory(Parser yyp) { return new ColumnMapExpression_3(yyp); }
public static object ColumnMapExpression_2_factory(Parser yyp) { return new ColumnMapExpression_2(yyp); }
public static object AliasList_3_factory(Parser yyp) { return new AliasList_3(yyp); }
public static object AliasList_4_factory(Parser yyp) { return new AliasList_4(yyp); }
public static object AliasList_1_factory(Parser yyp) { return new AliasList_1(yyp); }
public static object AliasList_2_factory(Parser yyp) { return new AliasList_2(yyp); }
public static object AliasList_factory(Parser yyp) { return new AliasList(yyp); }
public static object error_factory(Parser yyp) { return new error(yyp); }
}
public class syntax: Parser {
public syntax():base(new yysyntax(),new tokens()) {}
public syntax(Symbols syms):base(syms,new tokens()) {}
public syntax(Symbols syms,ErrorHandler erh):base(syms,new tokens(erh)) {}
}
}
@@ -0,0 +1,5 @@
# Generate CSharp lexers and parsers
```
# Run on Windows. Be sure to commit changes in generated files.
python tools\py\gen_cs_grammar.py --sources src\DataStreamSuite\DataStreamGrammar
```
+2 -3
View File
@@ -3,8 +3,7 @@
<Import Project="..\Directory.Build.props" />
<PropertyGroup>
<LexerGeneratorExe>$(Externals)\bin\cstools\lg.exe</LexerGeneratorExe>
<ParserGeneratorExe>$(Externals)\bin\cstools\pg.exe</ParserGeneratorExe>
<DataStreamGrammarDir>$(SparkRoot)\src\DataStreamSuite\DataStreamGrammar</DataStreamGrammarDir>
</PropertyGroup>
</Project>
@@ -1,45 +0,0 @@
<Project>
<Target
Name="GenerateLexer"
AfterTargets="GetAssemblyVersion"
Condition="'@(Lexer)'!=''"
Inputs="$(Externals)\bin\cstools\lg.exe;%(Lexer.Identity)"
Outputs="%(Lexer.Identity).cs">
<Message
Importance="High"
Text="Generating %(Lexer.FileName).cs" />
<PropertyGroup>
<LexerGeneratorCmd>$(LexerGeneratorExe) %(Lexer.Identity)</LexerGeneratorCmd>
</PropertyGroup>
<Exec Command="$(LexerGeneratorCmd)" />
</Target>
<Target
Name="GenerateParser"
AfterTargets="GetAssemblyVersion"
Condition="'@(Parser)'!=''"
Inputs="$(Externals)\bin\cstools\lg.exe;%(Parser.Identity)"
Outputs="%(Parser.Identity).cs">
<Message
Importance="High"
Text="Generating %(Parser.FileName).cs" />
<PropertyGroup>
<ParserGeneratorCmd>$(ParserGeneratorExe) %(Parser.Identity)</ParserGeneratorCmd>
</PropertyGroup>
<Exec Command="$(ParserGeneratorCmd)" />
</Target>
<Target
Name="CleanLexers"
AfterTargets="Clean">
<Delete Files="%(Lexer.Identity).cs" />
</Target>
<Target
Name="CleanParsers"
AfterTargets="Clean">
<Delete Files="%(Parser.Identity).cs" />
</Target>
</Project>
+18 -1
View File
@@ -235,4 +235,21 @@ def create_dir(path, overwrite_if_exists=False):
def copy(src, dest, verbose=True):
if verbose:
print(f"copy file '{src}' -> '{dest}'")
shutil.copy(src, dest)
def find_files(src: Path, suffix: str):
dest = []
def add_files(src: Path):
if src.is_file():
return [src] if src.name.endswith(suffix) else []
if src.is_dir():
for c in src.iterdir():
if c.is_file():
if c.name.endswith(suffix):
dest.append(c)
elif c.is_dir():
add_files(c)
add_files(src)
return dest
+95
View File
@@ -0,0 +1,95 @@
import argparse
import os
import subprocess
import sys
from typing import Optional
from core.file_utils import SparkPaths, find_files
from pathlib import Path
def _get_arg_parser():
parser = argparse.ArgumentParser(
description='Generates csharp lexers (lexer.cs) and parsers (parser.cs)'
)
parser.add_argument(
'--sources',
nargs='+',
help='The source files for which to generate cs',
)
parser.add_argument(
'--clean',
action='store_true',
help='Delete existing lexer.cs and parser.cs files in --out-dir',
)
parser.set_defaults(clean=False)
return parser
def _generate_code(src: Path, generator_exe: Path):
if not src.exists():
raise ValueError(f"Source file '{src}' does not exist")
if not src.is_file():
raise ValueError(f"Source file '{src}' is not a file")
generator_cmd_parts = [str(generator_exe), str(src)]
generator_cmd = ' '.join(generator_cmd_parts)
subprocess.run(generator_cmd, shell=True)
def generate_lexers(src_paths: list[Path]):
lexers = [f for sp in src_paths for f in find_files(sp, '.lexer')]
exe = SparkPaths.externals().joinpath(
'windows',
'bin',
'cstools',
'lg.exe',
)
for src_file in lexers:
_generate_code(src_file, exe)
def generate_parsers(src_paths: list[Path]):
parsers = [f for sp in src_paths for f in find_files(sp, '.parser')]
exe = SparkPaths.externals().joinpath(
'windows',
'bin',
'cstools',
'pg.exe',
)
for src_file in parsers:
if Path().absolute() != src_file.parent.absolute():
os.chdir(src_file.parent.absolute())
_generate_code(src_file, exe)
def clean_lexers(src_paths: list[Path]):
cs_lexers = [f for sp in src_paths for f in find_files(sp, '.lexer.cs')]
for cs_lexer in cs_lexers:
os.remove(cs_lexer)
def clean_parsers(src_paths: list[Path]):
cs_parsers = [f for sp in src_paths for f in find_files(sp, '.parser.cs')]
for cs_parser in cs_parsers:
os.remove(cs_parser)
def _main():
if sys.platform != 'win32':
raise ValueError('Only supported on Windows')
parser = _get_arg_parser()
args = parser.parse_args()
if args.sources is None:
print('No sources specified')
exit(1)
sources = [Path(s).absolute() for s in args.sources]
if args.clean:
clean_lexers(sources)
clean_parsers(sources)
return
generate_lexers(sources)
generate_parsers(sources)
if __name__ == '__main__':
_main()