diff --git a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCards.Templating.csproj b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCards.Templating.csproj index 06ff46dcac..5efa74b56f 100644 --- a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCards.Templating.csproj +++ b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCards.Templating.csproj @@ -44,8 +44,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -54,7 +54,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateLexer.cs b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateLexer.cs index 8fbf8ae216..8bd3131383 100644 --- a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateLexer.cs +++ b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateLexer.cs @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// ANTLR Version: 4.8 +// ANTLR Version: 4.11.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ -// Generated from AdaptiveCardsTemplateLexer.g4 by ANTLR 4.8 +// Generated from AdaptiveCardsTemplateLexer.g4 by ANTLR 4.11.1 // Unreachable code detected #pragma warning disable 0162 @@ -27,250 +27,149 @@ using Antlr4.Runtime.Misc; using DFA = Antlr4.Runtime.Dfa.DFA; -[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.8")] +[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.11.1")] [System.CLSCompliant(false)] public partial class AdaptiveCardsTemplateLexer : Lexer { - protected static DFA[] decisionToDFA; - protected static PredictionContextCache sharedContextCache = new PredictionContextCache(); - public const int - COMMA=1, COLON=2, LCB=3, RCB=4, LSB=5, RSB=6, TRUE=7, FALSE=8, NULL=9, - StringDeclOpen=10, NUMBER=11, WS=12, CLOSE=13, TEMPLATEDATA=14, TEMPLATEWHEN=15, - JPATH=16, TEMPLATELITERAL=17, TEMPLATEROOT=18, STRING=19; - public const int - INSIDE=1; - public static string[] channelNames = { - "DEFAULT_TOKEN_CHANNEL", "HIDDEN" - }; + protected static DFA[] decisionToDFA; + protected static PredictionContextCache sharedContextCache = new PredictionContextCache(); + public const int + COMMA=1, COLON=2, LCB=3, RCB=4, LSB=5, RSB=6, TRUE=7, FALSE=8, NULL=9, + StringDeclOpen=10, NUMBER=11, WS=12, CLOSE=13, TEMPLATEDATA=14, TEMPLATEWHEN=15, + JPATH=16, TEMPLATELITERAL=17, TEMPLATEROOT=18, STRING=19; + public const int + INSIDE=1; + public static string[] channelNames = { + "DEFAULT_TOKEN_CHANNEL", "HIDDEN" + }; + + public static string[] modeNames = { + "DEFAULT_MODE", "INSIDE" + }; + + public static readonly string[] ruleNames = { + "COMMA", "COLON", "LCB", "RCB", "LSB", "RSB", "TRUE", "FALSE", "NULL", + "StringDeclOpen", "NUMBER", "INT", "EXP", "WS", "CLOSE", "TEMPLATEDATA", + "TEMPLATEWHEN", "JPATH", "TEMPLATELITERAL", "TEMPLATEROOT", "STRING", + "ESC", "UNICODE", "HEX", "SAFECODEPOINT" + }; + + + public AdaptiveCardsTemplateLexer(ICharStream input) + : this(input, Console.Out, Console.Error) { } + + public AdaptiveCardsTemplateLexer(ICharStream input, TextWriter output, TextWriter errorOutput) + : base(input, output, errorOutput) + { + Interpreter = new LexerATNSimulator(this, _ATN, decisionToDFA, sharedContextCache); + } + + private static readonly string[] _LiteralNames = { + null, "','", "':'", "'{'", "'}'", "'['", "']'", "'true'", "'false'", "'null'", + null, null, null, null, "'$data'", "'$when'" + }; + private static readonly string[] _SymbolicNames = { + null, "COMMA", "COLON", "LCB", "RCB", "LSB", "RSB", "TRUE", "FALSE", "NULL", + "StringDeclOpen", "NUMBER", "WS", "CLOSE", "TEMPLATEDATA", "TEMPLATEWHEN", + "JPATH", "TEMPLATELITERAL", "TEMPLATEROOT", "STRING" + }; + public static readonly IVocabulary DefaultVocabulary = new Vocabulary(_LiteralNames, _SymbolicNames); + + [NotNull] + public override IVocabulary Vocabulary + { + get + { + return DefaultVocabulary; + } + } + + public override string GrammarFileName { get { return "AdaptiveCardsTemplateLexer.g4"; } } + + public override string[] RuleNames { get { return ruleNames; } } + + public override string[] ChannelNames { get { return channelNames; } } + + public override string[] ModeNames { get { return modeNames; } } + + public override int[] SerializedAtn { get { return _serializedATN; } } + + static AdaptiveCardsTemplateLexer() { + decisionToDFA = new DFA[_ATN.NumberOfDecisions]; + for (int i = 0; i < _ATN.NumberOfDecisions; i++) { + decisionToDFA[i] = new DFA(_ATN.GetDecisionState(i), i); + } + } + private static int[] _serializedATN = { + 4,0,19,196,6,-1,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,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,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20, + 2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1, + 3,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8, + 1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,10,3,10,86,8,10,1,10,1,10,1,10,4,10,91,8, + 10,11,10,12,10,92,3,10,95,8,10,1,10,3,10,98,8,10,1,11,1,11,1,11,5,11,103, + 8,11,10,11,12,11,106,9,11,3,11,108,8,11,1,12,1,12,3,12,112,8,12,1,12,1, + 12,1,13,4,13,117,8,13,11,13,12,13,118,1,13,1,13,1,14,1,14,1,14,1,14,1, + 15,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1, + 17,1,17,1,17,1,17,4,17,145,8,17,11,17,12,17,146,1,17,1,17,1,18,1,18,1, + 18,1,18,1,18,5,18,156,8,18,10,18,12,18,159,9,18,1,18,1,18,1,19,1,19,1, + 19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,4,20,175,8,20,11,20,12, + 20,176,1,20,3,20,180,8,20,1,21,1,21,1,21,3,21,185,8,21,1,22,1,22,1,22, + 1,22,1,22,1,22,1,23,1,23,1,24,1,24,1,157,0,25,2,1,4,2,6,3,8,4,10,5,12, + 6,14,7,16,8,18,9,20,10,22,11,24,0,26,0,28,12,30,13,32,14,34,15,36,16,38, + 17,40,18,42,19,44,0,46,0,48,0,50,0,2,0,1,9,1,0,48,57,1,0,49,57,2,0,69, + 69,101,101,2,0,43,43,45,45,3,0,9,10,13,13,32,32,1,0,34,34,8,0,34,34,47, + 47,92,92,98,98,102,102,110,110,114,114,116,116,3,0,48,57,65,70,97,102, + 4,0,0,31,34,34,36,36,92,92,204,0,2,1,0,0,0,0,4,1,0,0,0,0,6,1,0,0,0,0,8, + 1,0,0,0,0,10,1,0,0,0,0,12,1,0,0,0,0,14,1,0,0,0,0,16,1,0,0,0,0,18,1,0,0, + 0,0,20,1,0,0,0,0,22,1,0,0,0,0,28,1,0,0,0,1,30,1,0,0,0,1,32,1,0,0,0,1,34, + 1,0,0,0,1,36,1,0,0,0,1,38,1,0,0,0,1,40,1,0,0,0,1,42,1,0,0,0,2,52,1,0,0, + 0,4,54,1,0,0,0,6,56,1,0,0,0,8,58,1,0,0,0,10,60,1,0,0,0,12,62,1,0,0,0,14, + 64,1,0,0,0,16,69,1,0,0,0,18,75,1,0,0,0,20,80,1,0,0,0,22,85,1,0,0,0,24, + 107,1,0,0,0,26,109,1,0,0,0,28,116,1,0,0,0,30,122,1,0,0,0,32,126,1,0,0, + 0,34,132,1,0,0,0,36,144,1,0,0,0,38,150,1,0,0,0,40,162,1,0,0,0,42,179,1, + 0,0,0,44,181,1,0,0,0,46,186,1,0,0,0,48,192,1,0,0,0,50,194,1,0,0,0,52,53, + 5,44,0,0,53,3,1,0,0,0,54,55,5,58,0,0,55,5,1,0,0,0,56,57,5,123,0,0,57,7, + 1,0,0,0,58,59,5,125,0,0,59,9,1,0,0,0,60,61,5,91,0,0,61,11,1,0,0,0,62,63, + 5,93,0,0,63,13,1,0,0,0,64,65,5,116,0,0,65,66,5,114,0,0,66,67,5,117,0,0, + 67,68,5,101,0,0,68,15,1,0,0,0,69,70,5,102,0,0,70,71,5,97,0,0,71,72,5,108, + 0,0,72,73,5,115,0,0,73,74,5,101,0,0,74,17,1,0,0,0,75,76,5,110,0,0,76,77, + 5,117,0,0,77,78,5,108,0,0,78,79,5,108,0,0,79,19,1,0,0,0,80,81,5,34,0,0, + 81,82,1,0,0,0,82,83,6,9,0,0,83,21,1,0,0,0,84,86,5,45,0,0,85,84,1,0,0,0, + 85,86,1,0,0,0,86,87,1,0,0,0,87,94,3,24,11,0,88,90,5,46,0,0,89,91,7,0,0, + 0,90,89,1,0,0,0,91,92,1,0,0,0,92,90,1,0,0,0,92,93,1,0,0,0,93,95,1,0,0, + 0,94,88,1,0,0,0,94,95,1,0,0,0,95,97,1,0,0,0,96,98,3,26,12,0,97,96,1,0, + 0,0,97,98,1,0,0,0,98,23,1,0,0,0,99,108,5,48,0,0,100,104,7,1,0,0,101,103, + 7,0,0,0,102,101,1,0,0,0,103,106,1,0,0,0,104,102,1,0,0,0,104,105,1,0,0, + 0,105,108,1,0,0,0,106,104,1,0,0,0,107,99,1,0,0,0,107,100,1,0,0,0,108,25, + 1,0,0,0,109,111,7,2,0,0,110,112,7,3,0,0,111,110,1,0,0,0,111,112,1,0,0, + 0,112,113,1,0,0,0,113,114,3,24,11,0,114,27,1,0,0,0,115,117,7,4,0,0,116, + 115,1,0,0,0,117,118,1,0,0,0,118,116,1,0,0,0,118,119,1,0,0,0,119,120,1, + 0,0,0,120,121,6,13,1,0,121,29,1,0,0,0,122,123,5,34,0,0,123,124,1,0,0,0, + 124,125,6,14,2,0,125,31,1,0,0,0,126,127,5,36,0,0,127,128,5,100,0,0,128, + 129,5,97,0,0,129,130,5,116,0,0,130,131,5,97,0,0,131,33,1,0,0,0,132,133, + 5,36,0,0,133,134,5,119,0,0,134,135,5,104,0,0,135,136,5,101,0,0,136,137, + 5,110,0,0,137,35,1,0,0,0,138,139,5,46,0,0,139,145,3,42,20,0,140,141,5, + 91,0,0,141,142,3,24,11,0,142,143,5,93,0,0,143,145,1,0,0,0,144,138,1,0, + 0,0,144,140,1,0,0,0,145,146,1,0,0,0,146,144,1,0,0,0,146,147,1,0,0,0,147, + 148,1,0,0,0,148,149,5,125,0,0,149,37,1,0,0,0,150,151,5,36,0,0,151,152, + 5,123,0,0,152,157,1,0,0,0,153,156,8,5,0,0,154,156,3,44,21,0,155,153,1, + 0,0,0,155,154,1,0,0,0,156,159,1,0,0,0,157,158,1,0,0,0,157,155,1,0,0,0, + 158,160,1,0,0,0,159,157,1,0,0,0,160,161,5,125,0,0,161,39,1,0,0,0,162,163, + 5,36,0,0,163,164,5,123,0,0,164,165,5,36,0,0,165,166,5,114,0,0,166,167, + 5,111,0,0,167,168,5,111,0,0,168,169,5,116,0,0,169,170,1,0,0,0,170,171, + 3,36,17,0,171,41,1,0,0,0,172,175,3,44,21,0,173,175,3,50,24,0,174,172,1, + 0,0,0,174,173,1,0,0,0,175,176,1,0,0,0,176,174,1,0,0,0,176,177,1,0,0,0, + 177,180,1,0,0,0,178,180,5,36,0,0,179,174,1,0,0,0,179,178,1,0,0,0,180,43, + 1,0,0,0,181,184,5,92,0,0,182,185,7,6,0,0,183,185,3,46,22,0,184,182,1,0, + 0,0,184,183,1,0,0,0,185,45,1,0,0,0,186,187,5,117,0,0,187,188,3,48,23,0, + 188,189,3,48,23,0,189,190,3,48,23,0,190,191,3,48,23,0,191,47,1,0,0,0,192, + 193,7,7,0,0,193,49,1,0,0,0,194,195,8,8,0,0,195,51,1,0,0,0,18,0,1,85,92, + 94,97,104,107,111,118,144,146,155,157,174,176,179,184,3,5,1,0,6,0,0,4, + 0,0 + }; + + public static readonly ATN _ATN = + new ATNDeserializer().Deserialize(_serializedATN); - public static string[] modeNames = { - "DEFAULT_MODE", "INSIDE" - }; - public static readonly string[] ruleNames = { - "COMMA", "COLON", "LCB", "RCB", "LSB", "RSB", "TRUE", "FALSE", "NULL", - "StringDeclOpen", "NUMBER", "INT", "EXP", "WS", "CLOSE", "TEMPLATEDATA", - "TEMPLATEWHEN", "JPATH", "TEMPLATELITERAL", "TEMPLATEROOT", "STRING", - "ESC", "UNICODE", "HEX", "SAFECODEPOINT" - }; - - - public AdaptiveCardsTemplateLexer(ICharStream input) - : this(input, Console.Out, Console.Error) { } - - public AdaptiveCardsTemplateLexer(ICharStream input, TextWriter output, TextWriter errorOutput) - : base(input, output, errorOutput) - { - Interpreter = new LexerATNSimulator(this, _ATN, decisionToDFA, sharedContextCache); - } - - private static readonly string[] _LiteralNames = { - null, "','", "':'", "'{'", "'}'", "'['", "']'", "'true'", "'false'", "'null'", - null, null, null, null, "'$data'", "'$when'" - }; - private static readonly string[] _SymbolicNames = { - null, "COMMA", "COLON", "LCB", "RCB", "LSB", "RSB", "TRUE", "FALSE", "NULL", - "StringDeclOpen", "NUMBER", "WS", "CLOSE", "TEMPLATEDATA", "TEMPLATEWHEN", - "JPATH", "TEMPLATELITERAL", "TEMPLATEROOT", "STRING" - }; - public static readonly IVocabulary DefaultVocabulary = new Vocabulary(_LiteralNames, _SymbolicNames); - - [NotNull] - public override IVocabulary Vocabulary - { - get - { - return DefaultVocabulary; - } - } - - public override string GrammarFileName { get { return "AdaptiveCardsTemplateLexer.g4"; } } - - public override string[] RuleNames { get { return ruleNames; } } - - public override string[] ChannelNames { get { return channelNames; } } - - public override string[] ModeNames { get { return modeNames; } } - - public override string SerializedAtn { get { return new string(_serializedATN); } } - - static AdaptiveCardsTemplateLexer() { - decisionToDFA = new DFA[_ATN.NumberOfDecisions]; - for (int i = 0; i < _ATN.NumberOfDecisions; i++) { - decisionToDFA[i] = new DFA(_ATN.GetDecisionState(i), i); - } - } - private static char[] _serializedATN = { - '\x3', '\x608B', '\xA72A', '\x8133', '\xB9ED', '\x417C', '\x3BE7', '\x7786', - '\x5964', '\x2', '\x15', '\xC6', '\b', '\x1', '\b', '\x1', '\x4', '\x2', - '\t', '\x2', '\x4', '\x3', '\t', '\x3', '\x4', '\x4', '\t', '\x4', '\x4', - '\x5', '\t', '\x5', '\x4', '\x6', '\t', '\x6', '\x4', '\a', '\t', '\a', - '\x4', '\b', '\t', '\b', '\x4', '\t', '\t', '\t', '\x4', '\n', '\t', '\n', - '\x4', '\v', '\t', '\v', '\x4', '\f', '\t', '\f', '\x4', '\r', '\t', '\r', - '\x4', '\xE', '\t', '\xE', '\x4', '\xF', '\t', '\xF', '\x4', '\x10', '\t', - '\x10', '\x4', '\x11', '\t', '\x11', '\x4', '\x12', '\t', '\x12', '\x4', - '\x13', '\t', '\x13', '\x4', '\x14', '\t', '\x14', '\x4', '\x15', '\t', - '\x15', '\x4', '\x16', '\t', '\x16', '\x4', '\x17', '\t', '\x17', '\x4', - '\x18', '\t', '\x18', '\x4', '\x19', '\t', '\x19', '\x4', '\x1A', '\t', - '\x1A', '\x3', '\x2', '\x3', '\x2', '\x3', '\x3', '\x3', '\x3', '\x3', - '\x4', '\x3', '\x4', '\x3', '\x5', '\x3', '\x5', '\x3', '\x6', '\x3', - '\x6', '\x3', '\a', '\x3', '\a', '\x3', '\b', '\x3', '\b', '\x3', '\b', - '\x3', '\b', '\x3', '\b', '\x3', '\t', '\x3', '\t', '\x3', '\t', '\x3', - '\t', '\x3', '\t', '\x3', '\t', '\x3', '\n', '\x3', '\n', '\x3', '\n', - '\x3', '\n', '\x3', '\n', '\x3', '\v', '\x3', '\v', '\x3', '\v', '\x3', - '\v', '\x3', '\f', '\x5', '\f', 'X', '\n', '\f', '\x3', '\f', '\x3', '\f', - '\x3', '\f', '\x6', '\f', ']', '\n', '\f', '\r', '\f', '\xE', '\f', '^', - '\x5', '\f', '\x61', '\n', '\f', '\x3', '\f', '\x5', '\f', '\x64', '\n', - '\f', '\x3', '\r', '\x3', '\r', '\x3', '\r', '\a', '\r', 'i', '\n', '\r', - '\f', '\r', '\xE', '\r', 'l', '\v', '\r', '\x5', '\r', 'n', '\n', '\r', - '\x3', '\xE', '\x3', '\xE', '\x5', '\xE', 'r', '\n', '\xE', '\x3', '\xE', - '\x3', '\xE', '\x3', '\xF', '\x6', '\xF', 'w', '\n', '\xF', '\r', '\xF', - '\xE', '\xF', 'x', '\x3', '\xF', '\x3', '\xF', '\x3', '\x10', '\x3', '\x10', - '\x3', '\x10', '\x3', '\x10', '\x3', '\x11', '\x3', '\x11', '\x3', '\x11', - '\x3', '\x11', '\x3', '\x11', '\x3', '\x11', '\x3', '\x12', '\x3', '\x12', - '\x3', '\x12', '\x3', '\x12', '\x3', '\x12', '\x3', '\x12', '\x3', '\x13', - '\x3', '\x13', '\x3', '\x13', '\x3', '\x13', '\x3', '\x13', '\x3', '\x13', - '\x6', '\x13', '\x93', '\n', '\x13', '\r', '\x13', '\xE', '\x13', '\x94', - '\x3', '\x13', '\x3', '\x13', '\x3', '\x14', '\x3', '\x14', '\x3', '\x14', - '\x3', '\x14', '\x3', '\x14', '\a', '\x14', '\x9E', '\n', '\x14', '\f', - '\x14', '\xE', '\x14', '\xA1', '\v', '\x14', '\x3', '\x14', '\x3', '\x14', - '\x3', '\x15', '\x3', '\x15', '\x3', '\x15', '\x3', '\x15', '\x3', '\x15', - '\x3', '\x15', '\x3', '\x15', '\x3', '\x15', '\x3', '\x15', '\x3', '\x15', - '\x3', '\x16', '\x3', '\x16', '\x6', '\x16', '\xB1', '\n', '\x16', '\r', - '\x16', '\xE', '\x16', '\xB2', '\x3', '\x16', '\x5', '\x16', '\xB6', '\n', - '\x16', '\x3', '\x17', '\x3', '\x17', '\x3', '\x17', '\x5', '\x17', '\xBB', - '\n', '\x17', '\x3', '\x18', '\x3', '\x18', '\x3', '\x18', '\x3', '\x18', - '\x3', '\x18', '\x3', '\x18', '\x3', '\x19', '\x3', '\x19', '\x3', '\x1A', - '\x3', '\x1A', '\x3', '\x9F', '\x2', '\x1B', '\x4', '\x3', '\x6', '\x4', - '\b', '\x5', '\n', '\x6', '\f', '\a', '\xE', '\b', '\x10', '\t', '\x12', - '\n', '\x14', '\v', '\x16', '\f', '\x18', '\r', '\x1A', '\x2', '\x1C', - '\x2', '\x1E', '\xE', ' ', '\xF', '\"', '\x10', '$', '\x11', '&', '\x12', - '(', '\x13', '*', '\x14', ',', '\x15', '.', '\x2', '\x30', '\x2', '\x32', - '\x2', '\x34', '\x2', '\x4', '\x2', '\x3', '\v', '\x3', '\x2', '\x32', - ';', '\x3', '\x2', '\x33', ';', '\x4', '\x2', 'G', 'G', 'g', 'g', '\x4', - '\x2', '-', '-', '/', '/', '\x5', '\x2', '\v', '\f', '\xF', '\xF', '\"', - '\"', '\x3', '\x2', '$', '$', '\n', '\x2', '$', '$', '\x31', '\x31', '^', - '^', '\x64', '\x64', 'h', 'h', 'p', 'p', 't', 't', 'v', 'v', '\x5', '\x2', - '\x32', ';', '\x43', 'H', '\x63', 'h', '\x6', '\x2', '\x2', '!', '$', - '$', '&', '&', '^', '^', '\x2', '\xCE', '\x2', '\x4', '\x3', '\x2', '\x2', - '\x2', '\x2', '\x6', '\x3', '\x2', '\x2', '\x2', '\x2', '\b', '\x3', '\x2', - '\x2', '\x2', '\x2', '\n', '\x3', '\x2', '\x2', '\x2', '\x2', '\f', '\x3', - '\x2', '\x2', '\x2', '\x2', '\xE', '\x3', '\x2', '\x2', '\x2', '\x2', - '\x10', '\x3', '\x2', '\x2', '\x2', '\x2', '\x12', '\x3', '\x2', '\x2', - '\x2', '\x2', '\x14', '\x3', '\x2', '\x2', '\x2', '\x2', '\x16', '\x3', - '\x2', '\x2', '\x2', '\x2', '\x18', '\x3', '\x2', '\x2', '\x2', '\x2', - '\x1E', '\x3', '\x2', '\x2', '\x2', '\x3', ' ', '\x3', '\x2', '\x2', '\x2', - '\x3', '\"', '\x3', '\x2', '\x2', '\x2', '\x3', '$', '\x3', '\x2', '\x2', - '\x2', '\x3', '&', '\x3', '\x2', '\x2', '\x2', '\x3', '(', '\x3', '\x2', - '\x2', '\x2', '\x3', '*', '\x3', '\x2', '\x2', '\x2', '\x3', ',', '\x3', - '\x2', '\x2', '\x2', '\x4', '\x36', '\x3', '\x2', '\x2', '\x2', '\x6', - '\x38', '\x3', '\x2', '\x2', '\x2', '\b', ':', '\x3', '\x2', '\x2', '\x2', - '\n', '<', '\x3', '\x2', '\x2', '\x2', '\f', '>', '\x3', '\x2', '\x2', - '\x2', '\xE', '@', '\x3', '\x2', '\x2', '\x2', '\x10', '\x42', '\x3', - '\x2', '\x2', '\x2', '\x12', 'G', '\x3', '\x2', '\x2', '\x2', '\x14', - 'M', '\x3', '\x2', '\x2', '\x2', '\x16', 'R', '\x3', '\x2', '\x2', '\x2', - '\x18', 'W', '\x3', '\x2', '\x2', '\x2', '\x1A', 'm', '\x3', '\x2', '\x2', - '\x2', '\x1C', 'o', '\x3', '\x2', '\x2', '\x2', '\x1E', 'v', '\x3', '\x2', - '\x2', '\x2', ' ', '|', '\x3', '\x2', '\x2', '\x2', '\"', '\x80', '\x3', - '\x2', '\x2', '\x2', '$', '\x86', '\x3', '\x2', '\x2', '\x2', '&', '\x92', - '\x3', '\x2', '\x2', '\x2', '(', '\x98', '\x3', '\x2', '\x2', '\x2', '*', - '\xA4', '\x3', '\x2', '\x2', '\x2', ',', '\xB5', '\x3', '\x2', '\x2', - '\x2', '.', '\xB7', '\x3', '\x2', '\x2', '\x2', '\x30', '\xBC', '\x3', - '\x2', '\x2', '\x2', '\x32', '\xC2', '\x3', '\x2', '\x2', '\x2', '\x34', - '\xC4', '\x3', '\x2', '\x2', '\x2', '\x36', '\x37', '\a', '.', '\x2', - '\x2', '\x37', '\x5', '\x3', '\x2', '\x2', '\x2', '\x38', '\x39', '\a', - '<', '\x2', '\x2', '\x39', '\a', '\x3', '\x2', '\x2', '\x2', ':', ';', - '\a', '}', '\x2', '\x2', ';', '\t', '\x3', '\x2', '\x2', '\x2', '<', '=', - '\a', '\x7F', '\x2', '\x2', '=', '\v', '\x3', '\x2', '\x2', '\x2', '>', - '?', '\a', ']', '\x2', '\x2', '?', '\r', '\x3', '\x2', '\x2', '\x2', '@', - '\x41', '\a', '_', '\x2', '\x2', '\x41', '\xF', '\x3', '\x2', '\x2', '\x2', - '\x42', '\x43', '\a', 'v', '\x2', '\x2', '\x43', '\x44', '\a', 't', '\x2', - '\x2', '\x44', '\x45', '\a', 'w', '\x2', '\x2', '\x45', '\x46', '\a', - 'g', '\x2', '\x2', '\x46', '\x11', '\x3', '\x2', '\x2', '\x2', 'G', 'H', - '\a', 'h', '\x2', '\x2', 'H', 'I', '\a', '\x63', '\x2', '\x2', 'I', 'J', - '\a', 'n', '\x2', '\x2', 'J', 'K', '\a', 'u', '\x2', '\x2', 'K', 'L', - '\a', 'g', '\x2', '\x2', 'L', '\x13', '\x3', '\x2', '\x2', '\x2', 'M', - 'N', '\a', 'p', '\x2', '\x2', 'N', 'O', '\a', 'w', '\x2', '\x2', 'O', - 'P', '\a', 'n', '\x2', '\x2', 'P', 'Q', '\a', 'n', '\x2', '\x2', 'Q', - '\x15', '\x3', '\x2', '\x2', '\x2', 'R', 'S', '\a', '$', '\x2', '\x2', - 'S', 'T', '\x3', '\x2', '\x2', '\x2', 'T', 'U', '\b', '\v', '\x2', '\x2', - 'U', '\x17', '\x3', '\x2', '\x2', '\x2', 'V', 'X', '\a', '/', '\x2', '\x2', - 'W', 'V', '\x3', '\x2', '\x2', '\x2', 'W', 'X', '\x3', '\x2', '\x2', '\x2', - 'X', 'Y', '\x3', '\x2', '\x2', '\x2', 'Y', '`', '\x5', '\x1A', '\r', '\x2', - 'Z', '\\', '\a', '\x30', '\x2', '\x2', '[', ']', '\t', '\x2', '\x2', '\x2', - '\\', '[', '\x3', '\x2', '\x2', '\x2', ']', '^', '\x3', '\x2', '\x2', - '\x2', '^', '\\', '\x3', '\x2', '\x2', '\x2', '^', '_', '\x3', '\x2', - '\x2', '\x2', '_', '\x61', '\x3', '\x2', '\x2', '\x2', '`', 'Z', '\x3', - '\x2', '\x2', '\x2', '`', '\x61', '\x3', '\x2', '\x2', '\x2', '\x61', - '\x63', '\x3', '\x2', '\x2', '\x2', '\x62', '\x64', '\x5', '\x1C', '\xE', - '\x2', '\x63', '\x62', '\x3', '\x2', '\x2', '\x2', '\x63', '\x64', '\x3', - '\x2', '\x2', '\x2', '\x64', '\x19', '\x3', '\x2', '\x2', '\x2', '\x65', - 'n', '\a', '\x32', '\x2', '\x2', '\x66', 'j', '\t', '\x3', '\x2', '\x2', - 'g', 'i', '\t', '\x2', '\x2', '\x2', 'h', 'g', '\x3', '\x2', '\x2', '\x2', - 'i', 'l', '\x3', '\x2', '\x2', '\x2', 'j', 'h', '\x3', '\x2', '\x2', '\x2', - 'j', 'k', '\x3', '\x2', '\x2', '\x2', 'k', 'n', '\x3', '\x2', '\x2', '\x2', - 'l', 'j', '\x3', '\x2', '\x2', '\x2', 'm', '\x65', '\x3', '\x2', '\x2', - '\x2', 'm', '\x66', '\x3', '\x2', '\x2', '\x2', 'n', '\x1B', '\x3', '\x2', - '\x2', '\x2', 'o', 'q', '\t', '\x4', '\x2', '\x2', 'p', 'r', '\t', '\x5', - '\x2', '\x2', 'q', 'p', '\x3', '\x2', '\x2', '\x2', 'q', 'r', '\x3', '\x2', - '\x2', '\x2', 'r', 's', '\x3', '\x2', '\x2', '\x2', 's', 't', '\x5', '\x1A', - '\r', '\x2', 't', '\x1D', '\x3', '\x2', '\x2', '\x2', 'u', 'w', '\t', - '\x6', '\x2', '\x2', 'v', 'u', '\x3', '\x2', '\x2', '\x2', 'w', 'x', '\x3', - '\x2', '\x2', '\x2', 'x', 'v', '\x3', '\x2', '\x2', '\x2', 'x', 'y', '\x3', - '\x2', '\x2', '\x2', 'y', 'z', '\x3', '\x2', '\x2', '\x2', 'z', '{', '\b', - '\xF', '\x3', '\x2', '{', '\x1F', '\x3', '\x2', '\x2', '\x2', '|', '}', - '\a', '$', '\x2', '\x2', '}', '~', '\x3', '\x2', '\x2', '\x2', '~', '\x7F', - '\b', '\x10', '\x4', '\x2', '\x7F', '!', '\x3', '\x2', '\x2', '\x2', '\x80', - '\x81', '\a', '&', '\x2', '\x2', '\x81', '\x82', '\a', '\x66', '\x2', - '\x2', '\x82', '\x83', '\a', '\x63', '\x2', '\x2', '\x83', '\x84', '\a', - 'v', '\x2', '\x2', '\x84', '\x85', '\a', '\x63', '\x2', '\x2', '\x85', - '#', '\x3', '\x2', '\x2', '\x2', '\x86', '\x87', '\a', '&', '\x2', '\x2', - '\x87', '\x88', '\a', 'y', '\x2', '\x2', '\x88', '\x89', '\a', 'j', '\x2', - '\x2', '\x89', '\x8A', '\a', 'g', '\x2', '\x2', '\x8A', '\x8B', '\a', - 'p', '\x2', '\x2', '\x8B', '%', '\x3', '\x2', '\x2', '\x2', '\x8C', '\x8D', - '\a', '\x30', '\x2', '\x2', '\x8D', '\x93', '\x5', ',', '\x16', '\x2', - '\x8E', '\x8F', '\a', ']', '\x2', '\x2', '\x8F', '\x90', '\x5', '\x1A', - '\r', '\x2', '\x90', '\x91', '\a', '_', '\x2', '\x2', '\x91', '\x93', - '\x3', '\x2', '\x2', '\x2', '\x92', '\x8C', '\x3', '\x2', '\x2', '\x2', - '\x92', '\x8E', '\x3', '\x2', '\x2', '\x2', '\x93', '\x94', '\x3', '\x2', - '\x2', '\x2', '\x94', '\x92', '\x3', '\x2', '\x2', '\x2', '\x94', '\x95', - '\x3', '\x2', '\x2', '\x2', '\x95', '\x96', '\x3', '\x2', '\x2', '\x2', - '\x96', '\x97', '\a', '\x7F', '\x2', '\x2', '\x97', '\'', '\x3', '\x2', - '\x2', '\x2', '\x98', '\x99', '\a', '&', '\x2', '\x2', '\x99', '\x9A', - '\a', '}', '\x2', '\x2', '\x9A', '\x9F', '\x3', '\x2', '\x2', '\x2', '\x9B', - '\x9E', '\n', '\a', '\x2', '\x2', '\x9C', '\x9E', '\x5', '.', '\x17', - '\x2', '\x9D', '\x9B', '\x3', '\x2', '\x2', '\x2', '\x9D', '\x9C', '\x3', - '\x2', '\x2', '\x2', '\x9E', '\xA1', '\x3', '\x2', '\x2', '\x2', '\x9F', - '\xA0', '\x3', '\x2', '\x2', '\x2', '\x9F', '\x9D', '\x3', '\x2', '\x2', - '\x2', '\xA0', '\xA2', '\x3', '\x2', '\x2', '\x2', '\xA1', '\x9F', '\x3', - '\x2', '\x2', '\x2', '\xA2', '\xA3', '\a', '\x7F', '\x2', '\x2', '\xA3', - ')', '\x3', '\x2', '\x2', '\x2', '\xA4', '\xA5', '\a', '&', '\x2', '\x2', - '\xA5', '\xA6', '\a', '}', '\x2', '\x2', '\xA6', '\xA7', '\a', '&', '\x2', - '\x2', '\xA7', '\xA8', '\a', 't', '\x2', '\x2', '\xA8', '\xA9', '\a', - 'q', '\x2', '\x2', '\xA9', '\xAA', '\a', 'q', '\x2', '\x2', '\xAA', '\xAB', - '\a', 'v', '\x2', '\x2', '\xAB', '\xAC', '\x3', '\x2', '\x2', '\x2', '\xAC', - '\xAD', '\x5', '&', '\x13', '\x2', '\xAD', '+', '\x3', '\x2', '\x2', '\x2', - '\xAE', '\xB1', '\x5', '.', '\x17', '\x2', '\xAF', '\xB1', '\x5', '\x34', - '\x1A', '\x2', '\xB0', '\xAE', '\x3', '\x2', '\x2', '\x2', '\xB0', '\xAF', - '\x3', '\x2', '\x2', '\x2', '\xB1', '\xB2', '\x3', '\x2', '\x2', '\x2', - '\xB2', '\xB0', '\x3', '\x2', '\x2', '\x2', '\xB2', '\xB3', '\x3', '\x2', - '\x2', '\x2', '\xB3', '\xB6', '\x3', '\x2', '\x2', '\x2', '\xB4', '\xB6', - '\a', '&', '\x2', '\x2', '\xB5', '\xB0', '\x3', '\x2', '\x2', '\x2', '\xB5', - '\xB4', '\x3', '\x2', '\x2', '\x2', '\xB6', '-', '\x3', '\x2', '\x2', - '\x2', '\xB7', '\xBA', '\a', '^', '\x2', '\x2', '\xB8', '\xBB', '\t', - '\b', '\x2', '\x2', '\xB9', '\xBB', '\x5', '\x30', '\x18', '\x2', '\xBA', - '\xB8', '\x3', '\x2', '\x2', '\x2', '\xBA', '\xB9', '\x3', '\x2', '\x2', - '\x2', '\xBB', '/', '\x3', '\x2', '\x2', '\x2', '\xBC', '\xBD', '\a', - 'w', '\x2', '\x2', '\xBD', '\xBE', '\x5', '\x32', '\x19', '\x2', '\xBE', - '\xBF', '\x5', '\x32', '\x19', '\x2', '\xBF', '\xC0', '\x5', '\x32', '\x19', - '\x2', '\xC0', '\xC1', '\x5', '\x32', '\x19', '\x2', '\xC1', '\x31', '\x3', - '\x2', '\x2', '\x2', '\xC2', '\xC3', '\t', '\t', '\x2', '\x2', '\xC3', - '\x33', '\x3', '\x2', '\x2', '\x2', '\xC4', '\xC5', '\n', '\n', '\x2', - '\x2', '\xC5', '\x35', '\x3', '\x2', '\x2', '\x2', '\x14', '\x2', '\x3', - 'W', '^', '`', '\x63', 'j', 'm', 'q', 'x', '\x92', '\x94', '\x9D', '\x9F', - '\xB0', '\xB2', '\xB5', '\xBA', '\x5', '\a', '\x3', '\x2', '\b', '\x2', - '\x2', '\x6', '\x2', '\x2', - }; - - public static readonly ATN _ATN = - new ATNDeserializer().Deserialize(_serializedATN); } diff --git a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateLexer.interp b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateLexer.interp index c3644ceb8b..6e3aa44288 100644 --- a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateLexer.interp +++ b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateLexer.interp @@ -78,4 +78,4 @@ DEFAULT_MODE INSIDE atn: -[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 21, 198, 8, 1, 8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 3, 2, 3, 2, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 3, 11, 3, 12, 5, 12, 88, 10, 12, 3, 12, 3, 12, 3, 12, 6, 12, 93, 10, 12, 13, 12, 14, 12, 94, 5, 12, 97, 10, 12, 3, 12, 5, 12, 100, 10, 12, 3, 13, 3, 13, 3, 13, 7, 13, 105, 10, 13, 12, 13, 14, 13, 108, 11, 13, 5, 13, 110, 10, 13, 3, 14, 3, 14, 5, 14, 114, 10, 14, 3, 14, 3, 14, 3, 15, 6, 15, 119, 10, 15, 13, 15, 14, 15, 120, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 6, 19, 147, 10, 19, 13, 19, 14, 19, 148, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 20, 3, 20, 7, 20, 158, 10, 20, 12, 20, 14, 20, 161, 11, 20, 3, 20, 3, 20, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 22, 3, 22, 6, 22, 177, 10, 22, 13, 22, 14, 22, 178, 3, 22, 5, 22, 182, 10, 22, 3, 23, 3, 23, 3, 23, 5, 23, 187, 10, 23, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 26, 3, 26, 3, 159, 2, 27, 4, 3, 6, 4, 8, 5, 10, 6, 12, 7, 14, 8, 16, 9, 18, 10, 20, 11, 22, 12, 24, 13, 26, 2, 28, 2, 30, 14, 32, 15, 34, 16, 36, 17, 38, 18, 40, 19, 42, 20, 44, 21, 46, 2, 48, 2, 50, 2, 52, 2, 4, 2, 3, 11, 3, 2, 50, 59, 3, 2, 51, 59, 4, 2, 71, 71, 103, 103, 4, 2, 45, 45, 47, 47, 5, 2, 11, 12, 15, 15, 34, 34, 3, 2, 36, 36, 10, 2, 36, 36, 49, 49, 94, 94, 100, 100, 104, 104, 112, 112, 116, 116, 118, 118, 5, 2, 50, 59, 67, 72, 99, 104, 6, 2, 2, 33, 36, 36, 38, 38, 94, 94, 2, 206, 2, 4, 3, 2, 2, 2, 2, 6, 3, 2, 2, 2, 2, 8, 3, 2, 2, 2, 2, 10, 3, 2, 2, 2, 2, 12, 3, 2, 2, 2, 2, 14, 3, 2, 2, 2, 2, 16, 3, 2, 2, 2, 2, 18, 3, 2, 2, 2, 2, 20, 3, 2, 2, 2, 2, 22, 3, 2, 2, 2, 2, 24, 3, 2, 2, 2, 2, 30, 3, 2, 2, 2, 3, 32, 3, 2, 2, 2, 3, 34, 3, 2, 2, 2, 3, 36, 3, 2, 2, 2, 3, 38, 3, 2, 2, 2, 3, 40, 3, 2, 2, 2, 3, 42, 3, 2, 2, 2, 3, 44, 3, 2, 2, 2, 4, 54, 3, 2, 2, 2, 6, 56, 3, 2, 2, 2, 8, 58, 3, 2, 2, 2, 10, 60, 3, 2, 2, 2, 12, 62, 3, 2, 2, 2, 14, 64, 3, 2, 2, 2, 16, 66, 3, 2, 2, 2, 18, 71, 3, 2, 2, 2, 20, 77, 3, 2, 2, 2, 22, 82, 3, 2, 2, 2, 24, 87, 3, 2, 2, 2, 26, 109, 3, 2, 2, 2, 28, 111, 3, 2, 2, 2, 30, 118, 3, 2, 2, 2, 32, 124, 3, 2, 2, 2, 34, 128, 3, 2, 2, 2, 36, 134, 3, 2, 2, 2, 38, 146, 3, 2, 2, 2, 40, 152, 3, 2, 2, 2, 42, 164, 3, 2, 2, 2, 44, 181, 3, 2, 2, 2, 46, 183, 3, 2, 2, 2, 48, 188, 3, 2, 2, 2, 50, 194, 3, 2, 2, 2, 52, 196, 3, 2, 2, 2, 54, 55, 7, 46, 2, 2, 55, 5, 3, 2, 2, 2, 56, 57, 7, 60, 2, 2, 57, 7, 3, 2, 2, 2, 58, 59, 7, 125, 2, 2, 59, 9, 3, 2, 2, 2, 60, 61, 7, 127, 2, 2, 61, 11, 3, 2, 2, 2, 62, 63, 7, 93, 2, 2, 63, 13, 3, 2, 2, 2, 64, 65, 7, 95, 2, 2, 65, 15, 3, 2, 2, 2, 66, 67, 7, 118, 2, 2, 67, 68, 7, 116, 2, 2, 68, 69, 7, 119, 2, 2, 69, 70, 7, 103, 2, 2, 70, 17, 3, 2, 2, 2, 71, 72, 7, 104, 2, 2, 72, 73, 7, 99, 2, 2, 73, 74, 7, 110, 2, 2, 74, 75, 7, 117, 2, 2, 75, 76, 7, 103, 2, 2, 76, 19, 3, 2, 2, 2, 77, 78, 7, 112, 2, 2, 78, 79, 7, 119, 2, 2, 79, 80, 7, 110, 2, 2, 80, 81, 7, 110, 2, 2, 81, 21, 3, 2, 2, 2, 82, 83, 7, 36, 2, 2, 83, 84, 3, 2, 2, 2, 84, 85, 8, 11, 2, 2, 85, 23, 3, 2, 2, 2, 86, 88, 7, 47, 2, 2, 87, 86, 3, 2, 2, 2, 87, 88, 3, 2, 2, 2, 88, 89, 3, 2, 2, 2, 89, 96, 5, 26, 13, 2, 90, 92, 7, 48, 2, 2, 91, 93, 9, 2, 2, 2, 92, 91, 3, 2, 2, 2, 93, 94, 3, 2, 2, 2, 94, 92, 3, 2, 2, 2, 94, 95, 3, 2, 2, 2, 95, 97, 3, 2, 2, 2, 96, 90, 3, 2, 2, 2, 96, 97, 3, 2, 2, 2, 97, 99, 3, 2, 2, 2, 98, 100, 5, 28, 14, 2, 99, 98, 3, 2, 2, 2, 99, 100, 3, 2, 2, 2, 100, 25, 3, 2, 2, 2, 101, 110, 7, 50, 2, 2, 102, 106, 9, 3, 2, 2, 103, 105, 9, 2, 2, 2, 104, 103, 3, 2, 2, 2, 105, 108, 3, 2, 2, 2, 106, 104, 3, 2, 2, 2, 106, 107, 3, 2, 2, 2, 107, 110, 3, 2, 2, 2, 108, 106, 3, 2, 2, 2, 109, 101, 3, 2, 2, 2, 109, 102, 3, 2, 2, 2, 110, 27, 3, 2, 2, 2, 111, 113, 9, 4, 2, 2, 112, 114, 9, 5, 2, 2, 113, 112, 3, 2, 2, 2, 113, 114, 3, 2, 2, 2, 114, 115, 3, 2, 2, 2, 115, 116, 5, 26, 13, 2, 116, 29, 3, 2, 2, 2, 117, 119, 9, 6, 2, 2, 118, 117, 3, 2, 2, 2, 119, 120, 3, 2, 2, 2, 120, 118, 3, 2, 2, 2, 120, 121, 3, 2, 2, 2, 121, 122, 3, 2, 2, 2, 122, 123, 8, 15, 3, 2, 123, 31, 3, 2, 2, 2, 124, 125, 7, 36, 2, 2, 125, 126, 3, 2, 2, 2, 126, 127, 8, 16, 4, 2, 127, 33, 3, 2, 2, 2, 128, 129, 7, 38, 2, 2, 129, 130, 7, 102, 2, 2, 130, 131, 7, 99, 2, 2, 131, 132, 7, 118, 2, 2, 132, 133, 7, 99, 2, 2, 133, 35, 3, 2, 2, 2, 134, 135, 7, 38, 2, 2, 135, 136, 7, 121, 2, 2, 136, 137, 7, 106, 2, 2, 137, 138, 7, 103, 2, 2, 138, 139, 7, 112, 2, 2, 139, 37, 3, 2, 2, 2, 140, 141, 7, 48, 2, 2, 141, 147, 5, 44, 22, 2, 142, 143, 7, 93, 2, 2, 143, 144, 5, 26, 13, 2, 144, 145, 7, 95, 2, 2, 145, 147, 3, 2, 2, 2, 146, 140, 3, 2, 2, 2, 146, 142, 3, 2, 2, 2, 147, 148, 3, 2, 2, 2, 148, 146, 3, 2, 2, 2, 148, 149, 3, 2, 2, 2, 149, 150, 3, 2, 2, 2, 150, 151, 7, 127, 2, 2, 151, 39, 3, 2, 2, 2, 152, 153, 7, 38, 2, 2, 153, 154, 7, 125, 2, 2, 154, 159, 3, 2, 2, 2, 155, 158, 10, 7, 2, 2, 156, 158, 5, 46, 23, 2, 157, 155, 3, 2, 2, 2, 157, 156, 3, 2, 2, 2, 158, 161, 3, 2, 2, 2, 159, 160, 3, 2, 2, 2, 159, 157, 3, 2, 2, 2, 160, 162, 3, 2, 2, 2, 161, 159, 3, 2, 2, 2, 162, 163, 7, 127, 2, 2, 163, 41, 3, 2, 2, 2, 164, 165, 7, 38, 2, 2, 165, 166, 7, 125, 2, 2, 166, 167, 7, 38, 2, 2, 167, 168, 7, 116, 2, 2, 168, 169, 7, 113, 2, 2, 169, 170, 7, 113, 2, 2, 170, 171, 7, 118, 2, 2, 171, 172, 3, 2, 2, 2, 172, 173, 5, 38, 19, 2, 173, 43, 3, 2, 2, 2, 174, 177, 5, 46, 23, 2, 175, 177, 5, 52, 26, 2, 176, 174, 3, 2, 2, 2, 176, 175, 3, 2, 2, 2, 177, 178, 3, 2, 2, 2, 178, 176, 3, 2, 2, 2, 178, 179, 3, 2, 2, 2, 179, 182, 3, 2, 2, 2, 180, 182, 7, 38, 2, 2, 181, 176, 3, 2, 2, 2, 181, 180, 3, 2, 2, 2, 182, 45, 3, 2, 2, 2, 183, 186, 7, 94, 2, 2, 184, 187, 9, 8, 2, 2, 185, 187, 5, 48, 24, 2, 186, 184, 3, 2, 2, 2, 186, 185, 3, 2, 2, 2, 187, 47, 3, 2, 2, 2, 188, 189, 7, 119, 2, 2, 189, 190, 5, 50, 25, 2, 190, 191, 5, 50, 25, 2, 191, 192, 5, 50, 25, 2, 192, 193, 5, 50, 25, 2, 193, 49, 3, 2, 2, 2, 194, 195, 9, 9, 2, 2, 195, 51, 3, 2, 2, 2, 196, 197, 10, 10, 2, 2, 197, 53, 3, 2, 2, 2, 20, 2, 3, 87, 94, 96, 99, 106, 109, 113, 120, 146, 148, 157, 159, 176, 178, 181, 186, 5, 7, 3, 2, 8, 2, 2, 6, 2, 2] \ No newline at end of file +[4, 0, 19, 196, 6, -1, 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, 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, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 1, 0, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 3, 10, 86, 8, 10, 1, 10, 1, 10, 1, 10, 4, 10, 91, 8, 10, 11, 10, 12, 10, 92, 3, 10, 95, 8, 10, 1, 10, 3, 10, 98, 8, 10, 1, 11, 1, 11, 1, 11, 5, 11, 103, 8, 11, 10, 11, 12, 11, 106, 9, 11, 3, 11, 108, 8, 11, 1, 12, 1, 12, 3, 12, 112, 8, 12, 1, 12, 1, 12, 1, 13, 4, 13, 117, 8, 13, 11, 13, 12, 13, 118, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 4, 17, 145, 8, 17, 11, 17, 12, 17, 146, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 156, 8, 18, 10, 18, 12, 18, 159, 9, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 4, 20, 175, 8, 20, 11, 20, 12, 20, 176, 1, 20, 3, 20, 180, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 185, 8, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 24, 1, 24, 1, 157, 0, 25, 2, 1, 4, 2, 6, 3, 8, 4, 10, 5, 12, 6, 14, 7, 16, 8, 18, 9, 20, 10, 22, 11, 24, 0, 26, 0, 28, 12, 30, 13, 32, 14, 34, 15, 36, 16, 38, 17, 40, 18, 42, 19, 44, 0, 46, 0, 48, 0, 50, 0, 2, 0, 1, 9, 1, 0, 48, 57, 1, 0, 49, 57, 2, 0, 69, 69, 101, 101, 2, 0, 43, 43, 45, 45, 3, 0, 9, 10, 13, 13, 32, 32, 1, 0, 34, 34, 8, 0, 34, 34, 47, 47, 92, 92, 98, 98, 102, 102, 110, 110, 114, 114, 116, 116, 3, 0, 48, 57, 65, 70, 97, 102, 4, 0, 0, 31, 34, 34, 36, 36, 92, 92, 204, 0, 2, 1, 0, 0, 0, 0, 4, 1, 0, 0, 0, 0, 6, 1, 0, 0, 0, 0, 8, 1, 0, 0, 0, 0, 10, 1, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 14, 1, 0, 0, 0, 0, 16, 1, 0, 0, 0, 0, 18, 1, 0, 0, 0, 0, 20, 1, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 28, 1, 0, 0, 0, 1, 30, 1, 0, 0, 0, 1, 32, 1, 0, 0, 0, 1, 34, 1, 0, 0, 0, 1, 36, 1, 0, 0, 0, 1, 38, 1, 0, 0, 0, 1, 40, 1, 0, 0, 0, 1, 42, 1, 0, 0, 0, 2, 52, 1, 0, 0, 0, 4, 54, 1, 0, 0, 0, 6, 56, 1, 0, 0, 0, 8, 58, 1, 0, 0, 0, 10, 60, 1, 0, 0, 0, 12, 62, 1, 0, 0, 0, 14, 64, 1, 0, 0, 0, 16, 69, 1, 0, 0, 0, 18, 75, 1, 0, 0, 0, 20, 80, 1, 0, 0, 0, 22, 85, 1, 0, 0, 0, 24, 107, 1, 0, 0, 0, 26, 109, 1, 0, 0, 0, 28, 116, 1, 0, 0, 0, 30, 122, 1, 0, 0, 0, 32, 126, 1, 0, 0, 0, 34, 132, 1, 0, 0, 0, 36, 144, 1, 0, 0, 0, 38, 150, 1, 0, 0, 0, 40, 162, 1, 0, 0, 0, 42, 179, 1, 0, 0, 0, 44, 181, 1, 0, 0, 0, 46, 186, 1, 0, 0, 0, 48, 192, 1, 0, 0, 0, 50, 194, 1, 0, 0, 0, 52, 53, 5, 44, 0, 0, 53, 3, 1, 0, 0, 0, 54, 55, 5, 58, 0, 0, 55, 5, 1, 0, 0, 0, 56, 57, 5, 123, 0, 0, 57, 7, 1, 0, 0, 0, 58, 59, 5, 125, 0, 0, 59, 9, 1, 0, 0, 0, 60, 61, 5, 91, 0, 0, 61, 11, 1, 0, 0, 0, 62, 63, 5, 93, 0, 0, 63, 13, 1, 0, 0, 0, 64, 65, 5, 116, 0, 0, 65, 66, 5, 114, 0, 0, 66, 67, 5, 117, 0, 0, 67, 68, 5, 101, 0, 0, 68, 15, 1, 0, 0, 0, 69, 70, 5, 102, 0, 0, 70, 71, 5, 97, 0, 0, 71, 72, 5, 108, 0, 0, 72, 73, 5, 115, 0, 0, 73, 74, 5, 101, 0, 0, 74, 17, 1, 0, 0, 0, 75, 76, 5, 110, 0, 0, 76, 77, 5, 117, 0, 0, 77, 78, 5, 108, 0, 0, 78, 79, 5, 108, 0, 0, 79, 19, 1, 0, 0, 0, 80, 81, 5, 34, 0, 0, 81, 82, 1, 0, 0, 0, 82, 83, 6, 9, 0, 0, 83, 21, 1, 0, 0, 0, 84, 86, 5, 45, 0, 0, 85, 84, 1, 0, 0, 0, 85, 86, 1, 0, 0, 0, 86, 87, 1, 0, 0, 0, 87, 94, 3, 24, 11, 0, 88, 90, 5, 46, 0, 0, 89, 91, 7, 0, 0, 0, 90, 89, 1, 0, 0, 0, 91, 92, 1, 0, 0, 0, 92, 90, 1, 0, 0, 0, 92, 93, 1, 0, 0, 0, 93, 95, 1, 0, 0, 0, 94, 88, 1, 0, 0, 0, 94, 95, 1, 0, 0, 0, 95, 97, 1, 0, 0, 0, 96, 98, 3, 26, 12, 0, 97, 96, 1, 0, 0, 0, 97, 98, 1, 0, 0, 0, 98, 23, 1, 0, 0, 0, 99, 108, 5, 48, 0, 0, 100, 104, 7, 1, 0, 0, 101, 103, 7, 0, 0, 0, 102, 101, 1, 0, 0, 0, 103, 106, 1, 0, 0, 0, 104, 102, 1, 0, 0, 0, 104, 105, 1, 0, 0, 0, 105, 108, 1, 0, 0, 0, 106, 104, 1, 0, 0, 0, 107, 99, 1, 0, 0, 0, 107, 100, 1, 0, 0, 0, 108, 25, 1, 0, 0, 0, 109, 111, 7, 2, 0, 0, 110, 112, 7, 3, 0, 0, 111, 110, 1, 0, 0, 0, 111, 112, 1, 0, 0, 0, 112, 113, 1, 0, 0, 0, 113, 114, 3, 24, 11, 0, 114, 27, 1, 0, 0, 0, 115, 117, 7, 4, 0, 0, 116, 115, 1, 0, 0, 0, 117, 118, 1, 0, 0, 0, 118, 116, 1, 0, 0, 0, 118, 119, 1, 0, 0, 0, 119, 120, 1, 0, 0, 0, 120, 121, 6, 13, 1, 0, 121, 29, 1, 0, 0, 0, 122, 123, 5, 34, 0, 0, 123, 124, 1, 0, 0, 0, 124, 125, 6, 14, 2, 0, 125, 31, 1, 0, 0, 0, 126, 127, 5, 36, 0, 0, 127, 128, 5, 100, 0, 0, 128, 129, 5, 97, 0, 0, 129, 130, 5, 116, 0, 0, 130, 131, 5, 97, 0, 0, 131, 33, 1, 0, 0, 0, 132, 133, 5, 36, 0, 0, 133, 134, 5, 119, 0, 0, 134, 135, 5, 104, 0, 0, 135, 136, 5, 101, 0, 0, 136, 137, 5, 110, 0, 0, 137, 35, 1, 0, 0, 0, 138, 139, 5, 46, 0, 0, 139, 145, 3, 42, 20, 0, 140, 141, 5, 91, 0, 0, 141, 142, 3, 24, 11, 0, 142, 143, 5, 93, 0, 0, 143, 145, 1, 0, 0, 0, 144, 138, 1, 0, 0, 0, 144, 140, 1, 0, 0, 0, 145, 146, 1, 0, 0, 0, 146, 144, 1, 0, 0, 0, 146, 147, 1, 0, 0, 0, 147, 148, 1, 0, 0, 0, 148, 149, 5, 125, 0, 0, 149, 37, 1, 0, 0, 0, 150, 151, 5, 36, 0, 0, 151, 152, 5, 123, 0, 0, 152, 157, 1, 0, 0, 0, 153, 156, 8, 5, 0, 0, 154, 156, 3, 44, 21, 0, 155, 153, 1, 0, 0, 0, 155, 154, 1, 0, 0, 0, 156, 159, 1, 0, 0, 0, 157, 158, 1, 0, 0, 0, 157, 155, 1, 0, 0, 0, 158, 160, 1, 0, 0, 0, 159, 157, 1, 0, 0, 0, 160, 161, 5, 125, 0, 0, 161, 39, 1, 0, 0, 0, 162, 163, 5, 36, 0, 0, 163, 164, 5, 123, 0, 0, 164, 165, 5, 36, 0, 0, 165, 166, 5, 114, 0, 0, 166, 167, 5, 111, 0, 0, 167, 168, 5, 111, 0, 0, 168, 169, 5, 116, 0, 0, 169, 170, 1, 0, 0, 0, 170, 171, 3, 36, 17, 0, 171, 41, 1, 0, 0, 0, 172, 175, 3, 44, 21, 0, 173, 175, 3, 50, 24, 0, 174, 172, 1, 0, 0, 0, 174, 173, 1, 0, 0, 0, 175, 176, 1, 0, 0, 0, 176, 174, 1, 0, 0, 0, 176, 177, 1, 0, 0, 0, 177, 180, 1, 0, 0, 0, 178, 180, 5, 36, 0, 0, 179, 174, 1, 0, 0, 0, 179, 178, 1, 0, 0, 0, 180, 43, 1, 0, 0, 0, 181, 184, 5, 92, 0, 0, 182, 185, 7, 6, 0, 0, 183, 185, 3, 46, 22, 0, 184, 182, 1, 0, 0, 0, 184, 183, 1, 0, 0, 0, 185, 45, 1, 0, 0, 0, 186, 187, 5, 117, 0, 0, 187, 188, 3, 48, 23, 0, 188, 189, 3, 48, 23, 0, 189, 190, 3, 48, 23, 0, 190, 191, 3, 48, 23, 0, 191, 47, 1, 0, 0, 0, 192, 193, 7, 7, 0, 0, 193, 49, 1, 0, 0, 0, 194, 195, 8, 8, 0, 0, 195, 51, 1, 0, 0, 0, 18, 0, 1, 85, 92, 94, 97, 104, 107, 111, 118, 144, 146, 155, 157, 174, 176, 179, 184, 3, 5, 1, 0, 6, 0, 0, 4, 0, 0] \ No newline at end of file diff --git a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParser.cs b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParser.cs index 2ceb6d43a1..9849388051 100644 --- a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParser.cs +++ b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParser.cs @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// ANTLR Version: 4.8 +// ANTLR Version: 4.11.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ -// Generated from AdaptiveCardsTemplateParser.g4 by ANTLR 4.8 +// Generated from AdaptiveCardsTemplateParser.g4 by ANTLR 4.11.1 // Unreachable code detected #pragma warning disable 0162 @@ -30,924 +30,940 @@ using Antlr4.Runtime.Tree; using DFA = Antlr4.Runtime.Dfa.DFA; -[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.8")] +[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.11.1")] [System.CLSCompliant(false)] public partial class AdaptiveCardsTemplateParser : Parser { - protected static DFA[] decisionToDFA; - protected static PredictionContextCache sharedContextCache = new PredictionContextCache(); - public const int - COMMA=1, COLON=2, LCB=3, RCB=4, LSB=5, RSB=6, TRUE=7, FALSE=8, NULL=9, - StringDeclOpen=10, NUMBER=11, WS=12, CLOSE=13, TEMPLATEDATA=14, TEMPLATEWHEN=15, - JPATH=16, TEMPLATELITERAL=17, TEMPLATEROOT=18, STRING=19; - public const int - RULE_json = 0, RULE_obj = 1, RULE_pair = 2, RULE_array = 3, RULE_value = 4, - RULE_templateString = 5, RULE_templateRoot = 6, RULE_templateExpression = 7; - public static readonly string[] ruleNames = { - "json", "obj", "pair", "array", "value", "templateString", "templateRoot", - "templateExpression" - }; - - private static readonly string[] _LiteralNames = { - null, "','", "':'", "'{'", "'}'", "'['", "']'", "'true'", "'false'", "'null'", - null, null, null, null, "'$data'", "'$when'" - }; - private static readonly string[] _SymbolicNames = { - null, "COMMA", "COLON", "LCB", "RCB", "LSB", "RSB", "TRUE", "FALSE", "NULL", - "StringDeclOpen", "NUMBER", "WS", "CLOSE", "TEMPLATEDATA", "TEMPLATEWHEN", - "JPATH", "TEMPLATELITERAL", "TEMPLATEROOT", "STRING" - }; - public static readonly IVocabulary DefaultVocabulary = new Vocabulary(_LiteralNames, _SymbolicNames); - - [NotNull] - public override IVocabulary Vocabulary - { - get - { - return DefaultVocabulary; - } - } - - public override string GrammarFileName { get { return "AdaptiveCardsTemplateParser.g4"; } } - - public override string[] RuleNames { get { return ruleNames; } } - - public override string SerializedAtn { get { return new string(_serializedATN); } } - - static AdaptiveCardsTemplateParser() { - decisionToDFA = new DFA[_ATN.NumberOfDecisions]; - for (int i = 0; i < _ATN.NumberOfDecisions; i++) { - decisionToDFA[i] = new DFA(_ATN.GetDecisionState(i), i); - } - } - - public AdaptiveCardsTemplateParser(ITokenStream input) : this(input, Console.Out, Console.Error) { } - - public AdaptiveCardsTemplateParser(ITokenStream input, TextWriter output, TextWriter errorOutput) - : base(input, output, errorOutput) - { - Interpreter = new ParserATNSimulator(this, _ATN, decisionToDFA, sharedContextCache); - } - - public partial class JsonContext : ParserRuleContext { - public ValueContext value() { - return GetRuleContext(0); - } - public JsonContext(ParserRuleContext parent, int invokingState) - : base(parent, invokingState) - { - } - public override int RuleIndex { get { return RULE_json; } } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitJson(this); - else return visitor.VisitChildren(this); - } - } - - [RuleVersion(0)] - public JsonContext json() { - JsonContext _localctx = new JsonContext(Context, State); - EnterRule(_localctx, 0, RULE_json); - try { - EnterOuterAlt(_localctx, 1); - { - State = 16; value(); - } - } - catch (RecognitionException re) { - _localctx.exception = re; - ErrorHandler.ReportError(this, re); - ErrorHandler.Recover(this, re); - } - finally { - ExitRule(); - } - return _localctx; - } - - public partial class ObjContext : ParserRuleContext { - public ITerminalNode LCB() { return GetToken(AdaptiveCardsTemplateParser.LCB, 0); } - public PairContext[] pair() { - return GetRuleContexts(); - } - public PairContext pair(int i) { - return GetRuleContext(i); - } - public ITerminalNode RCB() { return GetToken(AdaptiveCardsTemplateParser.RCB, 0); } - public ITerminalNode[] COMMA() { return GetTokens(AdaptiveCardsTemplateParser.COMMA); } - public ITerminalNode COMMA(int i) { - return GetToken(AdaptiveCardsTemplateParser.COMMA, i); - } - public ObjContext(ParserRuleContext parent, int invokingState) - : base(parent, invokingState) - { - } - public override int RuleIndex { get { return RULE_obj; } } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitObj(this); - else return visitor.VisitChildren(this); - } - } - - [RuleVersion(0)] - public ObjContext obj() { - ObjContext _localctx = new ObjContext(Context, State); - EnterRule(_localctx, 2, RULE_obj); - int _la; - try { - State = 31; - ErrorHandler.Sync(this); - switch ( Interpreter.AdaptivePredict(TokenStream,1,Context) ) { - case 1: - EnterOuterAlt(_localctx, 1); - { - State = 18; Match(LCB); - State = 19; pair(); - State = 24; - ErrorHandler.Sync(this); - _la = TokenStream.LA(1); - while (_la==COMMA) { - { - { - State = 20; Match(COMMA); - State = 21; pair(); - } - } - State = 26; - ErrorHandler.Sync(this); - _la = TokenStream.LA(1); - } - State = 27; Match(RCB); - } - break; - case 2: - EnterOuterAlt(_localctx, 2); - { - State = 29; Match(LCB); - State = 30; Match(RCB); - } - break; - } - } - catch (RecognitionException re) { - _localctx.exception = re; - ErrorHandler.ReportError(this, re); - ErrorHandler.Recover(this, re); - } - finally { - ExitRule(); - } - return _localctx; - } - - public partial class PairContext : ParserRuleContext { - public PairContext(ParserRuleContext parent, int invokingState) - : base(parent, invokingState) - { - } - public override int RuleIndex { get { return RULE_pair; } } - - public PairContext() { } - public virtual void CopyFrom(PairContext context) { - base.CopyFrom(context); - } - } - public partial class TemplateWhenContext : PairContext { - public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } - public ITerminalNode TEMPLATEWHEN() { return GetToken(AdaptiveCardsTemplateParser.TEMPLATEWHEN, 0); } - public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } - public ITerminalNode COLON() { return GetToken(AdaptiveCardsTemplateParser.COLON, 0); } - public TemplateExpressionContext templateExpression() { - return GetRuleContext(0); - } - public TemplateWhenContext(PairContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitTemplateWhen(this); - else return visitor.VisitChildren(this); - } - } - public partial class JsonPairContext : PairContext { - public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } - public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } - public ITerminalNode COLON() { return GetToken(AdaptiveCardsTemplateParser.COLON, 0); } - public ValueContext value() { - return GetRuleContext(0); - } - public ITerminalNode[] STRING() { return GetTokens(AdaptiveCardsTemplateParser.STRING); } - public ITerminalNode STRING(int i) { - return GetToken(AdaptiveCardsTemplateParser.STRING, i); - } - public JsonPairContext(PairContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitJsonPair(this); - else return visitor.VisitChildren(this); - } - } - public partial class TemplateDataContext : PairContext { - public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } - public ITerminalNode TEMPLATEDATA() { return GetToken(AdaptiveCardsTemplateParser.TEMPLATEDATA, 0); } - public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } - public ITerminalNode COLON() { return GetToken(AdaptiveCardsTemplateParser.COLON, 0); } - public ValueContext value() { - return GetRuleContext(0); - } - public TemplateDataContext(PairContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitTemplateData(this); - else return visitor.VisitChildren(this); - } - } - public partial class TemplateRootDataContext : PairContext { - public ITerminalNode[] StringDeclOpen() { return GetTokens(AdaptiveCardsTemplateParser.StringDeclOpen); } - public ITerminalNode StringDeclOpen(int i) { - return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, i); - } - public ITerminalNode TEMPLATEDATA() { return GetToken(AdaptiveCardsTemplateParser.TEMPLATEDATA, 0); } - public ITerminalNode[] CLOSE() { return GetTokens(AdaptiveCardsTemplateParser.CLOSE); } - public ITerminalNode CLOSE(int i) { - return GetToken(AdaptiveCardsTemplateParser.CLOSE, i); - } - public ITerminalNode COLON() { return GetToken(AdaptiveCardsTemplateParser.COLON, 0); } - public TemplateRootContext templateRoot() { - return GetRuleContext(0); - } - public TemplateRootDataContext(PairContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitTemplateRootData(this); - else return visitor.VisitChildren(this); - } - } - - [RuleVersion(0)] - public PairContext pair() { - PairContext _localctx = new PairContext(Context, State); - EnterRule(_localctx, 4, RULE_pair); - int _la; - try { - State = 61; - ErrorHandler.Sync(this); - switch ( Interpreter.AdaptivePredict(TokenStream,3,Context) ) { - case 1: - _localctx = new JsonPairContext(_localctx); - EnterOuterAlt(_localctx, 1); - { - State = 33; Match(StringDeclOpen); - State = 37; - ErrorHandler.Sync(this); - _la = TokenStream.LA(1); - while (_la==STRING) { - { - { - State = 34; Match(STRING); - } - } - State = 39; - ErrorHandler.Sync(this); - _la = TokenStream.LA(1); - } - State = 40; Match(CLOSE); - State = 41; Match(COLON); - State = 42; value(); - } - break; - case 2: - _localctx = new TemplateRootDataContext(_localctx); - EnterOuterAlt(_localctx, 2); - { - State = 43; Match(StringDeclOpen); - State = 44; Match(TEMPLATEDATA); - State = 45; Match(CLOSE); - State = 46; Match(COLON); - State = 47; Match(StringDeclOpen); - State = 48; templateRoot(); - State = 49; Match(CLOSE); - } - break; - case 3: - _localctx = new TemplateDataContext(_localctx); - EnterOuterAlt(_localctx, 3); - { - State = 51; Match(StringDeclOpen); - State = 52; Match(TEMPLATEDATA); - State = 53; Match(CLOSE); - State = 54; Match(COLON); - State = 55; value(); - } - break; - case 4: - _localctx = new TemplateWhenContext(_localctx); - EnterOuterAlt(_localctx, 4); - { - State = 56; Match(StringDeclOpen); - State = 57; Match(TEMPLATEWHEN); - State = 58; Match(CLOSE); - State = 59; Match(COLON); - State = 60; templateExpression(); - } - break; - } - } - catch (RecognitionException re) { - _localctx.exception = re; - ErrorHandler.ReportError(this, re); - ErrorHandler.Recover(this, re); - } - finally { - ExitRule(); - } - return _localctx; - } - - public partial class ArrayContext : ParserRuleContext { - public ITerminalNode LSB() { return GetToken(AdaptiveCardsTemplateParser.LSB, 0); } - public ValueContext[] value() { - return GetRuleContexts(); - } - public ValueContext value(int i) { - return GetRuleContext(i); - } - public ITerminalNode RSB() { return GetToken(AdaptiveCardsTemplateParser.RSB, 0); } - public ITerminalNode[] COMMA() { return GetTokens(AdaptiveCardsTemplateParser.COMMA); } - public ITerminalNode COMMA(int i) { - return GetToken(AdaptiveCardsTemplateParser.COMMA, i); - } - public ArrayContext(ParserRuleContext parent, int invokingState) - : base(parent, invokingState) - { - } - public override int RuleIndex { get { return RULE_array; } } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitArray(this); - else return visitor.VisitChildren(this); - } - } - - [RuleVersion(0)] - public ArrayContext array() { - ArrayContext _localctx = new ArrayContext(Context, State); - EnterRule(_localctx, 6, RULE_array); - int _la; - try { - State = 76; - ErrorHandler.Sync(this); - switch ( Interpreter.AdaptivePredict(TokenStream,5,Context) ) { - case 1: - EnterOuterAlt(_localctx, 1); - { - State = 63; Match(LSB); - State = 64; value(); - State = 69; - ErrorHandler.Sync(this); - _la = TokenStream.LA(1); - while (_la==COMMA) { - { - { - State = 65; Match(COMMA); - State = 66; value(); - } - } - State = 71; - ErrorHandler.Sync(this); - _la = TokenStream.LA(1); - } - State = 72; Match(RSB); - } - break; - case 2: - EnterOuterAlt(_localctx, 2); - { - State = 74; Match(LSB); - State = 75; Match(RSB); - } - break; - } - } - catch (RecognitionException re) { - _localctx.exception = re; - ErrorHandler.ReportError(this, re); - ErrorHandler.Recover(this, re); - } - finally { - ExitRule(); - } - return _localctx; - } - - public partial class ValueContext : ParserRuleContext { - public ValueContext(ParserRuleContext parent, int invokingState) - : base(parent, invokingState) - { - } - public override int RuleIndex { get { return RULE_value; } } - - public ValueContext() { } - public virtual void CopyFrom(ValueContext context) { - base.CopyFrom(context); - } - } - public partial class ValueObjectContext : ValueContext { - public ObjContext obj() { - return GetRuleContext(0); - } - public ValueObjectContext(ValueContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitValueObject(this); - else return visitor.VisitChildren(this); - } - } - public partial class ValueNullContext : ValueContext { - public ITerminalNode NULL() { return GetToken(AdaptiveCardsTemplateParser.NULL, 0); } - public ValueNullContext(ValueContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitValueNull(this); - else return visitor.VisitChildren(this); - } - } - public partial class ValueTemplateStringContext : ValueContext { - public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } - public TemplateStringContext[] templateString() { - return GetRuleContexts(); - } - public TemplateStringContext templateString(int i) { - return GetRuleContext(i); - } - public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } - public ValueTemplateStringContext(ValueContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitValueTemplateString(this); - else return visitor.VisitChildren(this); - } - } - public partial class ValueNumberContext : ValueContext { - public ITerminalNode NUMBER() { return GetToken(AdaptiveCardsTemplateParser.NUMBER, 0); } - public ValueNumberContext(ValueContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitValueNumber(this); - else return visitor.VisitChildren(this); - } - } - public partial class ValueTrueContext : ValueContext { - public ITerminalNode TRUE() { return GetToken(AdaptiveCardsTemplateParser.TRUE, 0); } - public ValueTrueContext(ValueContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitValueTrue(this); - else return visitor.VisitChildren(this); - } - } - public partial class ValueFalseContext : ValueContext { - public ITerminalNode FALSE() { return GetToken(AdaptiveCardsTemplateParser.FALSE, 0); } - public ValueFalseContext(ValueContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitValueFalse(this); - else return visitor.VisitChildren(this); - } - } - public partial class ValueStringContext : ValueContext { - public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } - public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } - public ITerminalNode[] STRING() { return GetTokens(AdaptiveCardsTemplateParser.STRING); } - public ITerminalNode STRING(int i) { - return GetToken(AdaptiveCardsTemplateParser.STRING, i); - } - public ValueStringContext(ValueContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitValueString(this); - else return visitor.VisitChildren(this); - } - } - public partial class ValueTemplateStringWithRootContext : ValueContext { - public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } - public TemplateRootContext templateRoot() { - return GetRuleContext(0); - } - public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } - public ValueTemplateStringWithRootContext(ValueContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitValueTemplateStringWithRoot(this); - else return visitor.VisitChildren(this); - } - } - public partial class ValueArrayContext : ValueContext { - public ArrayContext array() { - return GetRuleContext(0); - } - public ValueArrayContext(ValueContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitValueArray(this); - else return visitor.VisitChildren(this); - } - } - - [RuleVersion(0)] - public ValueContext value() { - ValueContext _localctx = new ValueContext(Context, State); - EnterRule(_localctx, 8, RULE_value); - int _la; - try { - State = 106; - ErrorHandler.Sync(this); - switch ( Interpreter.AdaptivePredict(TokenStream,8,Context) ) { - case 1: - _localctx = new ValueTemplateStringContext(_localctx); - EnterOuterAlt(_localctx, 1); - { - State = 78; Match(StringDeclOpen); - State = 79; templateString(); - State = 83; - ErrorHandler.Sync(this); - _la = TokenStream.LA(1); - while (_la==TEMPLATELITERAL || _la==STRING) { - { - { - State = 80; templateString(); - } - } - State = 85; - ErrorHandler.Sync(this); - _la = TokenStream.LA(1); - } - State = 86; Match(CLOSE); - } - break; - case 2: - _localctx = new ValueTemplateStringWithRootContext(_localctx); - EnterOuterAlt(_localctx, 2); - { - State = 88; Match(StringDeclOpen); - State = 89; templateRoot(); - State = 90; Match(CLOSE); - } - break; - case 3: - _localctx = new ValueStringContext(_localctx); - EnterOuterAlt(_localctx, 3); - { - State = 92; Match(StringDeclOpen); - State = 96; - ErrorHandler.Sync(this); - _la = TokenStream.LA(1); - while (_la==STRING) { - { - { - State = 93; Match(STRING); - } - } - State = 98; - ErrorHandler.Sync(this); - _la = TokenStream.LA(1); - } - State = 99; Match(CLOSE); - } - break; - case 4: - _localctx = new ValueNumberContext(_localctx); - EnterOuterAlt(_localctx, 4); - { - State = 100; Match(NUMBER); - } - break; - case 5: - _localctx = new ValueObjectContext(_localctx); - EnterOuterAlt(_localctx, 5); - { - State = 101; obj(); - } - break; - case 6: - _localctx = new ValueArrayContext(_localctx); - EnterOuterAlt(_localctx, 6); - { - State = 102; array(); - } - break; - case 7: - _localctx = new ValueTrueContext(_localctx); - EnterOuterAlt(_localctx, 7); - { - State = 103; Match(TRUE); - } - break; - case 8: - _localctx = new ValueFalseContext(_localctx); - EnterOuterAlt(_localctx, 8); - { - State = 104; Match(FALSE); - } - break; - case 9: - _localctx = new ValueNullContext(_localctx); - EnterOuterAlt(_localctx, 9); - { - State = 105; Match(NULL); - } - break; - } - } - catch (RecognitionException re) { - _localctx.exception = re; - ErrorHandler.ReportError(this, re); - ErrorHandler.Recover(this, re); - } - finally { - ExitRule(); - } - return _localctx; - } - - public partial class TemplateStringContext : ParserRuleContext { - public TemplateStringContext(ParserRuleContext parent, int invokingState) - : base(parent, invokingState) - { - } - public override int RuleIndex { get { return RULE_templateString; } } - - public TemplateStringContext() { } - public virtual void CopyFrom(TemplateStringContext context) { - base.CopyFrom(context); - } - } - public partial class TemplatedStringContext : TemplateStringContext { - public ITerminalNode TEMPLATELITERAL() { return GetToken(AdaptiveCardsTemplateParser.TEMPLATELITERAL, 0); } - public ITerminalNode[] STRING() { return GetTokens(AdaptiveCardsTemplateParser.STRING); } - public ITerminalNode STRING(int i) { - return GetToken(AdaptiveCardsTemplateParser.STRING, i); - } - public TemplatedStringContext(TemplateStringContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitTemplatedString(this); - else return visitor.VisitChildren(this); - } - } - - [RuleVersion(0)] - public TemplateStringContext templateString() { - TemplateStringContext _localctx = new TemplateStringContext(Context, State); - EnterRule(_localctx, 10, RULE_templateString); - int _la; - try { - int _alt; - _localctx = new TemplatedStringContext(_localctx); - EnterOuterAlt(_localctx, 1); - { - { - State = 111; - ErrorHandler.Sync(this); - _la = TokenStream.LA(1); - while (_la==STRING) { - { - { - State = 108; Match(STRING); - } - } - State = 113; - ErrorHandler.Sync(this); - _la = TokenStream.LA(1); - } - State = 114; Match(TEMPLATELITERAL); - State = 118; - ErrorHandler.Sync(this); - _alt = Interpreter.AdaptivePredict(TokenStream,10,Context); - while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) { - if ( _alt==1 ) { - { - { - State = 115; Match(STRING); - } - } - } - State = 120; - ErrorHandler.Sync(this); - _alt = Interpreter.AdaptivePredict(TokenStream,10,Context); - } - } - } - } - catch (RecognitionException re) { - _localctx.exception = re; - ErrorHandler.ReportError(this, re); - ErrorHandler.Recover(this, re); - } - finally { - ExitRule(); - } - return _localctx; - } - - public partial class TemplateRootContext : ParserRuleContext { - public TemplateRootContext(ParserRuleContext parent, int invokingState) - : base(parent, invokingState) - { - } - public override int RuleIndex { get { return RULE_templateRoot; } } - - public TemplateRootContext() { } - public virtual void CopyFrom(TemplateRootContext context) { - base.CopyFrom(context); - } - } - public partial class TemplateStringWithRootContext : TemplateRootContext { - public ITerminalNode TEMPLATEROOT() { return GetToken(AdaptiveCardsTemplateParser.TEMPLATEROOT, 0); } - public TemplateStringWithRootContext(TemplateRootContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitTemplateStringWithRoot(this); - else return visitor.VisitChildren(this); - } - } - - [RuleVersion(0)] - public TemplateRootContext templateRoot() { - TemplateRootContext _localctx = new TemplateRootContext(Context, State); - EnterRule(_localctx, 12, RULE_templateRoot); - try { - _localctx = new TemplateStringWithRootContext(_localctx); - EnterOuterAlt(_localctx, 1); - { - State = 121; Match(TEMPLATEROOT); - } - } - catch (RecognitionException re) { - _localctx.exception = re; - ErrorHandler.ReportError(this, re); - ErrorHandler.Recover(this, re); - } - finally { - ExitRule(); - } - return _localctx; - } - - public partial class TemplateExpressionContext : ParserRuleContext { - public TemplateExpressionContext(ParserRuleContext parent, int invokingState) - : base(parent, invokingState) - { - } - public override int RuleIndex { get { return RULE_templateExpression; } } - - public TemplateExpressionContext() { } - public virtual void CopyFrom(TemplateExpressionContext context) { - base.CopyFrom(context); - } - } - public partial class ValueTemplateExpressionContext : TemplateExpressionContext { - public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } - public ITerminalNode TEMPLATELITERAL() { return GetToken(AdaptiveCardsTemplateParser.TEMPLATELITERAL, 0); } - public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } - public ValueTemplateExpressionContext(TemplateExpressionContext context) { CopyFrom(context); } - public override TResult Accept(IParseTreeVisitor visitor) { - IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; - if (typedVisitor != null) return typedVisitor.VisitValueTemplateExpression(this); - else return visitor.VisitChildren(this); - } - } - - [RuleVersion(0)] - public TemplateExpressionContext templateExpression() { - TemplateExpressionContext _localctx = new TemplateExpressionContext(Context, State); - EnterRule(_localctx, 14, RULE_templateExpression); - try { - _localctx = new ValueTemplateExpressionContext(_localctx); - EnterOuterAlt(_localctx, 1); - { - State = 123; Match(StringDeclOpen); - State = 124; Match(TEMPLATELITERAL); - State = 125; Match(CLOSE); - } - } - catch (RecognitionException re) { - _localctx.exception = re; - ErrorHandler.ReportError(this, re); - ErrorHandler.Recover(this, re); - } - finally { - ExitRule(); - } - return _localctx; - } - - private static char[] _serializedATN = { - '\x3', '\x608B', '\xA72A', '\x8133', '\xB9ED', '\x417C', '\x3BE7', '\x7786', - '\x5964', '\x3', '\x15', '\x82', '\x4', '\x2', '\t', '\x2', '\x4', '\x3', - '\t', '\x3', '\x4', '\x4', '\t', '\x4', '\x4', '\x5', '\t', '\x5', '\x4', - '\x6', '\t', '\x6', '\x4', '\a', '\t', '\a', '\x4', '\b', '\t', '\b', - '\x4', '\t', '\t', '\t', '\x3', '\x2', '\x3', '\x2', '\x3', '\x3', '\x3', - '\x3', '\x3', '\x3', '\x3', '\x3', '\a', '\x3', '\x19', '\n', '\x3', '\f', - '\x3', '\xE', '\x3', '\x1C', '\v', '\x3', '\x3', '\x3', '\x3', '\x3', - '\x3', '\x3', '\x3', '\x3', '\x5', '\x3', '\"', '\n', '\x3', '\x3', '\x4', - '\x3', '\x4', '\a', '\x4', '&', '\n', '\x4', '\f', '\x4', '\xE', '\x4', - ')', '\v', '\x4', '\x3', '\x4', '\x3', '\x4', '\x3', '\x4', '\x3', '\x4', - '\x3', '\x4', '\x3', '\x4', '\x3', '\x4', '\x3', '\x4', '\x3', '\x4', - '\x3', '\x4', '\x3', '\x4', '\x3', '\x4', '\x3', '\x4', '\x3', '\x4', - '\x3', '\x4', '\x3', '\x4', '\x3', '\x4', '\x3', '\x4', '\x3', '\x4', - '\x3', '\x4', '\x3', '\x4', '\x5', '\x4', '@', '\n', '\x4', '\x3', '\x5', - '\x3', '\x5', '\x3', '\x5', '\x3', '\x5', '\a', '\x5', '\x46', '\n', '\x5', - '\f', '\x5', '\xE', '\x5', 'I', '\v', '\x5', '\x3', '\x5', '\x3', '\x5', - '\x3', '\x5', '\x3', '\x5', '\x5', '\x5', 'O', '\n', '\x5', '\x3', '\x6', - '\x3', '\x6', '\x3', '\x6', '\a', '\x6', 'T', '\n', '\x6', '\f', '\x6', - '\xE', '\x6', 'W', '\v', '\x6', '\x3', '\x6', '\x3', '\x6', '\x3', '\x6', - '\x3', '\x6', '\x3', '\x6', '\x3', '\x6', '\x3', '\x6', '\x3', '\x6', - '\a', '\x6', '\x61', '\n', '\x6', '\f', '\x6', '\xE', '\x6', '\x64', '\v', - '\x6', '\x3', '\x6', '\x3', '\x6', '\x3', '\x6', '\x3', '\x6', '\x3', - '\x6', '\x3', '\x6', '\x3', '\x6', '\x5', '\x6', 'm', '\n', '\x6', '\x3', - '\a', '\a', '\a', 'p', '\n', '\a', '\f', '\a', '\xE', '\a', 's', '\v', - '\a', '\x3', '\a', '\x3', '\a', '\a', '\a', 'w', '\n', '\a', '\f', '\a', - '\xE', '\a', 'z', '\v', '\a', '\x3', '\b', '\x3', '\b', '\x3', '\t', '\x3', - '\t', '\x3', '\t', '\x3', '\t', '\x3', '\t', '\x2', '\x2', '\n', '\x2', - '\x4', '\x6', '\b', '\n', '\f', '\xE', '\x10', '\x2', '\x2', '\x2', '\x8D', - '\x2', '\x12', '\x3', '\x2', '\x2', '\x2', '\x4', '!', '\x3', '\x2', '\x2', - '\x2', '\x6', '?', '\x3', '\x2', '\x2', '\x2', '\b', 'N', '\x3', '\x2', - '\x2', '\x2', '\n', 'l', '\x3', '\x2', '\x2', '\x2', '\f', 'q', '\x3', - '\x2', '\x2', '\x2', '\xE', '{', '\x3', '\x2', '\x2', '\x2', '\x10', '}', - '\x3', '\x2', '\x2', '\x2', '\x12', '\x13', '\x5', '\n', '\x6', '\x2', - '\x13', '\x3', '\x3', '\x2', '\x2', '\x2', '\x14', '\x15', '\a', '\x5', - '\x2', '\x2', '\x15', '\x1A', '\x5', '\x6', '\x4', '\x2', '\x16', '\x17', - '\a', '\x3', '\x2', '\x2', '\x17', '\x19', '\x5', '\x6', '\x4', '\x2', - '\x18', '\x16', '\x3', '\x2', '\x2', '\x2', '\x19', '\x1C', '\x3', '\x2', - '\x2', '\x2', '\x1A', '\x18', '\x3', '\x2', '\x2', '\x2', '\x1A', '\x1B', - '\x3', '\x2', '\x2', '\x2', '\x1B', '\x1D', '\x3', '\x2', '\x2', '\x2', - '\x1C', '\x1A', '\x3', '\x2', '\x2', '\x2', '\x1D', '\x1E', '\a', '\x6', - '\x2', '\x2', '\x1E', '\"', '\x3', '\x2', '\x2', '\x2', '\x1F', ' ', '\a', - '\x5', '\x2', '\x2', ' ', '\"', '\a', '\x6', '\x2', '\x2', '!', '\x14', - '\x3', '\x2', '\x2', '\x2', '!', '\x1F', '\x3', '\x2', '\x2', '\x2', '\"', - '\x5', '\x3', '\x2', '\x2', '\x2', '#', '\'', '\a', '\f', '\x2', '\x2', - '$', '&', '\a', '\x15', '\x2', '\x2', '%', '$', '\x3', '\x2', '\x2', '\x2', - '&', ')', '\x3', '\x2', '\x2', '\x2', '\'', '%', '\x3', '\x2', '\x2', - '\x2', '\'', '(', '\x3', '\x2', '\x2', '\x2', '(', '*', '\x3', '\x2', - '\x2', '\x2', ')', '\'', '\x3', '\x2', '\x2', '\x2', '*', '+', '\a', '\xF', - '\x2', '\x2', '+', ',', '\a', '\x4', '\x2', '\x2', ',', '@', '\x5', '\n', - '\x6', '\x2', '-', '.', '\a', '\f', '\x2', '\x2', '.', '/', '\a', '\x10', - '\x2', '\x2', '/', '\x30', '\a', '\xF', '\x2', '\x2', '\x30', '\x31', - '\a', '\x4', '\x2', '\x2', '\x31', '\x32', '\a', '\f', '\x2', '\x2', '\x32', - '\x33', '\x5', '\xE', '\b', '\x2', '\x33', '\x34', '\a', '\xF', '\x2', - '\x2', '\x34', '@', '\x3', '\x2', '\x2', '\x2', '\x35', '\x36', '\a', - '\f', '\x2', '\x2', '\x36', '\x37', '\a', '\x10', '\x2', '\x2', '\x37', - '\x38', '\a', '\xF', '\x2', '\x2', '\x38', '\x39', '\a', '\x4', '\x2', - '\x2', '\x39', '@', '\x5', '\n', '\x6', '\x2', ':', ';', '\a', '\f', '\x2', - '\x2', ';', '<', '\a', '\x11', '\x2', '\x2', '<', '=', '\a', '\xF', '\x2', - '\x2', '=', '>', '\a', '\x4', '\x2', '\x2', '>', '@', '\x5', '\x10', '\t', - '\x2', '?', '#', '\x3', '\x2', '\x2', '\x2', '?', '-', '\x3', '\x2', '\x2', - '\x2', '?', '\x35', '\x3', '\x2', '\x2', '\x2', '?', ':', '\x3', '\x2', - '\x2', '\x2', '@', '\a', '\x3', '\x2', '\x2', '\x2', '\x41', '\x42', '\a', - '\a', '\x2', '\x2', '\x42', 'G', '\x5', '\n', '\x6', '\x2', '\x43', '\x44', - '\a', '\x3', '\x2', '\x2', '\x44', '\x46', '\x5', '\n', '\x6', '\x2', - '\x45', '\x43', '\x3', '\x2', '\x2', '\x2', '\x46', 'I', '\x3', '\x2', - '\x2', '\x2', 'G', '\x45', '\x3', '\x2', '\x2', '\x2', 'G', 'H', '\x3', - '\x2', '\x2', '\x2', 'H', 'J', '\x3', '\x2', '\x2', '\x2', 'I', 'G', '\x3', - '\x2', '\x2', '\x2', 'J', 'K', '\a', '\b', '\x2', '\x2', 'K', 'O', '\x3', - '\x2', '\x2', '\x2', 'L', 'M', '\a', '\a', '\x2', '\x2', 'M', 'O', '\a', - '\b', '\x2', '\x2', 'N', '\x41', '\x3', '\x2', '\x2', '\x2', 'N', 'L', - '\x3', '\x2', '\x2', '\x2', 'O', '\t', '\x3', '\x2', '\x2', '\x2', 'P', - 'Q', '\a', '\f', '\x2', '\x2', 'Q', 'U', '\x5', '\f', '\a', '\x2', 'R', - 'T', '\x5', '\f', '\a', '\x2', 'S', 'R', '\x3', '\x2', '\x2', '\x2', 'T', - 'W', '\x3', '\x2', '\x2', '\x2', 'U', 'S', '\x3', '\x2', '\x2', '\x2', - 'U', 'V', '\x3', '\x2', '\x2', '\x2', 'V', 'X', '\x3', '\x2', '\x2', '\x2', - 'W', 'U', '\x3', '\x2', '\x2', '\x2', 'X', 'Y', '\a', '\xF', '\x2', '\x2', - 'Y', 'm', '\x3', '\x2', '\x2', '\x2', 'Z', '[', '\a', '\f', '\x2', '\x2', - '[', '\\', '\x5', '\xE', '\b', '\x2', '\\', ']', '\a', '\xF', '\x2', '\x2', - ']', 'm', '\x3', '\x2', '\x2', '\x2', '^', '\x62', '\a', '\f', '\x2', - '\x2', '_', '\x61', '\a', '\x15', '\x2', '\x2', '`', '_', '\x3', '\x2', - '\x2', '\x2', '\x61', '\x64', '\x3', '\x2', '\x2', '\x2', '\x62', '`', - '\x3', '\x2', '\x2', '\x2', '\x62', '\x63', '\x3', '\x2', '\x2', '\x2', - '\x63', '\x65', '\x3', '\x2', '\x2', '\x2', '\x64', '\x62', '\x3', '\x2', - '\x2', '\x2', '\x65', 'm', '\a', '\xF', '\x2', '\x2', '\x66', 'm', '\a', - '\r', '\x2', '\x2', 'g', 'm', '\x5', '\x4', '\x3', '\x2', 'h', 'm', '\x5', - '\b', '\x5', '\x2', 'i', 'm', '\a', '\t', '\x2', '\x2', 'j', 'm', '\a', - '\n', '\x2', '\x2', 'k', 'm', '\a', '\v', '\x2', '\x2', 'l', 'P', '\x3', - '\x2', '\x2', '\x2', 'l', 'Z', '\x3', '\x2', '\x2', '\x2', 'l', '^', '\x3', - '\x2', '\x2', '\x2', 'l', '\x66', '\x3', '\x2', '\x2', '\x2', 'l', 'g', - '\x3', '\x2', '\x2', '\x2', 'l', 'h', '\x3', '\x2', '\x2', '\x2', 'l', - 'i', '\x3', '\x2', '\x2', '\x2', 'l', 'j', '\x3', '\x2', '\x2', '\x2', - 'l', 'k', '\x3', '\x2', '\x2', '\x2', 'm', '\v', '\x3', '\x2', '\x2', - '\x2', 'n', 'p', '\a', '\x15', '\x2', '\x2', 'o', 'n', '\x3', '\x2', '\x2', - '\x2', 'p', 's', '\x3', '\x2', '\x2', '\x2', 'q', 'o', '\x3', '\x2', '\x2', - '\x2', 'q', 'r', '\x3', '\x2', '\x2', '\x2', 'r', 't', '\x3', '\x2', '\x2', - '\x2', 's', 'q', '\x3', '\x2', '\x2', '\x2', 't', 'x', '\a', '\x13', '\x2', - '\x2', 'u', 'w', '\a', '\x15', '\x2', '\x2', 'v', 'u', '\x3', '\x2', '\x2', - '\x2', 'w', 'z', '\x3', '\x2', '\x2', '\x2', 'x', 'v', '\x3', '\x2', '\x2', - '\x2', 'x', 'y', '\x3', '\x2', '\x2', '\x2', 'y', '\r', '\x3', '\x2', - '\x2', '\x2', 'z', 'x', '\x3', '\x2', '\x2', '\x2', '{', '|', '\a', '\x14', - '\x2', '\x2', '|', '\xF', '\x3', '\x2', '\x2', '\x2', '}', '~', '\a', - '\f', '\x2', '\x2', '~', '\x7F', '\a', '\x13', '\x2', '\x2', '\x7F', '\x80', - '\a', '\xF', '\x2', '\x2', '\x80', '\x11', '\x3', '\x2', '\x2', '\x2', - '\r', '\x1A', '!', '\'', '?', 'G', 'N', 'U', '\x62', 'l', 'q', 'x', - }; - - public static readonly ATN _ATN = - new ATNDeserializer().Deserialize(_serializedATN); + protected static DFA[] decisionToDFA; + protected static PredictionContextCache sharedContextCache = new PredictionContextCache(); + public const int + COMMA=1, COLON=2, LCB=3, RCB=4, LSB=5, RSB=6, TRUE=7, FALSE=8, NULL=9, + StringDeclOpen=10, NUMBER=11, WS=12, CLOSE=13, TEMPLATEDATA=14, TEMPLATEWHEN=15, + JPATH=16, TEMPLATELITERAL=17, TEMPLATEROOT=18, STRING=19; + public const int + RULE_json = 0, RULE_obj = 1, RULE_pair = 2, RULE_array = 3, RULE_value = 4, + RULE_templateString = 5, RULE_templateRoot = 6, RULE_templateExpression = 7; + public static readonly string[] ruleNames = { + "json", "obj", "pair", "array", "value", "templateString", "templateRoot", + "templateExpression" + }; + + private static readonly string[] _LiteralNames = { + null, "','", "':'", "'{'", "'}'", "'['", "']'", "'true'", "'false'", "'null'", + null, null, null, null, "'$data'", "'$when'" + }; + private static readonly string[] _SymbolicNames = { + null, "COMMA", "COLON", "LCB", "RCB", "LSB", "RSB", "TRUE", "FALSE", "NULL", + "StringDeclOpen", "NUMBER", "WS", "CLOSE", "TEMPLATEDATA", "TEMPLATEWHEN", + "JPATH", "TEMPLATELITERAL", "TEMPLATEROOT", "STRING" + }; + public static readonly IVocabulary DefaultVocabulary = new Vocabulary(_LiteralNames, _SymbolicNames); + + [NotNull] + public override IVocabulary Vocabulary + { + get + { + return DefaultVocabulary; + } + } + + public override string GrammarFileName { get { return "AdaptiveCardsTemplateParser.g4"; } } + + public override string[] RuleNames { get { return ruleNames; } } + + public override int[] SerializedAtn { get { return _serializedATN; } } + + static AdaptiveCardsTemplateParser() { + decisionToDFA = new DFA[_ATN.NumberOfDecisions]; + for (int i = 0; i < _ATN.NumberOfDecisions; i++) { + decisionToDFA[i] = new DFA(_ATN.GetDecisionState(i), i); + } + } + + public AdaptiveCardsTemplateParser(ITokenStream input) : this(input, Console.Out, Console.Error) { } + + public AdaptiveCardsTemplateParser(ITokenStream input, TextWriter output, TextWriter errorOutput) + : base(input, output, errorOutput) + { + Interpreter = new ParserATNSimulator(this, _ATN, decisionToDFA, sharedContextCache); + } + + public partial class JsonContext : ParserRuleContext { + [System.Diagnostics.DebuggerNonUserCode] public ValueContext value() { + return GetRuleContext(0); + } + public JsonContext(ParserRuleContext parent, int invokingState) + : base(parent, invokingState) + { + } + public override int RuleIndex { get { return RULE_json; } } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitJson(this); + else return visitor.VisitChildren(this); + } + } + + [RuleVersion(0)] + public JsonContext json() { + JsonContext _localctx = new JsonContext(Context, State); + EnterRule(_localctx, 0, RULE_json); + try { + EnterOuterAlt(_localctx, 1); + { + State = 16; + value(); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + ErrorHandler.ReportError(this, re); + ErrorHandler.Recover(this, re); + } + finally { + ExitRule(); + } + return _localctx; + } + + public partial class ObjContext : ParserRuleContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode LCB() { return GetToken(AdaptiveCardsTemplateParser.LCB, 0); } + [System.Diagnostics.DebuggerNonUserCode] public PairContext[] pair() { + return GetRuleContexts(); + } + [System.Diagnostics.DebuggerNonUserCode] public PairContext pair(int i) { + return GetRuleContext(i); + } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode RCB() { return GetToken(AdaptiveCardsTemplateParser.RCB, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] COMMA() { return GetTokens(AdaptiveCardsTemplateParser.COMMA); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode COMMA(int i) { + return GetToken(AdaptiveCardsTemplateParser.COMMA, i); + } + public ObjContext(ParserRuleContext parent, int invokingState) + : base(parent, invokingState) + { + } + public override int RuleIndex { get { return RULE_obj; } } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitObj(this); + else return visitor.VisitChildren(this); + } + } + + [RuleVersion(0)] + public ObjContext obj() { + ObjContext _localctx = new ObjContext(Context, State); + EnterRule(_localctx, 2, RULE_obj); + int _la; + try { + State = 31; + ErrorHandler.Sync(this); + switch ( Interpreter.AdaptivePredict(TokenStream,1,Context) ) { + case 1: + EnterOuterAlt(_localctx, 1); + { + State = 18; + Match(LCB); + State = 19; + pair(); + State = 24; + ErrorHandler.Sync(this); + _la = TokenStream.LA(1); + while (_la==COMMA) { + { + { + State = 20; + Match(COMMA); + State = 21; + pair(); + } + } + State = 26; + ErrorHandler.Sync(this); + _la = TokenStream.LA(1); + } + State = 27; + Match(RCB); + } + break; + case 2: + EnterOuterAlt(_localctx, 2); + { + State = 29; + Match(LCB); + State = 30; + Match(RCB); + } + break; + } + } + catch (RecognitionException re) { + _localctx.exception = re; + ErrorHandler.ReportError(this, re); + ErrorHandler.Recover(this, re); + } + finally { + ExitRule(); + } + return _localctx; + } + + public partial class PairContext : ParserRuleContext { + public PairContext(ParserRuleContext parent, int invokingState) + : base(parent, invokingState) + { + } + public override int RuleIndex { get { return RULE_pair; } } + + public PairContext() { } + public virtual void CopyFrom(PairContext context) { + base.CopyFrom(context); + } + } + public partial class TemplateWhenContext : PairContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TEMPLATEWHEN() { return GetToken(AdaptiveCardsTemplateParser.TEMPLATEWHEN, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode COLON() { return GetToken(AdaptiveCardsTemplateParser.COLON, 0); } + [System.Diagnostics.DebuggerNonUserCode] public TemplateExpressionContext templateExpression() { + return GetRuleContext(0); + } + public TemplateWhenContext(PairContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitTemplateWhen(this); + else return visitor.VisitChildren(this); + } + } + public partial class JsonPairContext : PairContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode COLON() { return GetToken(AdaptiveCardsTemplateParser.COLON, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ValueContext value() { + return GetRuleContext(0); + } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] STRING() { return GetTokens(AdaptiveCardsTemplateParser.STRING); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STRING(int i) { + return GetToken(AdaptiveCardsTemplateParser.STRING, i); + } + public JsonPairContext(PairContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitJsonPair(this); + else return visitor.VisitChildren(this); + } + } + public partial class TemplateDataContext : PairContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TEMPLATEDATA() { return GetToken(AdaptiveCardsTemplateParser.TEMPLATEDATA, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode COLON() { return GetToken(AdaptiveCardsTemplateParser.COLON, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ValueContext value() { + return GetRuleContext(0); + } + public TemplateDataContext(PairContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitTemplateData(this); + else return visitor.VisitChildren(this); + } + } + public partial class TemplateRootDataContext : PairContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] StringDeclOpen() { return GetTokens(AdaptiveCardsTemplateParser.StringDeclOpen); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode StringDeclOpen(int i) { + return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, i); + } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TEMPLATEDATA() { return GetToken(AdaptiveCardsTemplateParser.TEMPLATEDATA, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] CLOSE() { return GetTokens(AdaptiveCardsTemplateParser.CLOSE); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CLOSE(int i) { + return GetToken(AdaptiveCardsTemplateParser.CLOSE, i); + } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode COLON() { return GetToken(AdaptiveCardsTemplateParser.COLON, 0); } + [System.Diagnostics.DebuggerNonUserCode] public TemplateRootContext templateRoot() { + return GetRuleContext(0); + } + public TemplateRootDataContext(PairContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitTemplateRootData(this); + else return visitor.VisitChildren(this); + } + } + + [RuleVersion(0)] + public PairContext pair() { + PairContext _localctx = new PairContext(Context, State); + EnterRule(_localctx, 4, RULE_pair); + int _la; + try { + State = 61; + ErrorHandler.Sync(this); + switch ( Interpreter.AdaptivePredict(TokenStream,3,Context) ) { + case 1: + _localctx = new JsonPairContext(_localctx); + EnterOuterAlt(_localctx, 1); + { + State = 33; + Match(StringDeclOpen); + State = 37; + ErrorHandler.Sync(this); + _la = TokenStream.LA(1); + while (_la==STRING) { + { + { + State = 34; + Match(STRING); + } + } + State = 39; + ErrorHandler.Sync(this); + _la = TokenStream.LA(1); + } + State = 40; + Match(CLOSE); + State = 41; + Match(COLON); + State = 42; + value(); + } + break; + case 2: + _localctx = new TemplateRootDataContext(_localctx); + EnterOuterAlt(_localctx, 2); + { + State = 43; + Match(StringDeclOpen); + State = 44; + Match(TEMPLATEDATA); + State = 45; + Match(CLOSE); + State = 46; + Match(COLON); + State = 47; + Match(StringDeclOpen); + State = 48; + templateRoot(); + State = 49; + Match(CLOSE); + } + break; + case 3: + _localctx = new TemplateDataContext(_localctx); + EnterOuterAlt(_localctx, 3); + { + State = 51; + Match(StringDeclOpen); + State = 52; + Match(TEMPLATEDATA); + State = 53; + Match(CLOSE); + State = 54; + Match(COLON); + State = 55; + value(); + } + break; + case 4: + _localctx = new TemplateWhenContext(_localctx); + EnterOuterAlt(_localctx, 4); + { + State = 56; + Match(StringDeclOpen); + State = 57; + Match(TEMPLATEWHEN); + State = 58; + Match(CLOSE); + State = 59; + Match(COLON); + State = 60; + templateExpression(); + } + break; + } + } + catch (RecognitionException re) { + _localctx.exception = re; + ErrorHandler.ReportError(this, re); + ErrorHandler.Recover(this, re); + } + finally { + ExitRule(); + } + return _localctx; + } + + public partial class ArrayContext : ParserRuleContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode LSB() { return GetToken(AdaptiveCardsTemplateParser.LSB, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ValueContext[] value() { + return GetRuleContexts(); + } + [System.Diagnostics.DebuggerNonUserCode] public ValueContext value(int i) { + return GetRuleContext(i); + } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode RSB() { return GetToken(AdaptiveCardsTemplateParser.RSB, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] COMMA() { return GetTokens(AdaptiveCardsTemplateParser.COMMA); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode COMMA(int i) { + return GetToken(AdaptiveCardsTemplateParser.COMMA, i); + } + public ArrayContext(ParserRuleContext parent, int invokingState) + : base(parent, invokingState) + { + } + public override int RuleIndex { get { return RULE_array; } } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitArray(this); + else return visitor.VisitChildren(this); + } + } + + [RuleVersion(0)] + public ArrayContext array() { + ArrayContext _localctx = new ArrayContext(Context, State); + EnterRule(_localctx, 6, RULE_array); + int _la; + try { + State = 76; + ErrorHandler.Sync(this); + switch ( Interpreter.AdaptivePredict(TokenStream,5,Context) ) { + case 1: + EnterOuterAlt(_localctx, 1); + { + State = 63; + Match(LSB); + State = 64; + value(); + State = 69; + ErrorHandler.Sync(this); + _la = TokenStream.LA(1); + while (_la==COMMA) { + { + { + State = 65; + Match(COMMA); + State = 66; + value(); + } + } + State = 71; + ErrorHandler.Sync(this); + _la = TokenStream.LA(1); + } + State = 72; + Match(RSB); + } + break; + case 2: + EnterOuterAlt(_localctx, 2); + { + State = 74; + Match(LSB); + State = 75; + Match(RSB); + } + break; + } + } + catch (RecognitionException re) { + _localctx.exception = re; + ErrorHandler.ReportError(this, re); + ErrorHandler.Recover(this, re); + } + finally { + ExitRule(); + } + return _localctx; + } + + public partial class ValueContext : ParserRuleContext { + public ValueContext(ParserRuleContext parent, int invokingState) + : base(parent, invokingState) + { + } + public override int RuleIndex { get { return RULE_value; } } + + public ValueContext() { } + public virtual void CopyFrom(ValueContext context) { + base.CopyFrom(context); + } + } + public partial class ValueObjectContext : ValueContext { + [System.Diagnostics.DebuggerNonUserCode] public ObjContext obj() { + return GetRuleContext(0); + } + public ValueObjectContext(ValueContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitValueObject(this); + else return visitor.VisitChildren(this); + } + } + public partial class ValueNullContext : ValueContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode NULL() { return GetToken(AdaptiveCardsTemplateParser.NULL, 0); } + public ValueNullContext(ValueContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitValueNull(this); + else return visitor.VisitChildren(this); + } + } + public partial class ValueTemplateStringContext : ValueContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } + [System.Diagnostics.DebuggerNonUserCode] public TemplateStringContext[] templateString() { + return GetRuleContexts(); + } + [System.Diagnostics.DebuggerNonUserCode] public TemplateStringContext templateString(int i) { + return GetRuleContext(i); + } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } + public ValueTemplateStringContext(ValueContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitValueTemplateString(this); + else return visitor.VisitChildren(this); + } + } + public partial class ValueNumberContext : ValueContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode NUMBER() { return GetToken(AdaptiveCardsTemplateParser.NUMBER, 0); } + public ValueNumberContext(ValueContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitValueNumber(this); + else return visitor.VisitChildren(this); + } + } + public partial class ValueTrueContext : ValueContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TRUE() { return GetToken(AdaptiveCardsTemplateParser.TRUE, 0); } + public ValueTrueContext(ValueContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitValueTrue(this); + else return visitor.VisitChildren(this); + } + } + public partial class ValueFalseContext : ValueContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FALSE() { return GetToken(AdaptiveCardsTemplateParser.FALSE, 0); } + public ValueFalseContext(ValueContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitValueFalse(this); + else return visitor.VisitChildren(this); + } + } + public partial class ValueStringContext : ValueContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] STRING() { return GetTokens(AdaptiveCardsTemplateParser.STRING); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STRING(int i) { + return GetToken(AdaptiveCardsTemplateParser.STRING, i); + } + public ValueStringContext(ValueContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitValueString(this); + else return visitor.VisitChildren(this); + } + } + public partial class ValueTemplateStringWithRootContext : ValueContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } + [System.Diagnostics.DebuggerNonUserCode] public TemplateRootContext templateRoot() { + return GetRuleContext(0); + } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } + public ValueTemplateStringWithRootContext(ValueContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitValueTemplateStringWithRoot(this); + else return visitor.VisitChildren(this); + } + } + public partial class ValueArrayContext : ValueContext { + [System.Diagnostics.DebuggerNonUserCode] public ArrayContext array() { + return GetRuleContext(0); + } + public ValueArrayContext(ValueContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitValueArray(this); + else return visitor.VisitChildren(this); + } + } + + [RuleVersion(0)] + public ValueContext value() { + ValueContext _localctx = new ValueContext(Context, State); + EnterRule(_localctx, 8, RULE_value); + int _la; + try { + State = 106; + ErrorHandler.Sync(this); + switch ( Interpreter.AdaptivePredict(TokenStream,8,Context) ) { + case 1: + _localctx = new ValueTemplateStringContext(_localctx); + EnterOuterAlt(_localctx, 1); + { + State = 78; + Match(StringDeclOpen); + State = 79; + templateString(); + State = 83; + ErrorHandler.Sync(this); + _la = TokenStream.LA(1); + while (_la==TEMPLATELITERAL || _la==STRING) { + { + { + State = 80; + templateString(); + } + } + State = 85; + ErrorHandler.Sync(this); + _la = TokenStream.LA(1); + } + State = 86; + Match(CLOSE); + } + break; + case 2: + _localctx = new ValueTemplateStringWithRootContext(_localctx); + EnterOuterAlt(_localctx, 2); + { + State = 88; + Match(StringDeclOpen); + State = 89; + templateRoot(); + State = 90; + Match(CLOSE); + } + break; + case 3: + _localctx = new ValueStringContext(_localctx); + EnterOuterAlt(_localctx, 3); + { + State = 92; + Match(StringDeclOpen); + State = 96; + ErrorHandler.Sync(this); + _la = TokenStream.LA(1); + while (_la==STRING) { + { + { + State = 93; + Match(STRING); + } + } + State = 98; + ErrorHandler.Sync(this); + _la = TokenStream.LA(1); + } + State = 99; + Match(CLOSE); + } + break; + case 4: + _localctx = new ValueNumberContext(_localctx); + EnterOuterAlt(_localctx, 4); + { + State = 100; + Match(NUMBER); + } + break; + case 5: + _localctx = new ValueObjectContext(_localctx); + EnterOuterAlt(_localctx, 5); + { + State = 101; + obj(); + } + break; + case 6: + _localctx = new ValueArrayContext(_localctx); + EnterOuterAlt(_localctx, 6); + { + State = 102; + array(); + } + break; + case 7: + _localctx = new ValueTrueContext(_localctx); + EnterOuterAlt(_localctx, 7); + { + State = 103; + Match(TRUE); + } + break; + case 8: + _localctx = new ValueFalseContext(_localctx); + EnterOuterAlt(_localctx, 8); + { + State = 104; + Match(FALSE); + } + break; + case 9: + _localctx = new ValueNullContext(_localctx); + EnterOuterAlt(_localctx, 9); + { + State = 105; + Match(NULL); + } + break; + } + } + catch (RecognitionException re) { + _localctx.exception = re; + ErrorHandler.ReportError(this, re); + ErrorHandler.Recover(this, re); + } + finally { + ExitRule(); + } + return _localctx; + } + + public partial class TemplateStringContext : ParserRuleContext { + public TemplateStringContext(ParserRuleContext parent, int invokingState) + : base(parent, invokingState) + { + } + public override int RuleIndex { get { return RULE_templateString; } } + + public TemplateStringContext() { } + public virtual void CopyFrom(TemplateStringContext context) { + base.CopyFrom(context); + } + } + public partial class TemplatedStringContext : TemplateStringContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TEMPLATELITERAL() { return GetToken(AdaptiveCardsTemplateParser.TEMPLATELITERAL, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] STRING() { return GetTokens(AdaptiveCardsTemplateParser.STRING); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STRING(int i) { + return GetToken(AdaptiveCardsTemplateParser.STRING, i); + } + public TemplatedStringContext(TemplateStringContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitTemplatedString(this); + else return visitor.VisitChildren(this); + } + } + + [RuleVersion(0)] + public TemplateStringContext templateString() { + TemplateStringContext _localctx = new TemplateStringContext(Context, State); + EnterRule(_localctx, 10, RULE_templateString); + int _la; + try { + int _alt; + _localctx = new TemplatedStringContext(_localctx); + EnterOuterAlt(_localctx, 1); + { + { + State = 111; + ErrorHandler.Sync(this); + _la = TokenStream.LA(1); + while (_la==STRING) { + { + { + State = 108; + Match(STRING); + } + } + State = 113; + ErrorHandler.Sync(this); + _la = TokenStream.LA(1); + } + State = 114; + Match(TEMPLATELITERAL); + State = 118; + ErrorHandler.Sync(this); + _alt = Interpreter.AdaptivePredict(TokenStream,10,Context); + while ( _alt!=2 && _alt!=global::Antlr4.Runtime.Atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + { + { + State = 115; + Match(STRING); + } + } + } + State = 120; + ErrorHandler.Sync(this); + _alt = Interpreter.AdaptivePredict(TokenStream,10,Context); + } + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + ErrorHandler.ReportError(this, re); + ErrorHandler.Recover(this, re); + } + finally { + ExitRule(); + } + return _localctx; + } + + public partial class TemplateRootContext : ParserRuleContext { + public TemplateRootContext(ParserRuleContext parent, int invokingState) + : base(parent, invokingState) + { + } + public override int RuleIndex { get { return RULE_templateRoot; } } + + public TemplateRootContext() { } + public virtual void CopyFrom(TemplateRootContext context) { + base.CopyFrom(context); + } + } + public partial class TemplateStringWithRootContext : TemplateRootContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TEMPLATEROOT() { return GetToken(AdaptiveCardsTemplateParser.TEMPLATEROOT, 0); } + public TemplateStringWithRootContext(TemplateRootContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitTemplateStringWithRoot(this); + else return visitor.VisitChildren(this); + } + } + + [RuleVersion(0)] + public TemplateRootContext templateRoot() { + TemplateRootContext _localctx = new TemplateRootContext(Context, State); + EnterRule(_localctx, 12, RULE_templateRoot); + try { + _localctx = new TemplateStringWithRootContext(_localctx); + EnterOuterAlt(_localctx, 1); + { + State = 121; + Match(TEMPLATEROOT); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + ErrorHandler.ReportError(this, re); + ErrorHandler.Recover(this, re); + } + finally { + ExitRule(); + } + return _localctx; + } + + public partial class TemplateExpressionContext : ParserRuleContext { + public TemplateExpressionContext(ParserRuleContext parent, int invokingState) + : base(parent, invokingState) + { + } + public override int RuleIndex { get { return RULE_templateExpression; } } + + public TemplateExpressionContext() { } + public virtual void CopyFrom(TemplateExpressionContext context) { + base.CopyFrom(context); + } + } + public partial class ValueTemplateExpressionContext : TemplateExpressionContext { + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode StringDeclOpen() { return GetToken(AdaptiveCardsTemplateParser.StringDeclOpen, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TEMPLATELITERAL() { return GetToken(AdaptiveCardsTemplateParser.TEMPLATELITERAL, 0); } + [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CLOSE() { return GetToken(AdaptiveCardsTemplateParser.CLOSE, 0); } + public ValueTemplateExpressionContext(TemplateExpressionContext context) { CopyFrom(context); } + [System.Diagnostics.DebuggerNonUserCode] + public override TResult Accept(IParseTreeVisitor visitor) { + IAdaptiveCardsTemplateParserVisitor typedVisitor = visitor as IAdaptiveCardsTemplateParserVisitor; + if (typedVisitor != null) return typedVisitor.VisitValueTemplateExpression(this); + else return visitor.VisitChildren(this); + } + } + + [RuleVersion(0)] + public TemplateExpressionContext templateExpression() { + TemplateExpressionContext _localctx = new TemplateExpressionContext(Context, State); + EnterRule(_localctx, 14, RULE_templateExpression); + try { + _localctx = new ValueTemplateExpressionContext(_localctx); + EnterOuterAlt(_localctx, 1); + { + State = 123; + Match(StringDeclOpen); + State = 124; + Match(TEMPLATELITERAL); + State = 125; + Match(CLOSE); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + ErrorHandler.ReportError(this, re); + ErrorHandler.Recover(this, re); + } + finally { + ExitRule(); + } + return _localctx; + } + + private static int[] _serializedATN = { + 4,1,19,128,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,1,0,1,0,1,1,1,1,1,1,1,1,5,1,23,8,1,10,1,12,1,26,9,1,1,1,1,1,1,1,1, + 1,3,1,32,8,1,1,2,1,2,5,2,36,8,2,10,2,12,2,39,9,2,1,2,1,2,1,2,1,2,1,2,1, + 2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,3,2,62,8, + 2,1,3,1,3,1,3,1,3,5,3,68,8,3,10,3,12,3,71,9,3,1,3,1,3,1,3,1,3,3,3,77,8, + 3,1,4,1,4,1,4,5,4,82,8,4,10,4,12,4,85,9,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4, + 1,4,5,4,95,8,4,10,4,12,4,98,9,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,3,4,107,8, + 4,1,5,5,5,110,8,5,10,5,12,5,113,9,5,1,5,1,5,5,5,117,8,5,10,5,12,5,120, + 9,5,1,6,1,6,1,7,1,7,1,7,1,7,1,7,0,0,8,0,2,4,6,8,10,12,14,0,0,139,0,16, + 1,0,0,0,2,31,1,0,0,0,4,61,1,0,0,0,6,76,1,0,0,0,8,106,1,0,0,0,10,111,1, + 0,0,0,12,121,1,0,0,0,14,123,1,0,0,0,16,17,3,8,4,0,17,1,1,0,0,0,18,19,5, + 3,0,0,19,24,3,4,2,0,20,21,5,1,0,0,21,23,3,4,2,0,22,20,1,0,0,0,23,26,1, + 0,0,0,24,22,1,0,0,0,24,25,1,0,0,0,25,27,1,0,0,0,26,24,1,0,0,0,27,28,5, + 4,0,0,28,32,1,0,0,0,29,30,5,3,0,0,30,32,5,4,0,0,31,18,1,0,0,0,31,29,1, + 0,0,0,32,3,1,0,0,0,33,37,5,10,0,0,34,36,5,19,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,40,1,0,0,0,39,37,1,0,0,0,40,41,5, + 13,0,0,41,42,5,2,0,0,42,62,3,8,4,0,43,44,5,10,0,0,44,45,5,14,0,0,45,46, + 5,13,0,0,46,47,5,2,0,0,47,48,5,10,0,0,48,49,3,12,6,0,49,50,5,13,0,0,50, + 62,1,0,0,0,51,52,5,10,0,0,52,53,5,14,0,0,53,54,5,13,0,0,54,55,5,2,0,0, + 55,62,3,8,4,0,56,57,5,10,0,0,57,58,5,15,0,0,58,59,5,13,0,0,59,60,5,2,0, + 0,60,62,3,14,7,0,61,33,1,0,0,0,61,43,1,0,0,0,61,51,1,0,0,0,61,56,1,0,0, + 0,62,5,1,0,0,0,63,64,5,5,0,0,64,69,3,8,4,0,65,66,5,1,0,0,66,68,3,8,4,0, + 67,65,1,0,0,0,68,71,1,0,0,0,69,67,1,0,0,0,69,70,1,0,0,0,70,72,1,0,0,0, + 71,69,1,0,0,0,72,73,5,6,0,0,73,77,1,0,0,0,74,75,5,5,0,0,75,77,5,6,0,0, + 76,63,1,0,0,0,76,74,1,0,0,0,77,7,1,0,0,0,78,79,5,10,0,0,79,83,3,10,5,0, + 80,82,3,10,5,0,81,80,1,0,0,0,82,85,1,0,0,0,83,81,1,0,0,0,83,84,1,0,0,0, + 84,86,1,0,0,0,85,83,1,0,0,0,86,87,5,13,0,0,87,107,1,0,0,0,88,89,5,10,0, + 0,89,90,3,12,6,0,90,91,5,13,0,0,91,107,1,0,0,0,92,96,5,10,0,0,93,95,5, + 19,0,0,94,93,1,0,0,0,95,98,1,0,0,0,96,94,1,0,0,0,96,97,1,0,0,0,97,99,1, + 0,0,0,98,96,1,0,0,0,99,107,5,13,0,0,100,107,5,11,0,0,101,107,3,2,1,0,102, + 107,3,6,3,0,103,107,5,7,0,0,104,107,5,8,0,0,105,107,5,9,0,0,106,78,1,0, + 0,0,106,88,1,0,0,0,106,92,1,0,0,0,106,100,1,0,0,0,106,101,1,0,0,0,106, + 102,1,0,0,0,106,103,1,0,0,0,106,104,1,0,0,0,106,105,1,0,0,0,107,9,1,0, + 0,0,108,110,5,19,0,0,109,108,1,0,0,0,110,113,1,0,0,0,111,109,1,0,0,0,111, + 112,1,0,0,0,112,114,1,0,0,0,113,111,1,0,0,0,114,118,5,17,0,0,115,117,5, + 19,0,0,116,115,1,0,0,0,117,120,1,0,0,0,118,116,1,0,0,0,118,119,1,0,0,0, + 119,11,1,0,0,0,120,118,1,0,0,0,121,122,5,18,0,0,122,13,1,0,0,0,123,124, + 5,10,0,0,124,125,5,17,0,0,125,126,5,13,0,0,126,15,1,0,0,0,11,24,31,37, + 61,69,76,83,96,106,111,118 + }; + + public static readonly ATN _ATN = + new ATNDeserializer().Deserialize(_serializedATN); + + } diff --git a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParser.interp b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParser.interp index 69a5836316..08322afab2 100644 --- a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParser.interp +++ b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParser.interp @@ -54,4 +54,4 @@ templateExpression atn: -[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 21, 130, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 7, 3, 25, 10, 3, 12, 3, 14, 3, 28, 11, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 34, 10, 3, 3, 4, 3, 4, 7, 4, 38, 10, 4, 12, 4, 14, 4, 41, 11, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 5, 4, 64, 10, 4, 3, 5, 3, 5, 3, 5, 3, 5, 7, 5, 70, 10, 5, 12, 5, 14, 5, 73, 11, 5, 3, 5, 3, 5, 3, 5, 3, 5, 5, 5, 79, 10, 5, 3, 6, 3, 6, 3, 6, 7, 6, 84, 10, 6, 12, 6, 14, 6, 87, 11, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 7, 6, 97, 10, 6, 12, 6, 14, 6, 100, 11, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 5, 6, 109, 10, 6, 3, 7, 7, 7, 112, 10, 7, 12, 7, 14, 7, 115, 11, 7, 3, 7, 3, 7, 7, 7, 119, 10, 7, 12, 7, 14, 7, 122, 11, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 2, 2, 10, 2, 4, 6, 8, 10, 12, 14, 16, 2, 2, 2, 141, 2, 18, 3, 2, 2, 2, 4, 33, 3, 2, 2, 2, 6, 63, 3, 2, 2, 2, 8, 78, 3, 2, 2, 2, 10, 108, 3, 2, 2, 2, 12, 113, 3, 2, 2, 2, 14, 123, 3, 2, 2, 2, 16, 125, 3, 2, 2, 2, 18, 19, 5, 10, 6, 2, 19, 3, 3, 2, 2, 2, 20, 21, 7, 5, 2, 2, 21, 26, 5, 6, 4, 2, 22, 23, 7, 3, 2, 2, 23, 25, 5, 6, 4, 2, 24, 22, 3, 2, 2, 2, 25, 28, 3, 2, 2, 2, 26, 24, 3, 2, 2, 2, 26, 27, 3, 2, 2, 2, 27, 29, 3, 2, 2, 2, 28, 26, 3, 2, 2, 2, 29, 30, 7, 6, 2, 2, 30, 34, 3, 2, 2, 2, 31, 32, 7, 5, 2, 2, 32, 34, 7, 6, 2, 2, 33, 20, 3, 2, 2, 2, 33, 31, 3, 2, 2, 2, 34, 5, 3, 2, 2, 2, 35, 39, 7, 12, 2, 2, 36, 38, 7, 21, 2, 2, 37, 36, 3, 2, 2, 2, 38, 41, 3, 2, 2, 2, 39, 37, 3, 2, 2, 2, 39, 40, 3, 2, 2, 2, 40, 42, 3, 2, 2, 2, 41, 39, 3, 2, 2, 2, 42, 43, 7, 15, 2, 2, 43, 44, 7, 4, 2, 2, 44, 64, 5, 10, 6, 2, 45, 46, 7, 12, 2, 2, 46, 47, 7, 16, 2, 2, 47, 48, 7, 15, 2, 2, 48, 49, 7, 4, 2, 2, 49, 50, 7, 12, 2, 2, 50, 51, 5, 14, 8, 2, 51, 52, 7, 15, 2, 2, 52, 64, 3, 2, 2, 2, 53, 54, 7, 12, 2, 2, 54, 55, 7, 16, 2, 2, 55, 56, 7, 15, 2, 2, 56, 57, 7, 4, 2, 2, 57, 64, 5, 10, 6, 2, 58, 59, 7, 12, 2, 2, 59, 60, 7, 17, 2, 2, 60, 61, 7, 15, 2, 2, 61, 62, 7, 4, 2, 2, 62, 64, 5, 16, 9, 2, 63, 35, 3, 2, 2, 2, 63, 45, 3, 2, 2, 2, 63, 53, 3, 2, 2, 2, 63, 58, 3, 2, 2, 2, 64, 7, 3, 2, 2, 2, 65, 66, 7, 7, 2, 2, 66, 71, 5, 10, 6, 2, 67, 68, 7, 3, 2, 2, 68, 70, 5, 10, 6, 2, 69, 67, 3, 2, 2, 2, 70, 73, 3, 2, 2, 2, 71, 69, 3, 2, 2, 2, 71, 72, 3, 2, 2, 2, 72, 74, 3, 2, 2, 2, 73, 71, 3, 2, 2, 2, 74, 75, 7, 8, 2, 2, 75, 79, 3, 2, 2, 2, 76, 77, 7, 7, 2, 2, 77, 79, 7, 8, 2, 2, 78, 65, 3, 2, 2, 2, 78, 76, 3, 2, 2, 2, 79, 9, 3, 2, 2, 2, 80, 81, 7, 12, 2, 2, 81, 85, 5, 12, 7, 2, 82, 84, 5, 12, 7, 2, 83, 82, 3, 2, 2, 2, 84, 87, 3, 2, 2, 2, 85, 83, 3, 2, 2, 2, 85, 86, 3, 2, 2, 2, 86, 88, 3, 2, 2, 2, 87, 85, 3, 2, 2, 2, 88, 89, 7, 15, 2, 2, 89, 109, 3, 2, 2, 2, 90, 91, 7, 12, 2, 2, 91, 92, 5, 14, 8, 2, 92, 93, 7, 15, 2, 2, 93, 109, 3, 2, 2, 2, 94, 98, 7, 12, 2, 2, 95, 97, 7, 21, 2, 2, 96, 95, 3, 2, 2, 2, 97, 100, 3, 2, 2, 2, 98, 96, 3, 2, 2, 2, 98, 99, 3, 2, 2, 2, 99, 101, 3, 2, 2, 2, 100, 98, 3, 2, 2, 2, 101, 109, 7, 15, 2, 2, 102, 109, 7, 13, 2, 2, 103, 109, 5, 4, 3, 2, 104, 109, 5, 8, 5, 2, 105, 109, 7, 9, 2, 2, 106, 109, 7, 10, 2, 2, 107, 109, 7, 11, 2, 2, 108, 80, 3, 2, 2, 2, 108, 90, 3, 2, 2, 2, 108, 94, 3, 2, 2, 2, 108, 102, 3, 2, 2, 2, 108, 103, 3, 2, 2, 2, 108, 104, 3, 2, 2, 2, 108, 105, 3, 2, 2, 2, 108, 106, 3, 2, 2, 2, 108, 107, 3, 2, 2, 2, 109, 11, 3, 2, 2, 2, 110, 112, 7, 21, 2, 2, 111, 110, 3, 2, 2, 2, 112, 115, 3, 2, 2, 2, 113, 111, 3, 2, 2, 2, 113, 114, 3, 2, 2, 2, 114, 116, 3, 2, 2, 2, 115, 113, 3, 2, 2, 2, 116, 120, 7, 19, 2, 2, 117, 119, 7, 21, 2, 2, 118, 117, 3, 2, 2, 2, 119, 122, 3, 2, 2, 2, 120, 118, 3, 2, 2, 2, 120, 121, 3, 2, 2, 2, 121, 13, 3, 2, 2, 2, 122, 120, 3, 2, 2, 2, 123, 124, 7, 20, 2, 2, 124, 15, 3, 2, 2, 2, 125, 126, 7, 12, 2, 2, 126, 127, 7, 19, 2, 2, 127, 128, 7, 15, 2, 2, 128, 17, 3, 2, 2, 2, 13, 26, 33, 39, 63, 71, 78, 85, 98, 108, 113, 120] \ No newline at end of file +[4, 1, 19, 128, 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, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 23, 8, 1, 10, 1, 12, 1, 26, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 32, 8, 1, 1, 2, 1, 2, 5, 2, 36, 8, 2, 10, 2, 12, 2, 39, 9, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 62, 8, 2, 1, 3, 1, 3, 1, 3, 1, 3, 5, 3, 68, 8, 3, 10, 3, 12, 3, 71, 9, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 77, 8, 3, 1, 4, 1, 4, 1, 4, 5, 4, 82, 8, 4, 10, 4, 12, 4, 85, 9, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 5, 4, 95, 8, 4, 10, 4, 12, 4, 98, 9, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 107, 8, 4, 1, 5, 5, 5, 110, 8, 5, 10, 5, 12, 5, 113, 9, 5, 1, 5, 1, 5, 5, 5, 117, 8, 5, 10, 5, 12, 5, 120, 9, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 0, 0, 8, 0, 2, 4, 6, 8, 10, 12, 14, 0, 0, 139, 0, 16, 1, 0, 0, 0, 2, 31, 1, 0, 0, 0, 4, 61, 1, 0, 0, 0, 6, 76, 1, 0, 0, 0, 8, 106, 1, 0, 0, 0, 10, 111, 1, 0, 0, 0, 12, 121, 1, 0, 0, 0, 14, 123, 1, 0, 0, 0, 16, 17, 3, 8, 4, 0, 17, 1, 1, 0, 0, 0, 18, 19, 5, 3, 0, 0, 19, 24, 3, 4, 2, 0, 20, 21, 5, 1, 0, 0, 21, 23, 3, 4, 2, 0, 22, 20, 1, 0, 0, 0, 23, 26, 1, 0, 0, 0, 24, 22, 1, 0, 0, 0, 24, 25, 1, 0, 0, 0, 25, 27, 1, 0, 0, 0, 26, 24, 1, 0, 0, 0, 27, 28, 5, 4, 0, 0, 28, 32, 1, 0, 0, 0, 29, 30, 5, 3, 0, 0, 30, 32, 5, 4, 0, 0, 31, 18, 1, 0, 0, 0, 31, 29, 1, 0, 0, 0, 32, 3, 1, 0, 0, 0, 33, 37, 5, 10, 0, 0, 34, 36, 5, 19, 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, 40, 1, 0, 0, 0, 39, 37, 1, 0, 0, 0, 40, 41, 5, 13, 0, 0, 41, 42, 5, 2, 0, 0, 42, 62, 3, 8, 4, 0, 43, 44, 5, 10, 0, 0, 44, 45, 5, 14, 0, 0, 45, 46, 5, 13, 0, 0, 46, 47, 5, 2, 0, 0, 47, 48, 5, 10, 0, 0, 48, 49, 3, 12, 6, 0, 49, 50, 5, 13, 0, 0, 50, 62, 1, 0, 0, 0, 51, 52, 5, 10, 0, 0, 52, 53, 5, 14, 0, 0, 53, 54, 5, 13, 0, 0, 54, 55, 5, 2, 0, 0, 55, 62, 3, 8, 4, 0, 56, 57, 5, 10, 0, 0, 57, 58, 5, 15, 0, 0, 58, 59, 5, 13, 0, 0, 59, 60, 5, 2, 0, 0, 60, 62, 3, 14, 7, 0, 61, 33, 1, 0, 0, 0, 61, 43, 1, 0, 0, 0, 61, 51, 1, 0, 0, 0, 61, 56, 1, 0, 0, 0, 62, 5, 1, 0, 0, 0, 63, 64, 5, 5, 0, 0, 64, 69, 3, 8, 4, 0, 65, 66, 5, 1, 0, 0, 66, 68, 3, 8, 4, 0, 67, 65, 1, 0, 0, 0, 68, 71, 1, 0, 0, 0, 69, 67, 1, 0, 0, 0, 69, 70, 1, 0, 0, 0, 70, 72, 1, 0, 0, 0, 71, 69, 1, 0, 0, 0, 72, 73, 5, 6, 0, 0, 73, 77, 1, 0, 0, 0, 74, 75, 5, 5, 0, 0, 75, 77, 5, 6, 0, 0, 76, 63, 1, 0, 0, 0, 76, 74, 1, 0, 0, 0, 77, 7, 1, 0, 0, 0, 78, 79, 5, 10, 0, 0, 79, 83, 3, 10, 5, 0, 80, 82, 3, 10, 5, 0, 81, 80, 1, 0, 0, 0, 82, 85, 1, 0, 0, 0, 83, 81, 1, 0, 0, 0, 83, 84, 1, 0, 0, 0, 84, 86, 1, 0, 0, 0, 85, 83, 1, 0, 0, 0, 86, 87, 5, 13, 0, 0, 87, 107, 1, 0, 0, 0, 88, 89, 5, 10, 0, 0, 89, 90, 3, 12, 6, 0, 90, 91, 5, 13, 0, 0, 91, 107, 1, 0, 0, 0, 92, 96, 5, 10, 0, 0, 93, 95, 5, 19, 0, 0, 94, 93, 1, 0, 0, 0, 95, 98, 1, 0, 0, 0, 96, 94, 1, 0, 0, 0, 96, 97, 1, 0, 0, 0, 97, 99, 1, 0, 0, 0, 98, 96, 1, 0, 0, 0, 99, 107, 5, 13, 0, 0, 100, 107, 5, 11, 0, 0, 101, 107, 3, 2, 1, 0, 102, 107, 3, 6, 3, 0, 103, 107, 5, 7, 0, 0, 104, 107, 5, 8, 0, 0, 105, 107, 5, 9, 0, 0, 106, 78, 1, 0, 0, 0, 106, 88, 1, 0, 0, 0, 106, 92, 1, 0, 0, 0, 106, 100, 1, 0, 0, 0, 106, 101, 1, 0, 0, 0, 106, 102, 1, 0, 0, 0, 106, 103, 1, 0, 0, 0, 106, 104, 1, 0, 0, 0, 106, 105, 1, 0, 0, 0, 107, 9, 1, 0, 0, 0, 108, 110, 5, 19, 0, 0, 109, 108, 1, 0, 0, 0, 110, 113, 1, 0, 0, 0, 111, 109, 1, 0, 0, 0, 111, 112, 1, 0, 0, 0, 112, 114, 1, 0, 0, 0, 113, 111, 1, 0, 0, 0, 114, 118, 5, 17, 0, 0, 115, 117, 5, 19, 0, 0, 116, 115, 1, 0, 0, 0, 117, 120, 1, 0, 0, 0, 118, 116, 1, 0, 0, 0, 118, 119, 1, 0, 0, 0, 119, 11, 1, 0, 0, 0, 120, 118, 1, 0, 0, 0, 121, 122, 5, 18, 0, 0, 122, 13, 1, 0, 0, 0, 123, 124, 5, 10, 0, 0, 124, 125, 5, 17, 0, 0, 125, 126, 5, 13, 0, 0, 126, 15, 1, 0, 0, 0, 11, 24, 31, 37, 61, 69, 76, 83, 96, 106, 111, 118] \ No newline at end of file diff --git a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParserBaseVisitor.cs b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParserBaseVisitor.cs index 356cc06e9e..51a69f23ac 100644 --- a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParserBaseVisitor.cs +++ b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParserBaseVisitor.cs @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// ANTLR Version: 4.8 +// ANTLR Version: 4.11.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ -// Generated from AdaptiveCardsTemplateParser.g4 by ANTLR 4.8 +// Generated from AdaptiveCardsTemplateParser.g4 by ANTLR 4.11.1 // Unreachable code detected #pragma warning disable 0162 @@ -30,213 +30,214 @@ /// of the available methods. /// /// The return type of the visit operation. -[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.8")] +[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.11.1")] +[System.Diagnostics.DebuggerNonUserCode] [System.CLSCompliant(false)] public partial class AdaptiveCardsTemplateParserBaseVisitor : AbstractParseTreeVisitor, IAdaptiveCardsTemplateParserVisitor { - /// - /// Visit a parse tree produced by . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitJson([NotNull] AdaptiveCardsTemplateParser.JsonContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitObj([NotNull] AdaptiveCardsTemplateParser.ObjContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the jsonPair - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitJsonPair([NotNull] AdaptiveCardsTemplateParser.JsonPairContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the templateRootData - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitTemplateRootData([NotNull] AdaptiveCardsTemplateParser.TemplateRootDataContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the templateData - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitTemplateData([NotNull] AdaptiveCardsTemplateParser.TemplateDataContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the templateWhen - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitTemplateWhen([NotNull] AdaptiveCardsTemplateParser.TemplateWhenContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitArray([NotNull] AdaptiveCardsTemplateParser.ArrayContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the valueTemplateString - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitValueTemplateString([NotNull] AdaptiveCardsTemplateParser.ValueTemplateStringContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the valueTemplateStringWithRoot - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitValueTemplateStringWithRoot([NotNull] AdaptiveCardsTemplateParser.ValueTemplateStringWithRootContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the valueString - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitValueString([NotNull] AdaptiveCardsTemplateParser.ValueStringContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the valueNumber - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitValueNumber([NotNull] AdaptiveCardsTemplateParser.ValueNumberContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the valueObject - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitValueObject([NotNull] AdaptiveCardsTemplateParser.ValueObjectContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the valueArray - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitValueArray([NotNull] AdaptiveCardsTemplateParser.ValueArrayContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the valueTrue - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitValueTrue([NotNull] AdaptiveCardsTemplateParser.ValueTrueContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the valueFalse - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitValueFalse([NotNull] AdaptiveCardsTemplateParser.ValueFalseContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the valueNull - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitValueNull([NotNull] AdaptiveCardsTemplateParser.ValueNullContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the templatedString - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitTemplatedString([NotNull] AdaptiveCardsTemplateParser.TemplatedStringContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the templateStringWithRoot - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitTemplateStringWithRoot([NotNull] AdaptiveCardsTemplateParser.TemplateStringWithRootContext context) { return VisitChildren(context); } - /// - /// Visit a parse tree produced by the valueTemplateExpression - /// labeled alternative in . - /// - /// The default implementation returns the result of calling - /// on . - /// - /// - /// The parse tree. - /// The visitor result. - public virtual Result VisitValueTemplateExpression([NotNull] AdaptiveCardsTemplateParser.ValueTemplateExpressionContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitJson([NotNull] AdaptiveCardsTemplateParser.JsonContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitObj([NotNull] AdaptiveCardsTemplateParser.ObjContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the jsonPair + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitJsonPair([NotNull] AdaptiveCardsTemplateParser.JsonPairContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the templateRootData + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitTemplateRootData([NotNull] AdaptiveCardsTemplateParser.TemplateRootDataContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the templateData + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitTemplateData([NotNull] AdaptiveCardsTemplateParser.TemplateDataContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the templateWhen + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitTemplateWhen([NotNull] AdaptiveCardsTemplateParser.TemplateWhenContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitArray([NotNull] AdaptiveCardsTemplateParser.ArrayContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the valueTemplateString + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitValueTemplateString([NotNull] AdaptiveCardsTemplateParser.ValueTemplateStringContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the valueTemplateStringWithRoot + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitValueTemplateStringWithRoot([NotNull] AdaptiveCardsTemplateParser.ValueTemplateStringWithRootContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the valueString + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitValueString([NotNull] AdaptiveCardsTemplateParser.ValueStringContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the valueNumber + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitValueNumber([NotNull] AdaptiveCardsTemplateParser.ValueNumberContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the valueObject + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitValueObject([NotNull] AdaptiveCardsTemplateParser.ValueObjectContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the valueArray + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitValueArray([NotNull] AdaptiveCardsTemplateParser.ValueArrayContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the valueTrue + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitValueTrue([NotNull] AdaptiveCardsTemplateParser.ValueTrueContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the valueFalse + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitValueFalse([NotNull] AdaptiveCardsTemplateParser.ValueFalseContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the valueNull + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitValueNull([NotNull] AdaptiveCardsTemplateParser.ValueNullContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the templatedString + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitTemplatedString([NotNull] AdaptiveCardsTemplateParser.TemplatedStringContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the templateStringWithRoot + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitTemplateStringWithRoot([NotNull] AdaptiveCardsTemplateParser.TemplateStringWithRootContext context) { return VisitChildren(context); } + /// + /// Visit a parse tree produced by the valueTemplateExpression + /// labeled alternative in . + /// + /// The default implementation returns the result of calling + /// on . + /// + /// + /// The parse tree. + /// The visitor result. + public virtual Result VisitValueTemplateExpression([NotNull] AdaptiveCardsTemplateParser.ValueTemplateExpressionContext context) { return VisitChildren(context); } } diff --git a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParserVisitor.cs b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParserVisitor.cs index b3f31b4f20..17765c6ffc 100644 --- a/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParserVisitor.cs +++ b/source/dotnet/Library/AdaptiveCards.Templating/AdaptiveCardsTemplateParserVisitor.cs @@ -1,14 +1,14 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// ANTLR Version: 4.8 +// ANTLR Version: 4.11.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ -// Generated from AdaptiveCardsTemplateParser.g4 by ANTLR 4.8 +// Generated from AdaptiveCardsTemplateParser.g4 by ANTLR 4.11.1 // Unreachable code detected #pragma warning disable 0162 @@ -28,137 +28,137 @@ /// by . /// /// The return type of the visit operation. -[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.8")] +[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.11.1")] [System.CLSCompliant(false)] public interface IAdaptiveCardsTemplateParserVisitor : IParseTreeVisitor { - /// - /// Visit a parse tree produced by . - /// - /// The parse tree. - /// The visitor result. - Result VisitJson([NotNull] AdaptiveCardsTemplateParser.JsonContext context); - /// - /// Visit a parse tree produced by . - /// - /// The parse tree. - /// The visitor result. - Result VisitObj([NotNull] AdaptiveCardsTemplateParser.ObjContext context); - /// - /// Visit a parse tree produced by the jsonPair - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitJsonPair([NotNull] AdaptiveCardsTemplateParser.JsonPairContext context); - /// - /// Visit a parse tree produced by the templateRootData - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitTemplateRootData([NotNull] AdaptiveCardsTemplateParser.TemplateRootDataContext context); - /// - /// Visit a parse tree produced by the templateData - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitTemplateData([NotNull] AdaptiveCardsTemplateParser.TemplateDataContext context); - /// - /// Visit a parse tree produced by the templateWhen - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitTemplateWhen([NotNull] AdaptiveCardsTemplateParser.TemplateWhenContext context); - /// - /// Visit a parse tree produced by . - /// - /// The parse tree. - /// The visitor result. - Result VisitArray([NotNull] AdaptiveCardsTemplateParser.ArrayContext context); - /// - /// Visit a parse tree produced by the valueTemplateString - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitValueTemplateString([NotNull] AdaptiveCardsTemplateParser.ValueTemplateStringContext context); - /// - /// Visit a parse tree produced by the valueTemplateStringWithRoot - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitValueTemplateStringWithRoot([NotNull] AdaptiveCardsTemplateParser.ValueTemplateStringWithRootContext context); - /// - /// Visit a parse tree produced by the valueString - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitValueString([NotNull] AdaptiveCardsTemplateParser.ValueStringContext context); - /// - /// Visit a parse tree produced by the valueNumber - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitValueNumber([NotNull] AdaptiveCardsTemplateParser.ValueNumberContext context); - /// - /// Visit a parse tree produced by the valueObject - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitValueObject([NotNull] AdaptiveCardsTemplateParser.ValueObjectContext context); - /// - /// Visit a parse tree produced by the valueArray - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitValueArray([NotNull] AdaptiveCardsTemplateParser.ValueArrayContext context); - /// - /// Visit a parse tree produced by the valueTrue - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitValueTrue([NotNull] AdaptiveCardsTemplateParser.ValueTrueContext context); - /// - /// Visit a parse tree produced by the valueFalse - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitValueFalse([NotNull] AdaptiveCardsTemplateParser.ValueFalseContext context); - /// - /// Visit a parse tree produced by the valueNull - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitValueNull([NotNull] AdaptiveCardsTemplateParser.ValueNullContext context); - /// - /// Visit a parse tree produced by the templatedString - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitTemplatedString([NotNull] AdaptiveCardsTemplateParser.TemplatedStringContext context); - /// - /// Visit a parse tree produced by the templateStringWithRoot - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitTemplateStringWithRoot([NotNull] AdaptiveCardsTemplateParser.TemplateStringWithRootContext context); - /// - /// Visit a parse tree produced by the valueTemplateExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitValueTemplateExpression([NotNull] AdaptiveCardsTemplateParser.ValueTemplateExpressionContext context); + /// + /// Visit a parse tree produced by . + /// + /// The parse tree. + /// The visitor result. + Result VisitJson([NotNull] AdaptiveCardsTemplateParser.JsonContext context); + /// + /// Visit a parse tree produced by . + /// + /// The parse tree. + /// The visitor result. + Result VisitObj([NotNull] AdaptiveCardsTemplateParser.ObjContext context); + /// + /// Visit a parse tree produced by the jsonPair + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitJsonPair([NotNull] AdaptiveCardsTemplateParser.JsonPairContext context); + /// + /// Visit a parse tree produced by the templateRootData + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitTemplateRootData([NotNull] AdaptiveCardsTemplateParser.TemplateRootDataContext context); + /// + /// Visit a parse tree produced by the templateData + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitTemplateData([NotNull] AdaptiveCardsTemplateParser.TemplateDataContext context); + /// + /// Visit a parse tree produced by the templateWhen + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitTemplateWhen([NotNull] AdaptiveCardsTemplateParser.TemplateWhenContext context); + /// + /// Visit a parse tree produced by . + /// + /// The parse tree. + /// The visitor result. + Result VisitArray([NotNull] AdaptiveCardsTemplateParser.ArrayContext context); + /// + /// Visit a parse tree produced by the valueTemplateString + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitValueTemplateString([NotNull] AdaptiveCardsTemplateParser.ValueTemplateStringContext context); + /// + /// Visit a parse tree produced by the valueTemplateStringWithRoot + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitValueTemplateStringWithRoot([NotNull] AdaptiveCardsTemplateParser.ValueTemplateStringWithRootContext context); + /// + /// Visit a parse tree produced by the valueString + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitValueString([NotNull] AdaptiveCardsTemplateParser.ValueStringContext context); + /// + /// Visit a parse tree produced by the valueNumber + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitValueNumber([NotNull] AdaptiveCardsTemplateParser.ValueNumberContext context); + /// + /// Visit a parse tree produced by the valueObject + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitValueObject([NotNull] AdaptiveCardsTemplateParser.ValueObjectContext context); + /// + /// Visit a parse tree produced by the valueArray + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitValueArray([NotNull] AdaptiveCardsTemplateParser.ValueArrayContext context); + /// + /// Visit a parse tree produced by the valueTrue + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitValueTrue([NotNull] AdaptiveCardsTemplateParser.ValueTrueContext context); + /// + /// Visit a parse tree produced by the valueFalse + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitValueFalse([NotNull] AdaptiveCardsTemplateParser.ValueFalseContext context); + /// + /// Visit a parse tree produced by the valueNull + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitValueNull([NotNull] AdaptiveCardsTemplateParser.ValueNullContext context); + /// + /// Visit a parse tree produced by the templatedString + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitTemplatedString([NotNull] AdaptiveCardsTemplateParser.TemplatedStringContext context); + /// + /// Visit a parse tree produced by the templateStringWithRoot + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitTemplateStringWithRoot([NotNull] AdaptiveCardsTemplateParser.TemplateStringWithRootContext context); + /// + /// Visit a parse tree produced by the valueTemplateExpression + /// labeled alternative in . + /// + /// The parse tree. + /// The visitor result. + Result VisitValueTemplateExpression([NotNull] AdaptiveCardsTemplateParser.ValueTemplateExpressionContext context); } diff --git a/source/dotnet/Library/AdaptiveCards.Templating/tool/makefile b/source/dotnet/Library/AdaptiveCards.Templating/tool/makefile index eeb23c3b82..60159f7d5b 100644 --- a/source/dotnet/Library/AdaptiveCards.Templating/tool/makefile +++ b/source/dotnet/Library/AdaptiveCards.Templating/tool/makefile @@ -1,6 +1,6 @@ sources = $(wildcard *.java) classes = $(wildcard *.class) -JAR=/usr/local/lib/antlr-4.8-complete.jar +JAR=/usr/local/lib/antlr-4.11.1-complete.jar JAVA=/usr/bin/java LEXER=../AdaptiveCardsTemplateLexer.g4 PARSER=../AdaptiveCardsTemplateParser.g4 diff --git a/source/dotnet/Samples/WPFVisualizer/AdaptiveCards.Sample.WPFVisualizer.csproj b/source/dotnet/Samples/WPFVisualizer/AdaptiveCards.Sample.WPFVisualizer.csproj index 56400b1972..25a6851e70 100644 --- a/source/dotnet/Samples/WPFVisualizer/AdaptiveCards.Sample.WPFVisualizer.csproj +++ b/source/dotnet/Samples/WPFVisualizer/AdaptiveCards.Sample.WPFVisualizer.csproj @@ -191,7 +191,7 @@ 4.0.1 - 12.0.3 + 13.0.3 5.7.0 diff --git a/source/dotnet/Test/AdaptiveCards.Templating.Test/AdaptiveCards.Templating.Test.csproj b/source/dotnet/Test/AdaptiveCards.Templating.Test/AdaptiveCards.Templating.Test.csproj index 3aa8996f95..13a860a3d4 100644 --- a/source/dotnet/Test/AdaptiveCards.Templating.Test/AdaptiveCards.Templating.Test.csproj +++ b/source/dotnet/Test/AdaptiveCards.Templating.Test/AdaptiveCards.Templating.Test.csproj @@ -7,8 +7,8 @@ - - + +