Skip to content

Commit 5a7d46c

Browse files
[WIP] Improved G4 and process TerminalElement rules
1 parent 76ba227 commit 5a7d46c

186 files changed

Lines changed: 3296 additions & 821 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Resources/kebnf.g4

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ grammar kebnf;
55
specification : (NL)* rule_definition+ EOF ;
66

77
rule_definition
8-
: name=ID (params=parameter_list)? (COLON target_ast=ID)? ASSIGN rule_body=alternatives SEMICOLON? NL+
8+
: name=UPPER_ID (params=parameter_list)? (COLON target_ast=UPPER_ID)? ASSIGN rule_body=alternatives SEMICOLON? NL+
99
;
1010

1111
parameter_list
@@ -28,6 +28,7 @@ element
2828
| group
2929
| terminal
3030
| non_terminal
31+
| value_literal
3132
;
3233

3334
assignment
@@ -51,18 +52,19 @@ group
5152
;
5253

5354
terminal
54-
: val=value_literal (suffix=suffix_op)?
55+
: val=SINGLE_QUOTED_STRING (suffix=suffix_op)?
5556
;
5657

5758
non_terminal
58-
: name=ID (suffix=suffix_op)?
59+
: name=UPPER_ID (suffix=suffix_op)?
5960
;
6061

6162
element_core
6263
: cross_reference
6364
| group
6465
| terminal
6566
| non_terminal
67+
| value_literal
6668
;
6769

6870
dotted_id
@@ -71,7 +73,7 @@ dotted_id
7173

7274
suffix_op : '*' | '+' | '?' ;
7375

74-
value_literal : ID | 'true' | 'false' | 'this' | INT | STRING | '[QualifiedName]';
76+
value_literal : ID | 'true' | 'false' | 'this' | INT | STRING | '[QualifiedName]' | SINGLE_QUOTED_STRING;
7577

7678
// Lexer
7779
ASSIGN : '::=' | '=' ;
@@ -90,7 +92,9 @@ RBRACE : '}' ;
9092
DOT : '.' ;
9193
TILDE : '~' ;
9294

95+
UPPER_ID : [A-Z] [a-zA-Z0-9_]* ;
9396
ID : [a-zA-Z_][a-zA-Z0-9_]* ;
97+
SINGLE_QUOTED_STRING : '\'' (~['\\] | '\\' .)* '\'' ;
9498
INT : [0-9]+ ;
9599
STRING : '\'' ( ~['\\] | '\\' . )* '\'' ;
96100

SysML2.NET.CodeGenerator/Generators/UmlHandleBarsGenerators/UmlCoreTextualNotationBuilderGenerator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ namespace SysML2.NET.CodeGenerator.Generators.UmlHandleBarsGenerators
2727

2828
using SysML2.NET.CodeGenerator.Extensions;
2929
using SysML2.NET.CodeGenerator.Grammar.Model;
30+
using SysML2.NET.CodeGenerator.HandleBarHelpers;
3031

3132
using uml4net.Extensions;
3233
using uml4net.HandleBars;
@@ -57,6 +58,7 @@ protected override void RegisterHelpers()
5758
{
5859
NamedElementHelper.RegisterNamedElementHelper(this.Handlebars);
5960
this.Handlebars.RegisterStringHelper();
61+
this.Handlebars.RegisterRulesHelper();
6062
}
6163

6264
/// <summary>
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
token literal names:
2+
null
3+
'*'
4+
'+'
5+
'?'
6+
'true'
7+
'false'
8+
'this'
9+
'[QualifiedName]'
10+
null
11+
'+='
12+
'?='
13+
'|'
14+
':'
15+
';'
16+
','
17+
'('
18+
')'
19+
'['
20+
']'
21+
'{'
22+
'}'
23+
'.'
24+
'~'
25+
null
26+
null
27+
null
28+
null
29+
null
30+
null
31+
null
32+
null
33+
null
34+
35+
token symbolic names:
36+
null
37+
null
38+
null
39+
null
40+
null
41+
null
42+
null
43+
null
44+
ASSIGN
45+
ADD_ASSIGN
46+
BOOL_ASSIGN
47+
PIPE
48+
COLON
49+
SEMICOLON
50+
COMMA
51+
LPAREN
52+
RPAREN
53+
LBRACK
54+
RBRACK
55+
LBRACE
56+
RBRACE
57+
DOT
58+
TILDE
59+
UPPER_ID
60+
ID
61+
SINGLE_QUOTED_STRING
62+
INT
63+
STRING
64+
COMMENT
65+
WS
66+
CONTINUATION
67+
NL
68+
69+
rule names:
70+
specification
71+
rule_definition
72+
parameter_list
73+
alternatives
74+
alternative
75+
element
76+
assignment
77+
non_parsing_assignment
78+
non_parsing_empty
79+
cross_reference
80+
group
81+
terminal
82+
non_terminal
83+
element_core
84+
dotted_id
85+
suffix_op
86+
value_literal
87+
88+
89+
atn:
90+
[4, 1, 31, 154, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 1, 0, 5, 0, 36, 8, 0, 10, 0, 12, 0, 39, 9, 0, 1, 0, 4, 0, 42, 8, 0, 11, 0, 12, 0, 43, 1, 0, 1, 0, 1, 1, 1, 1, 3, 1, 50, 8, 1, 1, 1, 1, 1, 3, 1, 54, 8, 1, 1, 1, 1, 1, 1, 1, 3, 1, 59, 8, 1, 1, 1, 4, 1, 62, 8, 1, 11, 1, 12, 1, 63, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 5, 3, 75, 8, 3, 10, 3, 12, 3, 78, 9, 3, 1, 4, 5, 4, 81, 8, 4, 10, 4, 12, 4, 84, 9, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 94, 8, 5, 1, 6, 1, 6, 1, 6, 3, 6, 99, 8, 6, 1, 6, 1, 6, 3, 6, 103, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 9, 3, 9, 115, 8, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 125, 8, 10, 1, 11, 1, 11, 3, 11, 129, 8, 11, 1, 12, 1, 12, 3, 12, 133, 8, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 3, 13, 140, 8, 13, 1, 14, 1, 14, 1, 14, 5, 14, 145, 8, 14, 10, 14, 12, 14, 148, 9, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 0, 0, 17, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 0, 4, 1, 0, 8, 10, 1, 0, 8, 9, 1, 0, 1, 3, 2, 0, 4, 7, 24, 27, 162, 0, 37, 1, 0, 0, 0, 2, 47, 1, 0, 0, 0, 4, 65, 1, 0, 0, 0, 6, 71, 1, 0, 0, 0, 8, 82, 1, 0, 0, 0, 10, 93, 1, 0, 0, 0, 12, 95, 1, 0, 0, 0, 14, 104, 1, 0, 0, 0, 16, 110, 1, 0, 0, 0, 18, 114, 1, 0, 0, 0, 20, 120, 1, 0, 0, 0, 22, 126, 1, 0, 0, 0, 24, 130, 1, 0, 0, 0, 26, 139, 1, 0, 0, 0, 28, 141, 1, 0, 0, 0, 30, 149, 1, 0, 0, 0, 32, 151, 1, 0, 0, 0, 34, 36, 5, 31, 0, 0, 35, 34, 1, 0, 0, 0, 36, 39, 1, 0, 0, 0, 37, 35, 1, 0, 0, 0, 37, 38, 1, 0, 0, 0, 38, 41, 1, 0, 0, 0, 39, 37, 1, 0, 0, 0, 40, 42, 3, 2, 1, 0, 41, 40, 1, 0, 0, 0, 42, 43, 1, 0, 0, 0, 43, 41, 1, 0, 0, 0, 43, 44, 1, 0, 0, 0, 44, 45, 1, 0, 0, 0, 45, 46, 5, 0, 0, 1, 46, 1, 1, 0, 0, 0, 47, 49, 5, 23, 0, 0, 48, 50, 3, 4, 2, 0, 49, 48, 1, 0, 0, 0, 49, 50, 1, 0, 0, 0, 50, 53, 1, 0, 0, 0, 51, 52, 5, 12, 0, 0, 52, 54, 5, 23, 0, 0, 53, 51, 1, 0, 0, 0, 53, 54, 1, 0, 0, 0, 54, 55, 1, 0, 0, 0, 55, 56, 5, 8, 0, 0, 56, 58, 3, 6, 3, 0, 57, 59, 5, 13, 0, 0, 58, 57, 1, 0, 0, 0, 58, 59, 1, 0, 0, 0, 59, 61, 1, 0, 0, 0, 60, 62, 5, 31, 0, 0, 61, 60, 1, 0, 0, 0, 62, 63, 1, 0, 0, 0, 63, 61, 1, 0, 0, 0, 63, 64, 1, 0, 0, 0, 64, 3, 1, 0, 0, 0, 65, 66, 5, 15, 0, 0, 66, 67, 5, 24, 0, 0, 67, 68, 5, 12, 0, 0, 68, 69, 5, 24, 0, 0, 69, 70, 5, 16, 0, 0, 70, 5, 1, 0, 0, 0, 71, 76, 3, 8, 4, 0, 72, 73, 5, 11, 0, 0, 73, 75, 3, 8, 4, 0, 74, 72, 1, 0, 0, 0, 75, 78, 1, 0, 0, 0, 76, 74, 1, 0, 0, 0, 76, 77, 1, 0, 0, 0, 77, 7, 1, 0, 0, 0, 78, 76, 1, 0, 0, 0, 79, 81, 3, 10, 5, 0, 80, 79, 1, 0, 0, 0, 81, 84, 1, 0, 0, 0, 82, 80, 1, 0, 0, 0, 82, 83, 1, 0, 0, 0, 83, 9, 1, 0, 0, 0, 84, 82, 1, 0, 0, 0, 85, 94, 3, 12, 6, 0, 86, 94, 3, 14, 7, 0, 87, 94, 3, 16, 8, 0, 88, 94, 3, 18, 9, 0, 89, 94, 3, 20, 10, 0, 90, 94, 3, 22, 11, 0, 91, 94, 3, 24, 12, 0, 92, 94, 3, 32, 16, 0, 93, 85, 1, 0, 0, 0, 93, 86, 1, 0, 0, 0, 93, 87, 1, 0, 0, 0, 93, 88, 1, 0, 0, 0, 93, 89, 1, 0, 0, 0, 93, 90, 1, 0, 0, 0, 93, 91, 1, 0, 0, 0, 93, 92, 1, 0, 0, 0, 94, 11, 1, 0, 0, 0, 95, 96, 3, 28, 14, 0, 96, 98, 7, 0, 0, 0, 97, 99, 5, 22, 0, 0, 98, 97, 1, 0, 0, 0, 98, 99, 1, 0, 0, 0, 99, 100, 1, 0, 0, 0, 100, 102, 3, 26, 13, 0, 101, 103, 3, 30, 15, 0, 102, 101, 1, 0, 0, 0, 102, 103, 1, 0, 0, 0, 103, 13, 1, 0, 0, 0, 104, 105, 5, 19, 0, 0, 105, 106, 3, 28, 14, 0, 106, 107, 7, 1, 0, 0, 107, 108, 3, 32, 16, 0, 108, 109, 5, 20, 0, 0, 109, 15, 1, 0, 0, 0, 110, 111, 5, 19, 0, 0, 111, 112, 5, 20, 0, 0, 112, 17, 1, 0, 0, 0, 113, 115, 5, 22, 0, 0, 114, 113, 1, 0, 0, 0, 114, 115, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116, 117, 5, 17, 0, 0, 117, 118, 5, 24, 0, 0, 118, 119, 5, 18, 0, 0, 119, 19, 1, 0, 0, 0, 120, 121, 5, 15, 0, 0, 121, 122, 3, 6, 3, 0, 122, 124, 5, 16, 0, 0, 123, 125, 3, 30, 15, 0, 124, 123, 1, 0, 0, 0, 124, 125, 1, 0, 0, 0, 125, 21, 1, 0, 0, 0, 126, 128, 5, 25, 0, 0, 127, 129, 3, 30, 15, 0, 128, 127, 1, 0, 0, 0, 128, 129, 1, 0, 0, 0, 129, 23, 1, 0, 0, 0, 130, 132, 5, 23, 0, 0, 131, 133, 3, 30, 15, 0, 132, 131, 1, 0, 0, 0, 132, 133, 1, 0, 0, 0, 133, 25, 1, 0, 0, 0, 134, 140, 3, 18, 9, 0, 135, 140, 3, 20, 10, 0, 136, 140, 3, 22, 11, 0, 137, 140, 3, 24, 12, 0, 138, 140, 3, 32, 16, 0, 139, 134, 1, 0, 0, 0, 139, 135, 1, 0, 0, 0, 139, 136, 1, 0, 0, 0, 139, 137, 1, 0, 0, 0, 139, 138, 1, 0, 0, 0, 140, 27, 1, 0, 0, 0, 141, 146, 5, 24, 0, 0, 142, 143, 5, 21, 0, 0, 143, 145, 5, 24, 0, 0, 144, 142, 1, 0, 0, 0, 145, 148, 1, 0, 0, 0, 146, 144, 1, 0, 0, 0, 146, 147, 1, 0, 0, 0, 147, 29, 1, 0, 0, 0, 148, 146, 1, 0, 0, 0, 149, 150, 7, 2, 0, 0, 150, 31, 1, 0, 0, 0, 151, 152, 7, 3, 0, 0, 152, 33, 1, 0, 0, 0, 17, 37, 43, 49, 53, 58, 63, 76, 82, 93, 98, 102, 114, 124, 128, 132, 139, 146]

SysML2.NET.CodeGenerator/Grammar/AutoGenGrammar/kebnf.tokens renamed to SysML2.NET.CodeGenerator/Grammar/AutoGenGrammar/SysML2/NET/CodeGenerator/Grammar/kebnf.tokens

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ LBRACE=19
2020
RBRACE=20
2121
DOT=21
2222
TILDE=22
23-
ID=23
24-
INT=24
25-
STRING=25
26-
COMMENT=26
27-
WS=27
28-
CONTINUATION=28
29-
NL=29
23+
UPPER_ID=23
24+
ID=24
25+
SINGLE_QUOTED_STRING=25
26+
INT=26
27+
STRING=27
28+
COMMENT=28
29+
WS=29
30+
CONTINUATION=30
31+
NL=31
3032
'*'=1
3133
'+'=2
3234
'?'=3

SysML2.NET.CodeGenerator/Grammar/AutoGenGrammar/kebnfBaseListener.cs renamed to SysML2.NET.CodeGenerator/Grammar/AutoGenGrammar/SysML2/NET/CodeGenerator/Grammar/kebnfBaseListener.cs

File renamed without changes.

SysML2.NET.CodeGenerator/Grammar/AutoGenGrammar/kebnfBaseVisitor.cs renamed to SysML2.NET.CodeGenerator/Grammar/AutoGenGrammar/SysML2/NET/CodeGenerator/Grammar/kebnfBaseVisitor.cs

File renamed without changes.
Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by a tool.
4+
// ANTLR Version: 4.13.2
5+
//
6+
// Changes to this file may cause incorrect behavior and will be lost if
7+
// the code is regenerated.
8+
// </auto-generated>
9+
//------------------------------------------------------------------------------
10+
11+
// Generated from C:/CODE/SysML2.NET/Resources/kebnf.g4 by ANTLR 4.13.2
12+
13+
// Unreachable code detected
14+
#pragma warning disable 0162
15+
// The variable '...' is assigned but its value is never used
16+
#pragma warning disable 0219
17+
// Missing XML comment for publicly visible type or member '...'
18+
#pragma warning disable 1591
19+
// Ambiguous reference in cref attribute
20+
#pragma warning disable 419
21+
22+
namespace SysML2.NET.CodeGenerator.Grammar {
23+
using System;
24+
using System.IO;
25+
using System.Text;
26+
using Antlr4.Runtime;
27+
using Antlr4.Runtime.Atn;
28+
using Antlr4.Runtime.Misc;
29+
using DFA = Antlr4.Runtime.Dfa.DFA;
30+
31+
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.2")]
32+
[System.CLSCompliant(false)]
33+
public partial class kebnfLexer : Lexer {
34+
protected static DFA[] decisionToDFA;
35+
protected static PredictionContextCache sharedContextCache = new PredictionContextCache();
36+
public const int
37+
T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, ASSIGN=8, ADD_ASSIGN=9,
38+
BOOL_ASSIGN=10, PIPE=11, COLON=12, SEMICOLON=13, COMMA=14, LPAREN=15,
39+
RPAREN=16, LBRACK=17, RBRACK=18, LBRACE=19, RBRACE=20, DOT=21, TILDE=22,
40+
UPPER_ID=23, ID=24, SINGLE_QUOTED_STRING=25, INT=26, STRING=27, COMMENT=28,
41+
WS=29, CONTINUATION=30, NL=31;
42+
public static string[] channelNames = {
43+
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
44+
};
45+
46+
public static string[] modeNames = {
47+
"DEFAULT_MODE"
48+
};
49+
50+
public static readonly string[] ruleNames = {
51+
"T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "ASSIGN", "ADD_ASSIGN",
52+
"BOOL_ASSIGN", "PIPE", "COLON", "SEMICOLON", "COMMA", "LPAREN", "RPAREN",
53+
"LBRACK", "RBRACK", "LBRACE", "RBRACE", "DOT", "TILDE", "UPPER_ID", "ID",
54+
"SINGLE_QUOTED_STRING", "INT", "STRING", "COMMENT", "WS", "CONTINUATION",
55+
"NL"
56+
};
57+
58+
59+
public kebnfLexer(ICharStream input)
60+
: this(input, Console.Out, Console.Error) { }
61+
62+
public kebnfLexer(ICharStream input, TextWriter output, TextWriter errorOutput)
63+
: base(input, output, errorOutput)
64+
{
65+
Interpreter = new LexerATNSimulator(this, _ATN, decisionToDFA, sharedContextCache);
66+
}
67+
68+
private static readonly string[] _LiteralNames = {
69+
null, "'*'", "'+'", "'?'", "'true'", "'false'", "'this'", "'[QualifiedName]'",
70+
null, "'+='", "'?='", "'|'", "':'", "';'", "','", "'('", "')'", "'['",
71+
"']'", "'{'", "'}'", "'.'", "'~'"
72+
};
73+
private static readonly string[] _SymbolicNames = {
74+
null, null, null, null, null, null, null, null, "ASSIGN", "ADD_ASSIGN",
75+
"BOOL_ASSIGN", "PIPE", "COLON", "SEMICOLON", "COMMA", "LPAREN", "RPAREN",
76+
"LBRACK", "RBRACK", "LBRACE", "RBRACE", "DOT", "TILDE", "UPPER_ID", "ID",
77+
"SINGLE_QUOTED_STRING", "INT", "STRING", "COMMENT", "WS", "CONTINUATION",
78+
"NL"
79+
};
80+
public static readonly IVocabulary DefaultVocabulary = new Vocabulary(_LiteralNames, _SymbolicNames);
81+
82+
[NotNull]
83+
public override IVocabulary Vocabulary
84+
{
85+
get
86+
{
87+
return DefaultVocabulary;
88+
}
89+
}
90+
91+
public override string GrammarFileName { get { return "kebnf.g4"; } }
92+
93+
public override string[] RuleNames { get { return ruleNames; } }
94+
95+
public override string[] ChannelNames { get { return channelNames; } }
96+
97+
public override string[] ModeNames { get { return modeNames; } }
98+
99+
public override int[] SerializedAtn { get { return _serializedATN; } }
100+
101+
static kebnfLexer() {
102+
decisionToDFA = new DFA[_ATN.NumberOfDecisions];
103+
for (int i = 0; i < _ATN.NumberOfDecisions; i++) {
104+
decisionToDFA[i] = new DFA(_ATN.GetDecisionState(i), i);
105+
}
106+
}
107+
private static int[] _serializedATN = {
108+
4,0,31,212,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,
109+
6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,
110+
7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,
111+
7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,
112+
7,28,2,29,7,29,2,30,7,30,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,3,1,3,1,3,1,
113+
4,1,4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,
114+
1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,3,7,106,8,7,1,8,1,
115+
8,1,8,1,9,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,14,1,14,1,
116+
15,1,15,1,16,1,16,1,17,1,17,1,18,1,18,1,19,1,19,1,20,1,20,1,21,1,21,1,
117+
22,1,22,5,22,140,8,22,10,22,12,22,143,9,22,1,23,1,23,5,23,147,8,23,10,
118+
23,12,23,150,9,23,1,24,1,24,1,24,1,24,5,24,156,8,24,10,24,12,24,159,9,
119+
24,1,24,1,24,1,25,4,25,164,8,25,11,25,12,25,165,1,26,1,26,1,26,1,26,5,
120+
26,172,8,26,10,26,12,26,175,9,26,1,26,1,26,1,27,1,27,1,27,1,27,5,27,183,
121+
8,27,10,27,12,27,186,9,27,1,27,1,27,1,28,4,28,191,8,28,11,28,12,28,192,
122+
1,28,1,28,1,29,3,29,198,8,29,1,29,1,29,4,29,202,8,29,11,29,12,29,203,1,
123+
29,1,29,1,30,3,30,209,8,30,1,30,1,30,0,0,31,1,1,3,2,5,3,7,4,9,5,11,6,13,
124+
7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,
125+
39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,
126+
1,0,7,1,0,65,90,4,0,48,57,65,90,95,95,97,122,3,0,65,90,95,95,97,122,2,
127+
0,39,39,92,92,1,0,48,57,2,0,10,10,13,13,2,0,9,9,32,32,224,0,1,1,0,0,0,
128+
0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,
129+
0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,
130+
25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,
131+
0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,
132+
0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,
133+
1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,1,63,1,0,0,0,3,65,1,0,0,0,5,67,1,0,0,
134+
0,7,69,1,0,0,0,9,74,1,0,0,0,11,80,1,0,0,0,13,85,1,0,0,0,15,105,1,0,0,0,
135+
17,107,1,0,0,0,19,110,1,0,0,0,21,113,1,0,0,0,23,115,1,0,0,0,25,117,1,0,
136+
0,0,27,119,1,0,0,0,29,121,1,0,0,0,31,123,1,0,0,0,33,125,1,0,0,0,35,127,
137+
1,0,0,0,37,129,1,0,0,0,39,131,1,0,0,0,41,133,1,0,0,0,43,135,1,0,0,0,45,
138+
137,1,0,0,0,47,144,1,0,0,0,49,151,1,0,0,0,51,163,1,0,0,0,53,167,1,0,0,
139+
0,55,178,1,0,0,0,57,190,1,0,0,0,59,197,1,0,0,0,61,208,1,0,0,0,63,64,5,
140+
42,0,0,64,2,1,0,0,0,65,66,5,43,0,0,66,4,1,0,0,0,67,68,5,63,0,0,68,6,1,
141+
0,0,0,69,70,5,116,0,0,70,71,5,114,0,0,71,72,5,117,0,0,72,73,5,101,0,0,
142+
73,8,1,0,0,0,74,75,5,102,0,0,75,76,5,97,0,0,76,77,5,108,0,0,77,78,5,115,
143+
0,0,78,79,5,101,0,0,79,10,1,0,0,0,80,81,5,116,0,0,81,82,5,104,0,0,82,83,
144+
5,105,0,0,83,84,5,115,0,0,84,12,1,0,0,0,85,86,5,91,0,0,86,87,5,81,0,0,
145+
87,88,5,117,0,0,88,89,5,97,0,0,89,90,5,108,0,0,90,91,5,105,0,0,91,92,5,
146+
102,0,0,92,93,5,105,0,0,93,94,5,101,0,0,94,95,5,100,0,0,95,96,5,78,0,0,
147+
96,97,5,97,0,0,97,98,5,109,0,0,98,99,5,101,0,0,99,100,5,93,0,0,100,14,
148+
1,0,0,0,101,102,5,58,0,0,102,103,5,58,0,0,103,106,5,61,0,0,104,106,5,61,
149+
0,0,105,101,1,0,0,0,105,104,1,0,0,0,106,16,1,0,0,0,107,108,5,43,0,0,108,
150+
109,5,61,0,0,109,18,1,0,0,0,110,111,5,63,0,0,111,112,5,61,0,0,112,20,1,
151+
0,0,0,113,114,5,124,0,0,114,22,1,0,0,0,115,116,5,58,0,0,116,24,1,0,0,0,
152+
117,118,5,59,0,0,118,26,1,0,0,0,119,120,5,44,0,0,120,28,1,0,0,0,121,122,
153+
5,40,0,0,122,30,1,0,0,0,123,124,5,41,0,0,124,32,1,0,0,0,125,126,5,91,0,
154+
0,126,34,1,0,0,0,127,128,5,93,0,0,128,36,1,0,0,0,129,130,5,123,0,0,130,
155+
38,1,0,0,0,131,132,5,125,0,0,132,40,1,0,0,0,133,134,5,46,0,0,134,42,1,
156+
0,0,0,135,136,5,126,0,0,136,44,1,0,0,0,137,141,7,0,0,0,138,140,7,1,0,0,
157+
139,138,1,0,0,0,140,143,1,0,0,0,141,139,1,0,0,0,141,142,1,0,0,0,142,46,
158+
1,0,0,0,143,141,1,0,0,0,144,148,7,2,0,0,145,147,7,1,0,0,146,145,1,0,0,
159+
0,147,150,1,0,0,0,148,146,1,0,0,0,148,149,1,0,0,0,149,48,1,0,0,0,150,148,
160+
1,0,0,0,151,157,5,39,0,0,152,156,8,3,0,0,153,154,5,92,0,0,154,156,9,0,
161+
0,0,155,152,1,0,0,0,155,153,1,0,0,0,156,159,1,0,0,0,157,155,1,0,0,0,157,
162+
158,1,0,0,0,158,160,1,0,0,0,159,157,1,0,0,0,160,161,5,39,0,0,161,50,1,
163+
0,0,0,162,164,7,4,0,0,163,162,1,0,0,0,164,165,1,0,0,0,165,163,1,0,0,0,
164+
165,166,1,0,0,0,166,52,1,0,0,0,167,173,5,39,0,0,168,172,8,3,0,0,169,170,
165+
5,92,0,0,170,172,9,0,0,0,171,168,1,0,0,0,171,169,1,0,0,0,172,175,1,0,0,
166+
0,173,171,1,0,0,0,173,174,1,0,0,0,174,176,1,0,0,0,175,173,1,0,0,0,176,
167+
177,5,39,0,0,177,54,1,0,0,0,178,179,5,47,0,0,179,180,5,47,0,0,180,184,
168+
1,0,0,0,181,183,8,5,0,0,182,181,1,0,0,0,183,186,1,0,0,0,184,182,1,0,0,
169+
0,184,185,1,0,0,0,185,187,1,0,0,0,186,184,1,0,0,0,187,188,6,27,0,0,188,
170+
56,1,0,0,0,189,191,7,6,0,0,190,189,1,0,0,0,191,192,1,0,0,0,192,190,1,0,
171+
0,0,192,193,1,0,0,0,193,194,1,0,0,0,194,195,6,28,0,0,195,58,1,0,0,0,196,
172+
198,5,13,0,0,197,196,1,0,0,0,197,198,1,0,0,0,198,199,1,0,0,0,199,201,5,
173+
10,0,0,200,202,7,6,0,0,201,200,1,0,0,0,202,203,1,0,0,0,203,201,1,0,0,0,
174+
203,204,1,0,0,0,204,205,1,0,0,0,205,206,6,29,0,0,206,60,1,0,0,0,207,209,
175+
5,13,0,0,208,207,1,0,0,0,208,209,1,0,0,0,209,210,1,0,0,0,210,211,5,10,
176+
0,0,211,62,1,0,0,0,14,0,105,141,148,155,157,165,171,173,184,192,197,203,
177+
208,1,6,0,0
178+
};
179+
180+
public static readonly ATN _ATN =
181+
new ATNDeserializer().Deserialize(_serializedATN);
182+
183+
184+
}
185+
} // namespace SysML2.NET.CodeGenerator.Grammar

0 commit comments

Comments
 (0)