How to use lookahead_0 method in Cucumber-gherkin

Best JavaScript code snippet using cucumber-gherkin

gherkin.js

Source:gherkin.js Github

copy

Full Screen

...4903      build(context, token);4904      return 20;4905    }4906    if(match_TagLine(context, token)) {4907      if(lookahead_0(context, token)) {4908      startRule(context, 'Examples_Definition');4909      startRule(context, 'Tags');4910      build(context, token);4911      return 22;4912      }4913    }4914    if(match_TagLine(context, token)) {4915      endRule(context, 'ScenarioOutline');4916      endRule(context, 'Scenario_Definition');4917      startRule(context, 'Scenario_Definition');4918      startRule(context, 'Tags');4919      build(context, token);4920      return 11;4921    }4922    if(match_ExamplesLine(context, token)) {4923      startRule(context, 'Examples_Definition');4924      startRule(context, 'Examples');4925      build(context, token);4926      return 23;4927    }4928    if(match_ScenarioLine(context, token)) {4929      endRule(context, 'ScenarioOutline');4930      endRule(context, 'Scenario_Definition');4931      startRule(context, 'Scenario_Definition');4932      startRule(context, 'Scenario');4933      build(context, token);4934      return 12;4935    }4936    if(match_ScenarioOutlineLine(context, token)) {4937      endRule(context, 'ScenarioOutline');4938      endRule(context, 'Scenario_Definition');4939      startRule(context, 'Scenario_Definition');4940      startRule(context, 'ScenarioOutline');4941      build(context, token);4942      return 17;4943    }4944    if(match_Other(context, token)) {4945      startRule(context, 'Description');4946      build(context, token);4947      return 18;4948    }4949    4950    var stateComment = "State: 17 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:0>#ScenarioOutlineLine:0";4951    token.detach();4952    var expectedTokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];4953    var error = token.isEof ?4954      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :4955      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);4956    if (self.stopAtFirstError) throw error;4957    addError(context, error);4958    return 17;4959  }4960  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:1>Description:0>#Other:04961  function matchTokenAt_18(token, context) {4962    if(match_EOF(context, token)) {4963      endRule(context, 'Description');4964      endRule(context, 'ScenarioOutline');4965      endRule(context, 'Scenario_Definition');4966      endRule(context, 'Feature');4967      build(context, token);4968      return 27;4969    }4970    if(match_Comment(context, token)) {4971      endRule(context, 'Description');4972      build(context, token);4973      return 19;4974    }4975    if(match_StepLine(context, token)) {4976      endRule(context, 'Description');4977      startRule(context, 'Step');4978      build(context, token);4979      return 20;4980    }4981    if(match_TagLine(context, token)) {4982      if(lookahead_0(context, token)) {4983      endRule(context, 'Description');4984      startRule(context, 'Examples_Definition');4985      startRule(context, 'Tags');4986      build(context, token);4987      return 22;4988      }4989    }4990    if(match_TagLine(context, token)) {4991      endRule(context, 'Description');4992      endRule(context, 'ScenarioOutline');4993      endRule(context, 'Scenario_Definition');4994      startRule(context, 'Scenario_Definition');4995      startRule(context, 'Tags');4996      build(context, token);4997      return 11;4998    }4999    if(match_ExamplesLine(context, token)) {5000      endRule(context, 'Description');5001      startRule(context, 'Examples_Definition');5002      startRule(context, 'Examples');5003      build(context, token);5004      return 23;5005    }5006    if(match_ScenarioLine(context, token)) {5007      endRule(context, 'Description');5008      endRule(context, 'ScenarioOutline');5009      endRule(context, 'Scenario_Definition');5010      startRule(context, 'Scenario_Definition');5011      startRule(context, 'Scenario');5012      build(context, token);5013      return 12;5014    }5015    if(match_ScenarioOutlineLine(context, token)) {5016      endRule(context, 'Description');5017      endRule(context, 'ScenarioOutline');5018      endRule(context, 'Scenario_Definition');5019      startRule(context, 'Scenario_Definition');5020      startRule(context, 'ScenarioOutline');5021      build(context, token);5022      return 17;5023    }5024    if(match_Other(context, token)) {5025      build(context, token);5026      return 18;5027    }5028    5029    var stateComment = "State: 18 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:1>Description:0>#Other:0";5030    token.detach();5031    var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];5032    var error = token.isEof ?5033      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5034      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5035    if (self.stopAtFirstError) throw error;5036    addError(context, error);5037    return 18;5038  }5039  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:2>#Comment:05040  function matchTokenAt_19(token, context) {5041    if(match_EOF(context, token)) {5042      endRule(context, 'ScenarioOutline');5043      endRule(context, 'Scenario_Definition');5044      endRule(context, 'Feature');5045      build(context, token);5046      return 27;5047    }5048    if(match_Comment(context, token)) {5049      build(context, token);5050      return 19;5051    }5052    if(match_StepLine(context, token)) {5053      startRule(context, 'Step');5054      build(context, token);5055      return 20;5056    }5057    if(match_TagLine(context, token)) {5058      if(lookahead_0(context, token)) {5059      startRule(context, 'Examples_Definition');5060      startRule(context, 'Tags');5061      build(context, token);5062      return 22;5063      }5064    }5065    if(match_TagLine(context, token)) {5066      endRule(context, 'ScenarioOutline');5067      endRule(context, 'Scenario_Definition');5068      startRule(context, 'Scenario_Definition');5069      startRule(context, 'Tags');5070      build(context, token);5071      return 11;5072    }5073    if(match_ExamplesLine(context, token)) {5074      startRule(context, 'Examples_Definition');5075      startRule(context, 'Examples');5076      build(context, token);5077      return 23;5078    }5079    if(match_ScenarioLine(context, token)) {5080      endRule(context, 'ScenarioOutline');5081      endRule(context, 'Scenario_Definition');5082      startRule(context, 'Scenario_Definition');5083      startRule(context, 'Scenario');5084      build(context, token);5085      return 12;5086    }5087    if(match_ScenarioOutlineLine(context, token)) {5088      endRule(context, 'ScenarioOutline');5089      endRule(context, 'Scenario_Definition');5090      startRule(context, 'Scenario_Definition');5091      startRule(context, 'ScenarioOutline');5092      build(context, token);5093      return 17;5094    }5095    if(match_Empty(context, token)) {5096      build(context, token);5097      return 19;5098    }5099    5100    var stateComment = "State: 19 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:2>#Comment:0";5101    token.detach();5102    var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"];5103    var error = token.isEof ?5104      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5105      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5106    if (self.stopAtFirstError) throw error;5107    addError(context, error);5108    return 19;5109  }5110  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:0>#StepLine:05111  function matchTokenAt_20(token, context) {5112    if(match_EOF(context, token)) {5113      endRule(context, 'Step');5114      endRule(context, 'ScenarioOutline');5115      endRule(context, 'Scenario_Definition');5116      endRule(context, 'Feature');5117      build(context, token);5118      return 27;5119    }5120    if(match_TableRow(context, token)) {5121      startRule(context, 'DataTable');5122      build(context, token);5123      return 21;5124    }5125    if(match_DocStringSeparator(context, token)) {5126      startRule(context, 'DocString');5127      build(context, token);5128      return 28;5129    }5130    if(match_StepLine(context, token)) {5131      endRule(context, 'Step');5132      startRule(context, 'Step');5133      build(context, token);5134      return 20;5135    }5136    if(match_TagLine(context, token)) {5137      if(lookahead_0(context, token)) {5138      endRule(context, 'Step');5139      startRule(context, 'Examples_Definition');5140      startRule(context, 'Tags');5141      build(context, token);5142      return 22;5143      }5144    }5145    if(match_TagLine(context, token)) {5146      endRule(context, 'Step');5147      endRule(context, 'ScenarioOutline');5148      endRule(context, 'Scenario_Definition');5149      startRule(context, 'Scenario_Definition');5150      startRule(context, 'Tags');5151      build(context, token);5152      return 11;5153    }5154    if(match_ExamplesLine(context, token)) {5155      endRule(context, 'Step');5156      startRule(context, 'Examples_Definition');5157      startRule(context, 'Examples');5158      build(context, token);5159      return 23;5160    }5161    if(match_ScenarioLine(context, token)) {5162      endRule(context, 'Step');5163      endRule(context, 'ScenarioOutline');5164      endRule(context, 'Scenario_Definition');5165      startRule(context, 'Scenario_Definition');5166      startRule(context, 'Scenario');5167      build(context, token);5168      return 12;5169    }5170    if(match_ScenarioOutlineLine(context, token)) {5171      endRule(context, 'Step');5172      endRule(context, 'ScenarioOutline');5173      endRule(context, 'Scenario_Definition');5174      startRule(context, 'Scenario_Definition');5175      startRule(context, 'ScenarioOutline');5176      build(context, token);5177      return 17;5178    }5179    if(match_Comment(context, token)) {5180      build(context, token);5181      return 20;5182    }5183    if(match_Empty(context, token)) {5184      build(context, token);5185      return 20;5186    }5187    5188    var stateComment = "State: 20 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:0>#StepLine:0";5189    token.detach();5190    var expectedTokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];5191    var error = token.isEof ?5192      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5193      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5194    if (self.stopAtFirstError) throw error;5195    addError(context, error);5196    return 20;5197  }5198  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:05199  function matchTokenAt_21(token, context) {5200    if(match_EOF(context, token)) {5201      endRule(context, 'DataTable');5202      endRule(context, 'Step');5203      endRule(context, 'ScenarioOutline');5204      endRule(context, 'Scenario_Definition');5205      endRule(context, 'Feature');5206      build(context, token);5207      return 27;5208    }5209    if(match_TableRow(context, token)) {5210      build(context, token);5211      return 21;5212    }5213    if(match_StepLine(context, token)) {5214      endRule(context, 'DataTable');5215      endRule(context, 'Step');5216      startRule(context, 'Step');5217      build(context, token);5218      return 20;5219    }5220    if(match_TagLine(context, token)) {5221      if(lookahead_0(context, token)) {5222      endRule(context, 'DataTable');5223      endRule(context, 'Step');5224      startRule(context, 'Examples_Definition');5225      startRule(context, 'Tags');5226      build(context, token);5227      return 22;5228      }5229    }5230    if(match_TagLine(context, token)) {5231      endRule(context, 'DataTable');5232      endRule(context, 'Step');5233      endRule(context, 'ScenarioOutline');5234      endRule(context, 'Scenario_Definition');5235      startRule(context, 'Scenario_Definition');5236      startRule(context, 'Tags');5237      build(context, token);5238      return 11;5239    }5240    if(match_ExamplesLine(context, token)) {5241      endRule(context, 'DataTable');5242      endRule(context, 'Step');5243      startRule(context, 'Examples_Definition');5244      startRule(context, 'Examples');5245      build(context, token);5246      return 23;5247    }5248    if(match_ScenarioLine(context, token)) {5249      endRule(context, 'DataTable');5250      endRule(context, 'Step');5251      endRule(context, 'ScenarioOutline');5252      endRule(context, 'Scenario_Definition');5253      startRule(context, 'Scenario_Definition');5254      startRule(context, 'Scenario');5255      build(context, token);5256      return 12;5257    }5258    if(match_ScenarioOutlineLine(context, token)) {5259      endRule(context, 'DataTable');5260      endRule(context, 'Step');5261      endRule(context, 'ScenarioOutline');5262      endRule(context, 'Scenario_Definition');5263      startRule(context, 'Scenario_Definition');5264      startRule(context, 'ScenarioOutline');5265      build(context, token);5266      return 17;5267    }5268    if(match_Comment(context, token)) {5269      build(context, token);5270      return 21;5271    }5272    if(match_Empty(context, token)) {5273      build(context, token);5274      return 21;5275    }5276    5277    var stateComment = "State: 21 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0";5278    token.detach();5279    var expectedTokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];5280    var error = token.isEof ?5281      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5282      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5283    if (self.stopAtFirstError) throw error;5284    addError(context, error);5285    return 21;5286  }5287  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:0>Tags:0>#TagLine:05288  function matchTokenAt_22(token, context) {5289    if(match_TagLine(context, token)) {5290      build(context, token);5291      return 22;5292    }5293    if(match_ExamplesLine(context, token)) {5294      endRule(context, 'Tags');5295      startRule(context, 'Examples');5296      build(context, token);5297      return 23;5298    }5299    if(match_Comment(context, token)) {5300      build(context, token);5301      return 22;5302    }5303    if(match_Empty(context, token)) {5304      build(context, token);5305      return 22;5306    }5307    5308    var stateComment = "State: 22 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:0>Tags:0>#TagLine:0";5309    token.detach();5310    var expectedTokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"];5311    var error = token.isEof ?5312      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5313      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5314    if (self.stopAtFirstError) throw error;5315    addError(context, error);5316    return 22;5317  }5318  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:0>#ExamplesLine:05319  function matchTokenAt_23(token, context) {5320    if(match_EOF(context, token)) {5321      endRule(context, 'Examples');5322      endRule(context, 'Examples_Definition');5323      endRule(context, 'ScenarioOutline');5324      endRule(context, 'Scenario_Definition');5325      endRule(context, 'Feature');5326      build(context, token);5327      return 27;5328    }5329    if(match_Empty(context, token)) {5330      build(context, token);5331      return 23;5332    }5333    if(match_Comment(context, token)) {5334      build(context, token);5335      return 25;5336    }5337    if(match_TableRow(context, token)) {5338      startRule(context, 'Examples_Table');5339      build(context, token);5340      return 26;5341    }5342    if(match_TagLine(context, token)) {5343      if(lookahead_0(context, token)) {5344      endRule(context, 'Examples');5345      endRule(context, 'Examples_Definition');5346      startRule(context, 'Examples_Definition');5347      startRule(context, 'Tags');5348      build(context, token);5349      return 22;5350      }5351    }5352    if(match_TagLine(context, token)) {5353      endRule(context, 'Examples');5354      endRule(context, 'Examples_Definition');5355      endRule(context, 'ScenarioOutline');5356      endRule(context, 'Scenario_Definition');5357      startRule(context, 'Scenario_Definition');5358      startRule(context, 'Tags');5359      build(context, token);5360      return 11;5361    }5362    if(match_ExamplesLine(context, token)) {5363      endRule(context, 'Examples');5364      endRule(context, 'Examples_Definition');5365      startRule(context, 'Examples_Definition');5366      startRule(context, 'Examples');5367      build(context, token);5368      return 23;5369    }5370    if(match_ScenarioLine(context, token)) {5371      endRule(context, 'Examples');5372      endRule(context, 'Examples_Definition');5373      endRule(context, 'ScenarioOutline');5374      endRule(context, 'Scenario_Definition');5375      startRule(context, 'Scenario_Definition');5376      startRule(context, 'Scenario');5377      build(context, token);5378      return 12;5379    }5380    if(match_ScenarioOutlineLine(context, token)) {5381      endRule(context, 'Examples');5382      endRule(context, 'Examples_Definition');5383      endRule(context, 'ScenarioOutline');5384      endRule(context, 'Scenario_Definition');5385      startRule(context, 'Scenario_Definition');5386      startRule(context, 'ScenarioOutline');5387      build(context, token);5388      return 17;5389    }5390    if(match_Other(context, token)) {5391      startRule(context, 'Description');5392      build(context, token);5393      return 24;5394    }5395    5396    var stateComment = "State: 23 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:0>#ExamplesLine:0";5397    token.detach();5398    var expectedTokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];5399    var error = token.isEof ?5400      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5401      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5402    if (self.stopAtFirstError) throw error;5403    addError(context, error);5404    return 23;5405  }5406  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:1>Description:0>#Other:05407  function matchTokenAt_24(token, context) {5408    if(match_EOF(context, token)) {5409      endRule(context, 'Description');5410      endRule(context, 'Examples');5411      endRule(context, 'Examples_Definition');5412      endRule(context, 'ScenarioOutline');5413      endRule(context, 'Scenario_Definition');5414      endRule(context, 'Feature');5415      build(context, token);5416      return 27;5417    }5418    if(match_Comment(context, token)) {5419      endRule(context, 'Description');5420      build(context, token);5421      return 25;5422    }5423    if(match_TableRow(context, token)) {5424      endRule(context, 'Description');5425      startRule(context, 'Examples_Table');5426      build(context, token);5427      return 26;5428    }5429    if(match_TagLine(context, token)) {5430      if(lookahead_0(context, token)) {5431      endRule(context, 'Description');5432      endRule(context, 'Examples');5433      endRule(context, 'Examples_Definition');5434      startRule(context, 'Examples_Definition');5435      startRule(context, 'Tags');5436      build(context, token);5437      return 22;5438      }5439    }5440    if(match_TagLine(context, token)) {5441      endRule(context, 'Description');5442      endRule(context, 'Examples');5443      endRule(context, 'Examples_Definition');5444      endRule(context, 'ScenarioOutline');5445      endRule(context, 'Scenario_Definition');5446      startRule(context, 'Scenario_Definition');5447      startRule(context, 'Tags');5448      build(context, token);5449      return 11;5450    }5451    if(match_ExamplesLine(context, token)) {5452      endRule(context, 'Description');5453      endRule(context, 'Examples');5454      endRule(context, 'Examples_Definition');5455      startRule(context, 'Examples_Definition');5456      startRule(context, 'Examples');5457      build(context, token);5458      return 23;5459    }5460    if(match_ScenarioLine(context, token)) {5461      endRule(context, 'Description');5462      endRule(context, 'Examples');5463      endRule(context, 'Examples_Definition');5464      endRule(context, 'ScenarioOutline');5465      endRule(context, 'Scenario_Definition');5466      startRule(context, 'Scenario_Definition');5467      startRule(context, 'Scenario');5468      build(context, token);5469      return 12;5470    }5471    if(match_ScenarioOutlineLine(context, token)) {5472      endRule(context, 'Description');5473      endRule(context, 'Examples');5474      endRule(context, 'Examples_Definition');5475      endRule(context, 'ScenarioOutline');5476      endRule(context, 'Scenario_Definition');5477      startRule(context, 'Scenario_Definition');5478      startRule(context, 'ScenarioOutline');5479      build(context, token);5480      return 17;5481    }5482    if(match_Other(context, token)) {5483      build(context, token);5484      return 24;5485    }5486    5487    var stateComment = "State: 24 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:1>Description:0>#Other:0";5488    token.detach();5489    var expectedTokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];5490    var error = token.isEof ?5491      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5492      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5493    if (self.stopAtFirstError) throw error;5494    addError(context, error);5495    return 24;5496  }5497  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:2>#Comment:05498  function matchTokenAt_25(token, context) {5499    if(match_EOF(context, token)) {5500      endRule(context, 'Examples');5501      endRule(context, 'Examples_Definition');5502      endRule(context, 'ScenarioOutline');5503      endRule(context, 'Scenario_Definition');5504      endRule(context, 'Feature');5505      build(context, token);5506      return 27;5507    }5508    if(match_Comment(context, token)) {5509      build(context, token);5510      return 25;5511    }5512    if(match_TableRow(context, token)) {5513      startRule(context, 'Examples_Table');5514      build(context, token);5515      return 26;5516    }5517    if(match_TagLine(context, token)) {5518      if(lookahead_0(context, token)) {5519      endRule(context, 'Examples');5520      endRule(context, 'Examples_Definition');5521      startRule(context, 'Examples_Definition');5522      startRule(context, 'Tags');5523      build(context, token);5524      return 22;5525      }5526    }5527    if(match_TagLine(context, token)) {5528      endRule(context, 'Examples');5529      endRule(context, 'Examples_Definition');5530      endRule(context, 'ScenarioOutline');5531      endRule(context, 'Scenario_Definition');5532      startRule(context, 'Scenario_Definition');5533      startRule(context, 'Tags');5534      build(context, token);5535      return 11;5536    }5537    if(match_ExamplesLine(context, token)) {5538      endRule(context, 'Examples');5539      endRule(context, 'Examples_Definition');5540      startRule(context, 'Examples_Definition');5541      startRule(context, 'Examples');5542      build(context, token);5543      return 23;5544    }5545    if(match_ScenarioLine(context, token)) {5546      endRule(context, 'Examples');5547      endRule(context, 'Examples_Definition');5548      endRule(context, 'ScenarioOutline');5549      endRule(context, 'Scenario_Definition');5550      startRule(context, 'Scenario_Definition');5551      startRule(context, 'Scenario');5552      build(context, token);5553      return 12;5554    }5555    if(match_ScenarioOutlineLine(context, token)) {5556      endRule(context, 'Examples');5557      endRule(context, 'Examples_Definition');5558      endRule(context, 'ScenarioOutline');5559      endRule(context, 'Scenario_Definition');5560      startRule(context, 'Scenario_Definition');5561      startRule(context, 'ScenarioOutline');5562      build(context, token);5563      return 17;5564    }5565    if(match_Empty(context, token)) {5566      build(context, token);5567      return 25;5568    }5569    5570    var stateComment = "State: 25 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:2>#Comment:0";5571    token.detach();5572    var expectedTokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"];5573    var error = token.isEof ?5574      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5575      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5576    if (self.stopAtFirstError) throw error;5577    addError(context, error);5578    return 25;5579  }5580  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:2>Examples_Table:0>#TableRow:05581  function matchTokenAt_26(token, context) {5582    if(match_EOF(context, token)) {5583      endRule(context, 'Examples_Table');5584      endRule(context, 'Examples');5585      endRule(context, 'Examples_Definition');5586      endRule(context, 'ScenarioOutline');5587      endRule(context, 'Scenario_Definition');5588      endRule(context, 'Feature');5589      build(context, token);5590      return 27;5591    }5592    if(match_TableRow(context, token)) {5593      build(context, token);5594      return 26;5595    }5596    if(match_TagLine(context, token)) {5597      if(lookahead_0(context, token)) {5598      endRule(context, 'Examples_Table');5599      endRule(context, 'Examples');5600      endRule(context, 'Examples_Definition');5601      startRule(context, 'Examples_Definition');5602      startRule(context, 'Tags');5603      build(context, token);5604      return 22;5605      }5606    }5607    if(match_TagLine(context, token)) {5608      endRule(context, 'Examples_Table');5609      endRule(context, 'Examples');5610      endRule(context, 'Examples_Definition');5611      endRule(context, 'ScenarioOutline');5612      endRule(context, 'Scenario_Definition');5613      startRule(context, 'Scenario_Definition');5614      startRule(context, 'Tags');5615      build(context, token);5616      return 11;5617    }5618    if(match_ExamplesLine(context, token)) {5619      endRule(context, 'Examples_Table');5620      endRule(context, 'Examples');5621      endRule(context, 'Examples_Definition');5622      startRule(context, 'Examples_Definition');5623      startRule(context, 'Examples');5624      build(context, token);5625      return 23;5626    }5627    if(match_ScenarioLine(context, token)) {5628      endRule(context, 'Examples_Table');5629      endRule(context, 'Examples');5630      endRule(context, 'Examples_Definition');5631      endRule(context, 'ScenarioOutline');5632      endRule(context, 'Scenario_Definition');5633      startRule(context, 'Scenario_Definition');5634      startRule(context, 'Scenario');5635      build(context, token);5636      return 12;5637    }5638    if(match_ScenarioOutlineLine(context, token)) {5639      endRule(context, 'Examples_Table');5640      endRule(context, 'Examples');5641      endRule(context, 'Examples_Definition');5642      endRule(context, 'ScenarioOutline');5643      endRule(context, 'Scenario_Definition');5644      startRule(context, 'Scenario_Definition');5645      startRule(context, 'ScenarioOutline');5646      build(context, token);5647      return 17;5648    }5649    if(match_Comment(context, token)) {5650      build(context, token);5651      return 26;5652    }5653    if(match_Empty(context, token)) {5654      build(context, token);5655      return 26;5656    }5657    5658    var stateComment = "State: 26 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:2>Examples_Table:0>#TableRow:0";5659    token.detach();5660    var expectedTokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];5661    var error = token.isEof ?5662      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5663      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5664    if (self.stopAtFirstError) throw error;5665    addError(context, error);5666    return 26;5667  }5668  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:05669  function matchTokenAt_28(token, context) {5670    if(match_DocStringSeparator(context, token)) {5671      build(context, token);5672      return 29;5673    }5674    if(match_Other(context, token)) {5675      build(context, token);5676      return 28;5677    }5678    5679    var stateComment = "State: 28 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0";5680    token.detach();5681    var expectedTokens = ["#DocStringSeparator", "#Other"];5682    var error = token.isEof ?5683      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5684      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5685    if (self.stopAtFirstError) throw error;5686    addError(context, error);5687    return 28;5688  }5689  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:05690  function matchTokenAt_29(token, context) {5691    if(match_EOF(context, token)) {5692      endRule(context, 'DocString');5693      endRule(context, 'Step');5694      endRule(context, 'ScenarioOutline');5695      endRule(context, 'Scenario_Definition');5696      endRule(context, 'Feature');5697      build(context, token);5698      return 27;5699    }5700    if(match_StepLine(context, token)) {5701      endRule(context, 'DocString');5702      endRule(context, 'Step');5703      startRule(context, 'Step');5704      build(context, token);5705      return 20;5706    }5707    if(match_TagLine(context, token)) {5708      if(lookahead_0(context, token)) {5709      endRule(context, 'DocString');5710      endRule(context, 'Step');5711      startRule(context, 'Examples_Definition');5712      startRule(context, 'Tags');5713      build(context, token);5714      return 22;5715      }5716    }5717    if(match_TagLine(context, token)) {5718      endRule(context, 'DocString');5719      endRule(context, 'Step');5720      endRule(context, 'ScenarioOutline');5721      endRule(context, 'Scenario_Definition');5722      startRule(context, 'Scenario_Definition');5723      startRule(context, 'Tags');5724      build(context, token);5725      return 11;5726    }5727    if(match_ExamplesLine(context, token)) {5728      endRule(context, 'DocString');5729      endRule(context, 'Step');5730      startRule(context, 'Examples_Definition');5731      startRule(context, 'Examples');5732      build(context, token);5733      return 23;5734    }5735    if(match_ScenarioLine(context, token)) {5736      endRule(context, 'DocString');5737      endRule(context, 'Step');5738      endRule(context, 'ScenarioOutline');5739      endRule(context, 'Scenario_Definition');5740      startRule(context, 'Scenario_Definition');5741      startRule(context, 'Scenario');5742      build(context, token);5743      return 12;5744    }5745    if(match_ScenarioOutlineLine(context, token)) {5746      endRule(context, 'DocString');5747      endRule(context, 'Step');5748      endRule(context, 'ScenarioOutline');5749      endRule(context, 'Scenario_Definition');5750      startRule(context, 'Scenario_Definition');5751      startRule(context, 'ScenarioOutline');5752      build(context, token);5753      return 17;5754    }5755    if(match_Comment(context, token)) {5756      build(context, token);5757      return 29;5758    }5759    if(match_Empty(context, token)) {5760      build(context, token);5761      return 29;5762    }5763    5764    var stateComment = "State: 29 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0";5765    token.detach();5766    var expectedTokens = ["#EOF", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];5767    var error = token.isEof ?5768      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5769      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5770    if (self.stopAtFirstError) throw error;5771    addError(context, error);5772    return 29;5773  }5774  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:05775  function matchTokenAt_30(token, context) {5776    if(match_DocStringSeparator(context, token)) {5777      build(context, token);5778      return 31;5779    }5780    if(match_Other(context, token)) {5781      build(context, token);5782      return 30;5783    }5784    5785    var stateComment = "State: 30 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0";5786    token.detach();5787    var expectedTokens = ["#DocStringSeparator", "#Other"];5788    var error = token.isEof ?5789      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5790      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5791    if (self.stopAtFirstError) throw error;5792    addError(context, error);5793    return 30;5794  }5795  // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:05796  function matchTokenAt_31(token, context) {5797    if(match_EOF(context, token)) {5798      endRule(context, 'DocString');5799      endRule(context, 'Step');5800      endRule(context, 'Scenario');5801      endRule(context, 'Scenario_Definition');5802      endRule(context, 'Feature');5803      build(context, token);5804      return 27;5805    }5806    if(match_StepLine(context, token)) {5807      endRule(context, 'DocString');5808      endRule(context, 'Step');5809      startRule(context, 'Step');5810      build(context, token);5811      return 15;5812    }5813    if(match_TagLine(context, token)) {5814      endRule(context, 'DocString');5815      endRule(context, 'Step');5816      endRule(context, 'Scenario');5817      endRule(context, 'Scenario_Definition');5818      startRule(context, 'Scenario_Definition');5819      startRule(context, 'Tags');5820      build(context, token);5821      return 11;5822    }5823    if(match_ScenarioLine(context, token)) {5824      endRule(context, 'DocString');5825      endRule(context, 'Step');5826      endRule(context, 'Scenario');5827      endRule(context, 'Scenario_Definition');5828      startRule(context, 'Scenario_Definition');5829      startRule(context, 'Scenario');5830      build(context, token);5831      return 12;5832    }5833    if(match_ScenarioOutlineLine(context, token)) {5834      endRule(context, 'DocString');5835      endRule(context, 'Step');5836      endRule(context, 'Scenario');5837      endRule(context, 'Scenario_Definition');5838      startRule(context, 'Scenario_Definition');5839      startRule(context, 'ScenarioOutline');5840      build(context, token);5841      return 17;5842    }5843    if(match_Comment(context, token)) {5844      build(context, token);5845      return 31;5846    }5847    if(match_Empty(context, token)) {5848      build(context, token);5849      return 31;5850    }5851    5852    var stateComment = "State: 31 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0";5853    token.detach();5854    var expectedTokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];5855    var error = token.isEof ?5856      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5857      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5858    if (self.stopAtFirstError) throw error;5859    addError(context, error);5860    return 31;5861  }5862  // GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:05863  function matchTokenAt_32(token, context) {5864    if(match_DocStringSeparator(context, token)) {5865      build(context, token);5866      return 33;5867    }5868    if(match_Other(context, token)) {5869      build(context, token);5870      return 32;5871    }5872    5873    var stateComment = "State: 32 - GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0";5874    token.detach();5875    var expectedTokens = ["#DocStringSeparator", "#Other"];5876    var error = token.isEof ?5877      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5878      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5879    if (self.stopAtFirstError) throw error;5880    addError(context, error);5881    return 32;5882  }5883  // GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:05884  function matchTokenAt_33(token, context) {5885    if(match_EOF(context, token)) {5886      endRule(context, 'DocString');5887      endRule(context, 'Step');5888      endRule(context, 'Background');5889      endRule(context, 'Feature');5890      build(context, token);5891      return 27;5892    }5893    if(match_StepLine(context, token)) {5894      endRule(context, 'DocString');5895      endRule(context, 'Step');5896      startRule(context, 'Step');5897      build(context, token);5898      return 9;5899    }5900    if(match_TagLine(context, token)) {5901      endRule(context, 'DocString');5902      endRule(context, 'Step');5903      endRule(context, 'Background');5904      startRule(context, 'Scenario_Definition');5905      startRule(context, 'Tags');5906      build(context, token);5907      return 11;5908    }5909    if(match_ScenarioLine(context, token)) {5910      endRule(context, 'DocString');5911      endRule(context, 'Step');5912      endRule(context, 'Background');5913      startRule(context, 'Scenario_Definition');5914      startRule(context, 'Scenario');5915      build(context, token);5916      return 12;5917    }5918    if(match_ScenarioOutlineLine(context, token)) {5919      endRule(context, 'DocString');5920      endRule(context, 'Step');5921      endRule(context, 'Background');5922      startRule(context, 'Scenario_Definition');5923      startRule(context, 'ScenarioOutline');5924      build(context, token);5925      return 17;5926    }5927    if(match_Comment(context, token)) {5928      build(context, token);5929      return 33;5930    }5931    if(match_Empty(context, token)) {5932      build(context, token);5933      return 33;5934    }5935    5936    var stateComment = "State: 33 - GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0";5937    token.detach();5938    var expectedTokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];5939    var error = token.isEof ?5940      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :5941      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);5942    if (self.stopAtFirstError) throw error;5943    addError(context, error);5944    return 33;5945  }5946  function match_EOF(context, token) {5947    return handleExternalError(context, false, function () {5948      return context.tokenMatcher.match_EOF(token);5949    });5950  }5951  function match_Empty(context, token) {5952    if(token.isEof) return false;5953    return handleExternalError(context, false, function () {5954      return context.tokenMatcher.match_Empty(token);5955    });5956  }5957  function match_Comment(context, token) {5958    if(token.isEof) return false;5959    return handleExternalError(context, false, function () {5960      return context.tokenMatcher.match_Comment(token);5961    });5962  }5963  function match_TagLine(context, token) {5964    if(token.isEof) return false;5965    return handleExternalError(context, false, function () {5966      return context.tokenMatcher.match_TagLine(token);5967    });5968  }5969  function match_FeatureLine(context, token) {5970    if(token.isEof) return false;5971    return handleExternalError(context, false, function () {5972      return context.tokenMatcher.match_FeatureLine(token);5973    });5974  }5975  function match_BackgroundLine(context, token) {5976    if(token.isEof) return false;5977    return handleExternalError(context, false, function () {5978      return context.tokenMatcher.match_BackgroundLine(token);5979    });5980  }5981  function match_ScenarioLine(context, token) {5982    if(token.isEof) return false;5983    return handleExternalError(context, false, function () {5984      return context.tokenMatcher.match_ScenarioLine(token);5985    });5986  }5987  function match_ScenarioOutlineLine(context, token) {5988    if(token.isEof) return false;5989    return handleExternalError(context, false, function () {5990      return context.tokenMatcher.match_ScenarioOutlineLine(token);5991    });5992  }5993  function match_ExamplesLine(context, token) {5994    if(token.isEof) return false;5995    return handleExternalError(context, false, function () {5996      return context.tokenMatcher.match_ExamplesLine(token);5997    });5998  }5999  function match_StepLine(context, token) {6000    if(token.isEof) return false;6001    return handleExternalError(context, false, function () {6002      return context.tokenMatcher.match_StepLine(token);6003    });6004  }6005  function match_DocStringSeparator(context, token) {6006    if(token.isEof) return false;6007    return handleExternalError(context, false, function () {6008      return context.tokenMatcher.match_DocStringSeparator(token);6009    });6010  }6011  function match_TableRow(context, token) {6012    if(token.isEof) return false;6013    return handleExternalError(context, false, function () {6014      return context.tokenMatcher.match_TableRow(token);6015    });6016  }6017  function match_Language(context, token) {6018    if(token.isEof) return false;6019    return handleExternalError(context, false, function () {6020      return context.tokenMatcher.match_Language(token);6021    });6022  }6023  function match_Other(context, token) {6024    if(token.isEof) return false;6025    return handleExternalError(context, false, function () {6026      return context.tokenMatcher.match_Other(token);6027    });6028  }6029  function lookahead_0(context, currentToken) {6030    currentToken.detach();6031    var token;6032    var queue = [];6033    var match = false;6034    do {6035      token = readToken(context);6036      token.detach();6037      queue.push(token);6038      if (false  || match_ExamplesLine(context, token)) {6039        match = true;6040        break;6041      }6042    } while(false  || match_Empty(context, token) || match_Comment(context, token) || match_TagLine(context, token));6043    context.tokenQueue = context.tokenQueue.concat(queue);...

Full Screen

Full Screen

parser.py

Source:parser.py Github

copy

Full Screen

...304                self.start_rule(context, 'Background')305                self.build(context, token)306                return 6307        if self.match_TagLine(context, token):308            if self.lookahead_0(context, token):309                self.end_rule(context, 'FeatureHeader')310                self.start_rule(context, 'ScenarioDefinition')311                self.start_rule(context, 'Tags')312                self.build(context, token)313                return 11314        if self.match_TagLine(context, token):315                self.end_rule(context, 'FeatureHeader')316                self.start_rule(context, 'Rule')317                self.start_rule(context, 'RuleHeader')318                self.start_rule(context, 'Tags')319                self.build(context, token)320                return 22321        if self.match_ScenarioLine(context, token):322                self.end_rule(context, 'FeatureHeader')323                self.start_rule(context, 'ScenarioDefinition')324                self.start_rule(context, 'Scenario')325                self.build(context, token)326                return 12327        if self.match_RuleLine(context, token):328                self.end_rule(context, 'FeatureHeader')329                self.start_rule(context, 'Rule')330                self.start_rule(context, 'RuleHeader')331                self.build(context, token)332                return 23333        if self.match_Other(context, token):334                self.start_rule(context, 'Description')335                self.build(context, token)336                return 4337        state_comment = "State: 3 - GherkinDocument:0>Feature:0>FeatureHeader:2>#FeatureLine:0"338        token.detach339        expected_tokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]340        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)341        if (self.stop_at_first_error):342            raise error343        self.add_error(context, error)344        return 3345    # GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0346    def match_token_at_4(self, token, context):347        if self.match_EOF(context, token):348                self.end_rule(context, 'Description')349                self.end_rule(context, 'FeatureHeader')350                self.end_rule(context, 'Feature')351                self.build(context, token)352                return 42353        if self.match_Comment(context, token):354                self.end_rule(context, 'Description')355                self.build(context, token)356                return 5357        if self.match_BackgroundLine(context, token):358                self.end_rule(context, 'Description')359                self.end_rule(context, 'FeatureHeader')360                self.start_rule(context, 'Background')361                self.build(context, token)362                return 6363        if self.match_TagLine(context, token):364            if self.lookahead_0(context, token):365                self.end_rule(context, 'Description')366                self.end_rule(context, 'FeatureHeader')367                self.start_rule(context, 'ScenarioDefinition')368                self.start_rule(context, 'Tags')369                self.build(context, token)370                return 11371        if self.match_TagLine(context, token):372                self.end_rule(context, 'Description')373                self.end_rule(context, 'FeatureHeader')374                self.start_rule(context, 'Rule')375                self.start_rule(context, 'RuleHeader')376                self.start_rule(context, 'Tags')377                self.build(context, token)378                return 22379        if self.match_ScenarioLine(context, token):380                self.end_rule(context, 'Description')381                self.end_rule(context, 'FeatureHeader')382                self.start_rule(context, 'ScenarioDefinition')383                self.start_rule(context, 'Scenario')384                self.build(context, token)385                return 12386        if self.match_RuleLine(context, token):387                self.end_rule(context, 'Description')388                self.end_rule(context, 'FeatureHeader')389                self.start_rule(context, 'Rule')390                self.start_rule(context, 'RuleHeader')391                self.build(context, token)392                return 23393        if self.match_Other(context, token):394                self.build(context, token)395                return 4396        state_comment = "State: 4 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:1>Description:0>#Other:0"397        token.detach398        expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]399        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)400        if (self.stop_at_first_error):401            raise error402        self.add_error(context, error)403        return 4404    # GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0405    def match_token_at_5(self, token, context):406        if self.match_EOF(context, token):407                self.end_rule(context, 'FeatureHeader')408                self.end_rule(context, 'Feature')409                self.build(context, token)410                return 42411        if self.match_Comment(context, token):412                self.build(context, token)413                return 5414        if self.match_BackgroundLine(context, token):415                self.end_rule(context, 'FeatureHeader')416                self.start_rule(context, 'Background')417                self.build(context, token)418                return 6419        if self.match_TagLine(context, token):420            if self.lookahead_0(context, token):421                self.end_rule(context, 'FeatureHeader')422                self.start_rule(context, 'ScenarioDefinition')423                self.start_rule(context, 'Tags')424                self.build(context, token)425                return 11426        if self.match_TagLine(context, token):427                self.end_rule(context, 'FeatureHeader')428                self.start_rule(context, 'Rule')429                self.start_rule(context, 'RuleHeader')430                self.start_rule(context, 'Tags')431                self.build(context, token)432                return 22433        if self.match_ScenarioLine(context, token):434                self.end_rule(context, 'FeatureHeader')435                self.start_rule(context, 'ScenarioDefinition')436                self.start_rule(context, 'Scenario')437                self.build(context, token)438                return 12439        if self.match_RuleLine(context, token):440                self.end_rule(context, 'FeatureHeader')441                self.start_rule(context, 'Rule')442                self.start_rule(context, 'RuleHeader')443                self.build(context, token)444                return 23445        if self.match_Empty(context, token):446                self.build(context, token)447                return 5448        state_comment = "State: 5 - GherkinDocument:0>Feature:0>FeatureHeader:3>DescriptionHelper:2>#Comment:0"449        token.detach450        expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]451        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)452        if (self.stop_at_first_error):453            raise error454        self.add_error(context, error)455        return 5456    # GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0457    def match_token_at_6(self, token, context):458        if self.match_EOF(context, token):459                self.end_rule(context, 'Background')460                self.end_rule(context, 'Feature')461                self.build(context, token)462                return 42463        if self.match_Empty(context, token):464                self.build(context, token)465                return 6466        if self.match_Comment(context, token):467                self.build(context, token)468                return 8469        if self.match_StepLine(context, token):470                self.start_rule(context, 'Step')471                self.build(context, token)472                return 9473        if self.match_TagLine(context, token):474            if self.lookahead_0(context, token):475                self.end_rule(context, 'Background')476                self.start_rule(context, 'ScenarioDefinition')477                self.start_rule(context, 'Tags')478                self.build(context, token)479                return 11480        if self.match_TagLine(context, token):481                self.end_rule(context, 'Background')482                self.start_rule(context, 'Rule')483                self.start_rule(context, 'RuleHeader')484                self.start_rule(context, 'Tags')485                self.build(context, token)486                return 22487        if self.match_ScenarioLine(context, token):488                self.end_rule(context, 'Background')489                self.start_rule(context, 'ScenarioDefinition')490                self.start_rule(context, 'Scenario')491                self.build(context, token)492                return 12493        if self.match_RuleLine(context, token):494                self.end_rule(context, 'Background')495                self.start_rule(context, 'Rule')496                self.start_rule(context, 'RuleHeader')497                self.build(context, token)498                return 23499        if self.match_Other(context, token):500                self.start_rule(context, 'Description')501                self.build(context, token)502                return 7503        state_comment = "State: 6 - GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0"504        token.detach505        expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]506        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)507        if (self.stop_at_first_error):508            raise error509        self.add_error(context, error)510        return 6511    # GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>#Other:0512    def match_token_at_7(self, token, context):513        if self.match_EOF(context, token):514                self.end_rule(context, 'Description')515                self.end_rule(context, 'Background')516                self.end_rule(context, 'Feature')517                self.build(context, token)518                return 42519        if self.match_Comment(context, token):520                self.end_rule(context, 'Description')521                self.build(context, token)522                return 8523        if self.match_StepLine(context, token):524                self.end_rule(context, 'Description')525                self.start_rule(context, 'Step')526                self.build(context, token)527                return 9528        if self.match_TagLine(context, token):529            if self.lookahead_0(context, token):530                self.end_rule(context, 'Description')531                self.end_rule(context, 'Background')532                self.start_rule(context, 'ScenarioDefinition')533                self.start_rule(context, 'Tags')534                self.build(context, token)535                return 11536        if self.match_TagLine(context, token):537                self.end_rule(context, 'Description')538                self.end_rule(context, 'Background')539                self.start_rule(context, 'Rule')540                self.start_rule(context, 'RuleHeader')541                self.start_rule(context, 'Tags')542                self.build(context, token)543                return 22544        if self.match_ScenarioLine(context, token):545                self.end_rule(context, 'Description')546                self.end_rule(context, 'Background')547                self.start_rule(context, 'ScenarioDefinition')548                self.start_rule(context, 'Scenario')549                self.build(context, token)550                return 12551        if self.match_RuleLine(context, token):552                self.end_rule(context, 'Description')553                self.end_rule(context, 'Background')554                self.start_rule(context, 'Rule')555                self.start_rule(context, 'RuleHeader')556                self.build(context, token)557                return 23558        if self.match_Other(context, token):559                self.build(context, token)560                return 7561        state_comment = "State: 7 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:1>Description:0>#Other:0"562        token.detach563        expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]564        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)565        if (self.stop_at_first_error):566            raise error567        self.add_error(context, error)568        return 7569    # GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0570    def match_token_at_8(self, token, context):571        if self.match_EOF(context, token):572                self.end_rule(context, 'Background')573                self.end_rule(context, 'Feature')574                self.build(context, token)575                return 42576        if self.match_Comment(context, token):577                self.build(context, token)578                return 8579        if self.match_StepLine(context, token):580                self.start_rule(context, 'Step')581                self.build(context, token)582                return 9583        if self.match_TagLine(context, token):584            if self.lookahead_0(context, token):585                self.end_rule(context, 'Background')586                self.start_rule(context, 'ScenarioDefinition')587                self.start_rule(context, 'Tags')588                self.build(context, token)589                return 11590        if self.match_TagLine(context, token):591                self.end_rule(context, 'Background')592                self.start_rule(context, 'Rule')593                self.start_rule(context, 'RuleHeader')594                self.start_rule(context, 'Tags')595                self.build(context, token)596                return 22597        if self.match_ScenarioLine(context, token):598                self.end_rule(context, 'Background')599                self.start_rule(context, 'ScenarioDefinition')600                self.start_rule(context, 'Scenario')601                self.build(context, token)602                return 12603        if self.match_RuleLine(context, token):604                self.end_rule(context, 'Background')605                self.start_rule(context, 'Rule')606                self.start_rule(context, 'RuleHeader')607                self.build(context, token)608                return 23609        if self.match_Empty(context, token):610                self.build(context, token)611                return 8612        state_comment = "State: 8 - GherkinDocument:0>Feature:1>Background:1>DescriptionHelper:2>#Comment:0"613        token.detach614        expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]615        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)616        if (self.stop_at_first_error):617            raise error618        self.add_error(context, error)619        return 8620    # GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0621    def match_token_at_9(self, token, context):622        if self.match_EOF(context, token):623                self.end_rule(context, 'Step')624                self.end_rule(context, 'Background')625                self.end_rule(context, 'Feature')626                self.build(context, token)627                return 42628        if self.match_TableRow(context, token):629                self.start_rule(context, 'DataTable')630                self.build(context, token)631                return 10632        if self.match_DocStringSeparator(context, token):633                self.start_rule(context, 'DocString')634                self.build(context, token)635                return 49636        if self.match_StepLine(context, token):637                self.end_rule(context, 'Step')638                self.start_rule(context, 'Step')639                self.build(context, token)640                return 9641        if self.match_TagLine(context, token):642            if self.lookahead_0(context, token):643                self.end_rule(context, 'Step')644                self.end_rule(context, 'Background')645                self.start_rule(context, 'ScenarioDefinition')646                self.start_rule(context, 'Tags')647                self.build(context, token)648                return 11649        if self.match_TagLine(context, token):650                self.end_rule(context, 'Step')651                self.end_rule(context, 'Background')652                self.start_rule(context, 'Rule')653                self.start_rule(context, 'RuleHeader')654                self.start_rule(context, 'Tags')655                self.build(context, token)656                return 22657        if self.match_ScenarioLine(context, token):658                self.end_rule(context, 'Step')659                self.end_rule(context, 'Background')660                self.start_rule(context, 'ScenarioDefinition')661                self.start_rule(context, 'Scenario')662                self.build(context, token)663                return 12664        if self.match_RuleLine(context, token):665                self.end_rule(context, 'Step')666                self.end_rule(context, 'Background')667                self.start_rule(context, 'Rule')668                self.start_rule(context, 'RuleHeader')669                self.build(context, token)670                return 23671        if self.match_Comment(context, token):672                self.build(context, token)673                return 9674        if self.match_Empty(context, token):675                self.build(context, token)676                return 9677        state_comment = "State: 9 - GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0"678        token.detach679        expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]680        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)681        if (self.stop_at_first_error):682            raise error683        self.add_error(context, error)684        return 9685    # GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0686    def match_token_at_10(self, token, context):687        if self.match_EOF(context, token):688                self.end_rule(context, 'DataTable')689                self.end_rule(context, 'Step')690                self.end_rule(context, 'Background')691                self.end_rule(context, 'Feature')692                self.build(context, token)693                return 42694        if self.match_TableRow(context, token):695                self.build(context, token)696                return 10697        if self.match_StepLine(context, token):698                self.end_rule(context, 'DataTable')699                self.end_rule(context, 'Step')700                self.start_rule(context, 'Step')701                self.build(context, token)702                return 9703        if self.match_TagLine(context, token):704            if self.lookahead_0(context, token):705                self.end_rule(context, 'DataTable')706                self.end_rule(context, 'Step')707                self.end_rule(context, 'Background')708                self.start_rule(context, 'ScenarioDefinition')709                self.start_rule(context, 'Tags')710                self.build(context, token)711                return 11712        if self.match_TagLine(context, token):713                self.end_rule(context, 'DataTable')714                self.end_rule(context, 'Step')715                self.end_rule(context, 'Background')716                self.start_rule(context, 'Rule')717                self.start_rule(context, 'RuleHeader')718                self.start_rule(context, 'Tags')719                self.build(context, token)720                return 22721        if self.match_ScenarioLine(context, token):722                self.end_rule(context, 'DataTable')723                self.end_rule(context, 'Step')724                self.end_rule(context, 'Background')725                self.start_rule(context, 'ScenarioDefinition')726                self.start_rule(context, 'Scenario')727                self.build(context, token)728                return 12729        if self.match_RuleLine(context, token):730                self.end_rule(context, 'DataTable')731                self.end_rule(context, 'Step')732                self.end_rule(context, 'Background')733                self.start_rule(context, 'Rule')734                self.start_rule(context, 'RuleHeader')735                self.build(context, token)736                return 23737        if self.match_Comment(context, token):738                self.build(context, token)739                return 10740        if self.match_Empty(context, token):741                self.build(context, token)742                return 10743        state_comment = "State: 10 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"744        token.detach745        expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]746        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)747        if (self.stop_at_first_error):748            raise error749        self.add_error(context, error)750        return 10751    # GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0752    def match_token_at_11(self, token, context):753        if self.match_TagLine(context, token):754                self.build(context, token)755                return 11756        if self.match_ScenarioLine(context, token):757                self.end_rule(context, 'Tags')758                self.start_rule(context, 'Scenario')759                self.build(context, token)760                return 12761        if self.match_Comment(context, token):762                self.build(context, token)763                return 11764        if self.match_Empty(context, token):765                self.build(context, token)766                return 11767        state_comment = "State: 11 - GherkinDocument:0>Feature:2>ScenarioDefinition:0>Tags:0>#TagLine:0"768        token.detach769        expected_tokens = ["#TagLine", "#ScenarioLine", "#Comment", "#Empty"]770        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)771        if (self.stop_at_first_error):772            raise error773        self.add_error(context, error)774        return 11775    # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0776    def match_token_at_12(self, token, context):777        if self.match_EOF(context, token):778                self.end_rule(context, 'Scenario')779                self.end_rule(context, 'ScenarioDefinition')780                self.end_rule(context, 'Feature')781                self.build(context, token)782                return 42783        if self.match_Empty(context, token):784                self.build(context, token)785                return 12786        if self.match_Comment(context, token):787                self.build(context, token)788                return 14789        if self.match_StepLine(context, token):790                self.start_rule(context, 'Step')791                self.build(context, token)792                return 15793        if self.match_TagLine(context, token):794            if self.lookahead_1(context, token):795                self.start_rule(context, 'ExamplesDefinition')796                self.start_rule(context, 'Tags')797                self.build(context, token)798                return 17799        if self.match_TagLine(context, token):800            if self.lookahead_0(context, token):801                self.end_rule(context, 'Scenario')802                self.end_rule(context, 'ScenarioDefinition')803                self.start_rule(context, 'ScenarioDefinition')804                self.start_rule(context, 'Tags')805                self.build(context, token)806                return 11807        if self.match_TagLine(context, token):808                self.end_rule(context, 'Scenario')809                self.end_rule(context, 'ScenarioDefinition')810                self.start_rule(context, 'Rule')811                self.start_rule(context, 'RuleHeader')812                self.start_rule(context, 'Tags')813                self.build(context, token)814                return 22815        if self.match_ExamplesLine(context, token):816                self.start_rule(context, 'ExamplesDefinition')817                self.start_rule(context, 'Examples')818                self.build(context, token)819                return 18820        if self.match_ScenarioLine(context, token):821                self.end_rule(context, 'Scenario')822                self.end_rule(context, 'ScenarioDefinition')823                self.start_rule(context, 'ScenarioDefinition')824                self.start_rule(context, 'Scenario')825                self.build(context, token)826                return 12827        if self.match_RuleLine(context, token):828                self.end_rule(context, 'Scenario')829                self.end_rule(context, 'ScenarioDefinition')830                self.start_rule(context, 'Rule')831                self.start_rule(context, 'RuleHeader')832                self.build(context, token)833                return 23834        if self.match_Other(context, token):835                self.start_rule(context, 'Description')836                self.build(context, token)837                return 13838        state_comment = "State: 12 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0"839        token.detach840        expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]841        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)842        if (self.stop_at_first_error):843            raise error844        self.add_error(context, error)845        return 12846    # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0847    def match_token_at_13(self, token, context):848        if self.match_EOF(context, token):849                self.end_rule(context, 'Description')850                self.end_rule(context, 'Scenario')851                self.end_rule(context, 'ScenarioDefinition')852                self.end_rule(context, 'Feature')853                self.build(context, token)854                return 42855        if self.match_Comment(context, token):856                self.end_rule(context, 'Description')857                self.build(context, token)858                return 14859        if self.match_StepLine(context, token):860                self.end_rule(context, 'Description')861                self.start_rule(context, 'Step')862                self.build(context, token)863                return 15864        if self.match_TagLine(context, token):865            if self.lookahead_1(context, token):866                self.end_rule(context, 'Description')867                self.start_rule(context, 'ExamplesDefinition')868                self.start_rule(context, 'Tags')869                self.build(context, token)870                return 17871        if self.match_TagLine(context, token):872            if self.lookahead_0(context, token):873                self.end_rule(context, 'Description')874                self.end_rule(context, 'Scenario')875                self.end_rule(context, 'ScenarioDefinition')876                self.start_rule(context, 'ScenarioDefinition')877                self.start_rule(context, 'Tags')878                self.build(context, token)879                return 11880        if self.match_TagLine(context, token):881                self.end_rule(context, 'Description')882                self.end_rule(context, 'Scenario')883                self.end_rule(context, 'ScenarioDefinition')884                self.start_rule(context, 'Rule')885                self.start_rule(context, 'RuleHeader')886                self.start_rule(context, 'Tags')887                self.build(context, token)888                return 22889        if self.match_ExamplesLine(context, token):890                self.end_rule(context, 'Description')891                self.start_rule(context, 'ExamplesDefinition')892                self.start_rule(context, 'Examples')893                self.build(context, token)894                return 18895        if self.match_ScenarioLine(context, token):896                self.end_rule(context, 'Description')897                self.end_rule(context, 'Scenario')898                self.end_rule(context, 'ScenarioDefinition')899                self.start_rule(context, 'ScenarioDefinition')900                self.start_rule(context, 'Scenario')901                self.build(context, token)902                return 12903        if self.match_RuleLine(context, token):904                self.end_rule(context, 'Description')905                self.end_rule(context, 'Scenario')906                self.end_rule(context, 'ScenarioDefinition')907                self.start_rule(context, 'Rule')908                self.start_rule(context, 'RuleHeader')909                self.build(context, token)910                return 23911        if self.match_Other(context, token):912                self.build(context, token)913                return 13914        state_comment = "State: 13 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0"915        token.detach916        expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]917        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)918        if (self.stop_at_first_error):919            raise error920        self.add_error(context, error)921        return 13922    # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0923    def match_token_at_14(self, token, context):924        if self.match_EOF(context, token):925                self.end_rule(context, 'Scenario')926                self.end_rule(context, 'ScenarioDefinition')927                self.end_rule(context, 'Feature')928                self.build(context, token)929                return 42930        if self.match_Comment(context, token):931                self.build(context, token)932                return 14933        if self.match_StepLine(context, token):934                self.start_rule(context, 'Step')935                self.build(context, token)936                return 15937        if self.match_TagLine(context, token):938            if self.lookahead_1(context, token):939                self.start_rule(context, 'ExamplesDefinition')940                self.start_rule(context, 'Tags')941                self.build(context, token)942                return 17943        if self.match_TagLine(context, token):944            if self.lookahead_0(context, token):945                self.end_rule(context, 'Scenario')946                self.end_rule(context, 'ScenarioDefinition')947                self.start_rule(context, 'ScenarioDefinition')948                self.start_rule(context, 'Tags')949                self.build(context, token)950                return 11951        if self.match_TagLine(context, token):952                self.end_rule(context, 'Scenario')953                self.end_rule(context, 'ScenarioDefinition')954                self.start_rule(context, 'Rule')955                self.start_rule(context, 'RuleHeader')956                self.start_rule(context, 'Tags')957                self.build(context, token)958                return 22959        if self.match_ExamplesLine(context, token):960                self.start_rule(context, 'ExamplesDefinition')961                self.start_rule(context, 'Examples')962                self.build(context, token)963                return 18964        if self.match_ScenarioLine(context, token):965                self.end_rule(context, 'Scenario')966                self.end_rule(context, 'ScenarioDefinition')967                self.start_rule(context, 'ScenarioDefinition')968                self.start_rule(context, 'Scenario')969                self.build(context, token)970                return 12971        if self.match_RuleLine(context, token):972                self.end_rule(context, 'Scenario')973                self.end_rule(context, 'ScenarioDefinition')974                self.start_rule(context, 'Rule')975                self.start_rule(context, 'RuleHeader')976                self.build(context, token)977                return 23978        if self.match_Empty(context, token):979                self.build(context, token)980                return 14981        state_comment = "State: 14 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0"982        token.detach983        expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]984        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)985        if (self.stop_at_first_error):986            raise error987        self.add_error(context, error)988        return 14989    # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0990    def match_token_at_15(self, token, context):991        if self.match_EOF(context, token):992                self.end_rule(context, 'Step')993                self.end_rule(context, 'Scenario')994                self.end_rule(context, 'ScenarioDefinition')995                self.end_rule(context, 'Feature')996                self.build(context, token)997                return 42998        if self.match_TableRow(context, token):999                self.start_rule(context, 'DataTable')1000                self.build(context, token)1001                return 161002        if self.match_DocStringSeparator(context, token):1003                self.start_rule(context, 'DocString')1004                self.build(context, token)1005                return 471006        if self.match_StepLine(context, token):1007                self.end_rule(context, 'Step')1008                self.start_rule(context, 'Step')1009                self.build(context, token)1010                return 151011        if self.match_TagLine(context, token):1012            if self.lookahead_1(context, token):1013                self.end_rule(context, 'Step')1014                self.start_rule(context, 'ExamplesDefinition')1015                self.start_rule(context, 'Tags')1016                self.build(context, token)1017                return 171018        if self.match_TagLine(context, token):1019            if self.lookahead_0(context, token):1020                self.end_rule(context, 'Step')1021                self.end_rule(context, 'Scenario')1022                self.end_rule(context, 'ScenarioDefinition')1023                self.start_rule(context, 'ScenarioDefinition')1024                self.start_rule(context, 'Tags')1025                self.build(context, token)1026                return 111027        if self.match_TagLine(context, token):1028                self.end_rule(context, 'Step')1029                self.end_rule(context, 'Scenario')1030                self.end_rule(context, 'ScenarioDefinition')1031                self.start_rule(context, 'Rule')1032                self.start_rule(context, 'RuleHeader')1033                self.start_rule(context, 'Tags')1034                self.build(context, token)1035                return 221036        if self.match_ExamplesLine(context, token):1037                self.end_rule(context, 'Step')1038                self.start_rule(context, 'ExamplesDefinition')1039                self.start_rule(context, 'Examples')1040                self.build(context, token)1041                return 181042        if self.match_ScenarioLine(context, token):1043                self.end_rule(context, 'Step')1044                self.end_rule(context, 'Scenario')1045                self.end_rule(context, 'ScenarioDefinition')1046                self.start_rule(context, 'ScenarioDefinition')1047                self.start_rule(context, 'Scenario')1048                self.build(context, token)1049                return 121050        if self.match_RuleLine(context, token):1051                self.end_rule(context, 'Step')1052                self.end_rule(context, 'Scenario')1053                self.end_rule(context, 'ScenarioDefinition')1054                self.start_rule(context, 'Rule')1055                self.start_rule(context, 'RuleHeader')1056                self.build(context, token)1057                return 231058        if self.match_Comment(context, token):1059                self.build(context, token)1060                return 151061        if self.match_Empty(context, token):1062                self.build(context, token)1063                return 151064        state_comment = "State: 15 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0"1065        token.detach1066        expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]1067        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1068        if (self.stop_at_first_error):1069            raise error1070        self.add_error(context, error)1071        return 151072    # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:01073    def match_token_at_16(self, token, context):1074        if self.match_EOF(context, token):1075                self.end_rule(context, 'DataTable')1076                self.end_rule(context, 'Step')1077                self.end_rule(context, 'Scenario')1078                self.end_rule(context, 'ScenarioDefinition')1079                self.end_rule(context, 'Feature')1080                self.build(context, token)1081                return 421082        if self.match_TableRow(context, token):1083                self.build(context, token)1084                return 161085        if self.match_StepLine(context, token):1086                self.end_rule(context, 'DataTable')1087                self.end_rule(context, 'Step')1088                self.start_rule(context, 'Step')1089                self.build(context, token)1090                return 151091        if self.match_TagLine(context, token):1092            if self.lookahead_1(context, token):1093                self.end_rule(context, 'DataTable')1094                self.end_rule(context, 'Step')1095                self.start_rule(context, 'ExamplesDefinition')1096                self.start_rule(context, 'Tags')1097                self.build(context, token)1098                return 171099        if self.match_TagLine(context, token):1100            if self.lookahead_0(context, token):1101                self.end_rule(context, 'DataTable')1102                self.end_rule(context, 'Step')1103                self.end_rule(context, 'Scenario')1104                self.end_rule(context, 'ScenarioDefinition')1105                self.start_rule(context, 'ScenarioDefinition')1106                self.start_rule(context, 'Tags')1107                self.build(context, token)1108                return 111109        if self.match_TagLine(context, token):1110                self.end_rule(context, 'DataTable')1111                self.end_rule(context, 'Step')1112                self.end_rule(context, 'Scenario')1113                self.end_rule(context, 'ScenarioDefinition')1114                self.start_rule(context, 'Rule')1115                self.start_rule(context, 'RuleHeader')1116                self.start_rule(context, 'Tags')1117                self.build(context, token)1118                return 221119        if self.match_ExamplesLine(context, token):1120                self.end_rule(context, 'DataTable')1121                self.end_rule(context, 'Step')1122                self.start_rule(context, 'ExamplesDefinition')1123                self.start_rule(context, 'Examples')1124                self.build(context, token)1125                return 181126        if self.match_ScenarioLine(context, token):1127                self.end_rule(context, 'DataTable')1128                self.end_rule(context, 'Step')1129                self.end_rule(context, 'Scenario')1130                self.end_rule(context, 'ScenarioDefinition')1131                self.start_rule(context, 'ScenarioDefinition')1132                self.start_rule(context, 'Scenario')1133                self.build(context, token)1134                return 121135        if self.match_RuleLine(context, token):1136                self.end_rule(context, 'DataTable')1137                self.end_rule(context, 'Step')1138                self.end_rule(context, 'Scenario')1139                self.end_rule(context, 'ScenarioDefinition')1140                self.start_rule(context, 'Rule')1141                self.start_rule(context, 'RuleHeader')1142                self.build(context, token)1143                return 231144        if self.match_Comment(context, token):1145                self.build(context, token)1146                return 161147        if self.match_Empty(context, token):1148                self.build(context, token)1149                return 161150        state_comment = "State: 16 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"1151        token.detach1152        expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]1153        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1154        if (self.stop_at_first_error):1155            raise error1156        self.add_error(context, error)1157        return 161158    # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:01159    def match_token_at_17(self, token, context):1160        if self.match_TagLine(context, token):1161                self.build(context, token)1162                return 171163        if self.match_ExamplesLine(context, token):1164                self.end_rule(context, 'Tags')1165                self.start_rule(context, 'Examples')1166                self.build(context, token)1167                return 181168        if self.match_Comment(context, token):1169                self.build(context, token)1170                return 171171        if self.match_Empty(context, token):1172                self.build(context, token)1173                return 171174        state_comment = "State: 17 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0"1175        token.detach1176        expected_tokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"]1177        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1178        if (self.stop_at_first_error):1179            raise error1180        self.add_error(context, error)1181        return 171182    # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:01183    def match_token_at_18(self, token, context):1184        if self.match_EOF(context, token):1185                self.end_rule(context, 'Examples')1186                self.end_rule(context, 'ExamplesDefinition')1187                self.end_rule(context, 'Scenario')1188                self.end_rule(context, 'ScenarioDefinition')1189                self.end_rule(context, 'Feature')1190                self.build(context, token)1191                return 421192        if self.match_Empty(context, token):1193                self.build(context, token)1194                return 181195        if self.match_Comment(context, token):1196                self.build(context, token)1197                return 201198        if self.match_TableRow(context, token):1199                self.start_rule(context, 'ExamplesTable')1200                self.build(context, token)1201                return 211202        if self.match_TagLine(context, token):1203            if self.lookahead_1(context, token):1204                self.end_rule(context, 'Examples')1205                self.end_rule(context, 'ExamplesDefinition')1206                self.start_rule(context, 'ExamplesDefinition')1207                self.start_rule(context, 'Tags')1208                self.build(context, token)1209                return 171210        if self.match_TagLine(context, token):1211            if self.lookahead_0(context, token):1212                self.end_rule(context, 'Examples')1213                self.end_rule(context, 'ExamplesDefinition')1214                self.end_rule(context, 'Scenario')1215                self.end_rule(context, 'ScenarioDefinition')1216                self.start_rule(context, 'ScenarioDefinition')1217                self.start_rule(context, 'Tags')1218                self.build(context, token)1219                return 111220        if self.match_TagLine(context, token):1221                self.end_rule(context, 'Examples')1222                self.end_rule(context, 'ExamplesDefinition')1223                self.end_rule(context, 'Scenario')1224                self.end_rule(context, 'ScenarioDefinition')1225                self.start_rule(context, 'Rule')1226                self.start_rule(context, 'RuleHeader')1227                self.start_rule(context, 'Tags')1228                self.build(context, token)1229                return 221230        if self.match_ExamplesLine(context, token):1231                self.end_rule(context, 'Examples')1232                self.end_rule(context, 'ExamplesDefinition')1233                self.start_rule(context, 'ExamplesDefinition')1234                self.start_rule(context, 'Examples')1235                self.build(context, token)1236                return 181237        if self.match_ScenarioLine(context, token):1238                self.end_rule(context, 'Examples')1239                self.end_rule(context, 'ExamplesDefinition')1240                self.end_rule(context, 'Scenario')1241                self.end_rule(context, 'ScenarioDefinition')1242                self.start_rule(context, 'ScenarioDefinition')1243                self.start_rule(context, 'Scenario')1244                self.build(context, token)1245                return 121246        if self.match_RuleLine(context, token):1247                self.end_rule(context, 'Examples')1248                self.end_rule(context, 'ExamplesDefinition')1249                self.end_rule(context, 'Scenario')1250                self.end_rule(context, 'ScenarioDefinition')1251                self.start_rule(context, 'Rule')1252                self.start_rule(context, 'RuleHeader')1253                self.build(context, token)1254                return 231255        if self.match_Other(context, token):1256                self.start_rule(context, 'Description')1257                self.build(context, token)1258                return 191259        state_comment = "State: 18 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0"1260        token.detach1261        expected_tokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]1262        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1263        if (self.stop_at_first_error):1264            raise error1265        self.add_error(context, error)1266        return 181267    # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:01268    def match_token_at_19(self, token, context):1269        if self.match_EOF(context, token):1270                self.end_rule(context, 'Description')1271                self.end_rule(context, 'Examples')1272                self.end_rule(context, 'ExamplesDefinition')1273                self.end_rule(context, 'Scenario')1274                self.end_rule(context, 'ScenarioDefinition')1275                self.end_rule(context, 'Feature')1276                self.build(context, token)1277                return 421278        if self.match_Comment(context, token):1279                self.end_rule(context, 'Description')1280                self.build(context, token)1281                return 201282        if self.match_TableRow(context, token):1283                self.end_rule(context, 'Description')1284                self.start_rule(context, 'ExamplesTable')1285                self.build(context, token)1286                return 211287        if self.match_TagLine(context, token):1288            if self.lookahead_1(context, token):1289                self.end_rule(context, 'Description')1290                self.end_rule(context, 'Examples')1291                self.end_rule(context, 'ExamplesDefinition')1292                self.start_rule(context, 'ExamplesDefinition')1293                self.start_rule(context, 'Tags')1294                self.build(context, token)1295                return 171296        if self.match_TagLine(context, token):1297            if self.lookahead_0(context, token):1298                self.end_rule(context, 'Description')1299                self.end_rule(context, 'Examples')1300                self.end_rule(context, 'ExamplesDefinition')1301                self.end_rule(context, 'Scenario')1302                self.end_rule(context, 'ScenarioDefinition')1303                self.start_rule(context, 'ScenarioDefinition')1304                self.start_rule(context, 'Tags')1305                self.build(context, token)1306                return 111307        if self.match_TagLine(context, token):1308                self.end_rule(context, 'Description')1309                self.end_rule(context, 'Examples')1310                self.end_rule(context, 'ExamplesDefinition')1311                self.end_rule(context, 'Scenario')1312                self.end_rule(context, 'ScenarioDefinition')1313                self.start_rule(context, 'Rule')1314                self.start_rule(context, 'RuleHeader')1315                self.start_rule(context, 'Tags')1316                self.build(context, token)1317                return 221318        if self.match_ExamplesLine(context, token):1319                self.end_rule(context, 'Description')1320                self.end_rule(context, 'Examples')1321                self.end_rule(context, 'ExamplesDefinition')1322                self.start_rule(context, 'ExamplesDefinition')1323                self.start_rule(context, 'Examples')1324                self.build(context, token)1325                return 181326        if self.match_ScenarioLine(context, token):1327                self.end_rule(context, 'Description')1328                self.end_rule(context, 'Examples')1329                self.end_rule(context, 'ExamplesDefinition')1330                self.end_rule(context, 'Scenario')1331                self.end_rule(context, 'ScenarioDefinition')1332                self.start_rule(context, 'ScenarioDefinition')1333                self.start_rule(context, 'Scenario')1334                self.build(context, token)1335                return 121336        if self.match_RuleLine(context, token):1337                self.end_rule(context, 'Description')1338                self.end_rule(context, 'Examples')1339                self.end_rule(context, 'ExamplesDefinition')1340                self.end_rule(context, 'Scenario')1341                self.end_rule(context, 'ScenarioDefinition')1342                self.start_rule(context, 'Rule')1343                self.start_rule(context, 'RuleHeader')1344                self.build(context, token)1345                return 231346        if self.match_Other(context, token):1347                self.build(context, token)1348                return 191349        state_comment = "State: 19 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0"1350        token.detach1351        expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]1352        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1353        if (self.stop_at_first_error):1354            raise error1355        self.add_error(context, error)1356        return 191357    # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:01358    def match_token_at_20(self, token, context):1359        if self.match_EOF(context, token):1360                self.end_rule(context, 'Examples')1361                self.end_rule(context, 'ExamplesDefinition')1362                self.end_rule(context, 'Scenario')1363                self.end_rule(context, 'ScenarioDefinition')1364                self.end_rule(context, 'Feature')1365                self.build(context, token)1366                return 421367        if self.match_Comment(context, token):1368                self.build(context, token)1369                return 201370        if self.match_TableRow(context, token):1371                self.start_rule(context, 'ExamplesTable')1372                self.build(context, token)1373                return 211374        if self.match_TagLine(context, token):1375            if self.lookahead_1(context, token):1376                self.end_rule(context, 'Examples')1377                self.end_rule(context, 'ExamplesDefinition')1378                self.start_rule(context, 'ExamplesDefinition')1379                self.start_rule(context, 'Tags')1380                self.build(context, token)1381                return 171382        if self.match_TagLine(context, token):1383            if self.lookahead_0(context, token):1384                self.end_rule(context, 'Examples')1385                self.end_rule(context, 'ExamplesDefinition')1386                self.end_rule(context, 'Scenario')1387                self.end_rule(context, 'ScenarioDefinition')1388                self.start_rule(context, 'ScenarioDefinition')1389                self.start_rule(context, 'Tags')1390                self.build(context, token)1391                return 111392        if self.match_TagLine(context, token):1393                self.end_rule(context, 'Examples')1394                self.end_rule(context, 'ExamplesDefinition')1395                self.end_rule(context, 'Scenario')1396                self.end_rule(context, 'ScenarioDefinition')1397                self.start_rule(context, 'Rule')1398                self.start_rule(context, 'RuleHeader')1399                self.start_rule(context, 'Tags')1400                self.build(context, token)1401                return 221402        if self.match_ExamplesLine(context, token):1403                self.end_rule(context, 'Examples')1404                self.end_rule(context, 'ExamplesDefinition')1405                self.start_rule(context, 'ExamplesDefinition')1406                self.start_rule(context, 'Examples')1407                self.build(context, token)1408                return 181409        if self.match_ScenarioLine(context, token):1410                self.end_rule(context, 'Examples')1411                self.end_rule(context, 'ExamplesDefinition')1412                self.end_rule(context, 'Scenario')1413                self.end_rule(context, 'ScenarioDefinition')1414                self.start_rule(context, 'ScenarioDefinition')1415                self.start_rule(context, 'Scenario')1416                self.build(context, token)1417                return 121418        if self.match_RuleLine(context, token):1419                self.end_rule(context, 'Examples')1420                self.end_rule(context, 'ExamplesDefinition')1421                self.end_rule(context, 'Scenario')1422                self.end_rule(context, 'ScenarioDefinition')1423                self.start_rule(context, 'Rule')1424                self.start_rule(context, 'RuleHeader')1425                self.build(context, token)1426                return 231427        if self.match_Empty(context, token):1428                self.build(context, token)1429                return 201430        state_comment = "State: 20 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0"1431        token.detach1432        expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]1433        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1434        if (self.stop_at_first_error):1435            raise error1436        self.add_error(context, error)1437        return 201438    # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:01439    def match_token_at_21(self, token, context):1440        if self.match_EOF(context, token):1441                self.end_rule(context, 'ExamplesTable')1442                self.end_rule(context, 'Examples')1443                self.end_rule(context, 'ExamplesDefinition')1444                self.end_rule(context, 'Scenario')1445                self.end_rule(context, 'ScenarioDefinition')1446                self.end_rule(context, 'Feature')1447                self.build(context, token)1448                return 421449        if self.match_TableRow(context, token):1450                self.build(context, token)1451                return 211452        if self.match_TagLine(context, token):1453            if self.lookahead_1(context, token):1454                self.end_rule(context, 'ExamplesTable')1455                self.end_rule(context, 'Examples')1456                self.end_rule(context, 'ExamplesDefinition')1457                self.start_rule(context, 'ExamplesDefinition')1458                self.start_rule(context, 'Tags')1459                self.build(context, token)1460                return 171461        if self.match_TagLine(context, token):1462            if self.lookahead_0(context, token):1463                self.end_rule(context, 'ExamplesTable')1464                self.end_rule(context, 'Examples')1465                self.end_rule(context, 'ExamplesDefinition')1466                self.end_rule(context, 'Scenario')1467                self.end_rule(context, 'ScenarioDefinition')1468                self.start_rule(context, 'ScenarioDefinition')1469                self.start_rule(context, 'Tags')1470                self.build(context, token)1471                return 111472        if self.match_TagLine(context, token):1473                self.end_rule(context, 'ExamplesTable')1474                self.end_rule(context, 'Examples')1475                self.end_rule(context, 'ExamplesDefinition')1476                self.end_rule(context, 'Scenario')1477                self.end_rule(context, 'ScenarioDefinition')1478                self.start_rule(context, 'Rule')1479                self.start_rule(context, 'RuleHeader')1480                self.start_rule(context, 'Tags')1481                self.build(context, token)1482                return 221483        if self.match_ExamplesLine(context, token):1484                self.end_rule(context, 'ExamplesTable')1485                self.end_rule(context, 'Examples')1486                self.end_rule(context, 'ExamplesDefinition')1487                self.start_rule(context, 'ExamplesDefinition')1488                self.start_rule(context, 'Examples')1489                self.build(context, token)1490                return 181491        if self.match_ScenarioLine(context, token):1492                self.end_rule(context, 'ExamplesTable')1493                self.end_rule(context, 'Examples')1494                self.end_rule(context, 'ExamplesDefinition')1495                self.end_rule(context, 'Scenario')1496                self.end_rule(context, 'ScenarioDefinition')1497                self.start_rule(context, 'ScenarioDefinition')1498                self.start_rule(context, 'Scenario')1499                self.build(context, token)1500                return 121501        if self.match_RuleLine(context, token):1502                self.end_rule(context, 'ExamplesTable')1503                self.end_rule(context, 'Examples')1504                self.end_rule(context, 'ExamplesDefinition')1505                self.end_rule(context, 'Scenario')1506                self.end_rule(context, 'ScenarioDefinition')1507                self.start_rule(context, 'Rule')1508                self.start_rule(context, 'RuleHeader')1509                self.build(context, token)1510                return 231511        if self.match_Comment(context, token):1512                self.build(context, token)1513                return 211514        if self.match_Empty(context, token):1515                self.build(context, token)1516                return 211517        state_comment = "State: 21 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0"1518        token.detach1519        expected_tokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]1520        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1521        if (self.stop_at_first_error):1522            raise error1523        self.add_error(context, error)1524        return 211525    # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>Tags:0>#TagLine:01526    def match_token_at_22(self, token, context):1527        if self.match_TagLine(context, token):1528                self.build(context, token)1529                return 221530        if self.match_RuleLine(context, token):1531                self.end_rule(context, 'Tags')1532                self.build(context, token)1533                return 231534        if self.match_Comment(context, token):1535                self.build(context, token)1536                return 221537        if self.match_Empty(context, token):1538                self.build(context, token)1539                return 221540        state_comment = "State: 22 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>Tags:0>#TagLine:0"1541        token.detach1542        expected_tokens = ["#TagLine", "#RuleLine", "#Comment", "#Empty"]1543        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1544        if (self.stop_at_first_error):1545            raise error1546        self.add_error(context, error)1547        return 221548    # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>#RuleLine:01549    def match_token_at_23(self, token, context):1550        if self.match_EOF(context, token):1551                self.end_rule(context, 'RuleHeader')1552                self.end_rule(context, 'Rule')1553                self.end_rule(context, 'Feature')1554                self.build(context, token)1555                return 421556        if self.match_Empty(context, token):1557                self.build(context, token)1558                return 231559        if self.match_Comment(context, token):1560                self.build(context, token)1561                return 251562        if self.match_BackgroundLine(context, token):1563                self.end_rule(context, 'RuleHeader')1564                self.start_rule(context, 'Background')1565                self.build(context, token)1566                return 261567        if self.match_TagLine(context, token):1568            if self.lookahead_0(context, token):1569                self.end_rule(context, 'RuleHeader')1570                self.start_rule(context, 'ScenarioDefinition')1571                self.start_rule(context, 'Tags')1572                self.build(context, token)1573                return 311574        if self.match_TagLine(context, token):1575                self.end_rule(context, 'RuleHeader')1576                self.end_rule(context, 'Rule')1577                self.start_rule(context, 'Rule')1578                self.start_rule(context, 'RuleHeader')1579                self.start_rule(context, 'Tags')1580                self.build(context, token)1581                return 221582        if self.match_ScenarioLine(context, token):1583                self.end_rule(context, 'RuleHeader')1584                self.start_rule(context, 'ScenarioDefinition')1585                self.start_rule(context, 'Scenario')1586                self.build(context, token)1587                return 321588        if self.match_RuleLine(context, token):1589                self.end_rule(context, 'RuleHeader')1590                self.end_rule(context, 'Rule')1591                self.start_rule(context, 'Rule')1592                self.start_rule(context, 'RuleHeader')1593                self.build(context, token)1594                return 231595        if self.match_Other(context, token):1596                self.start_rule(context, 'Description')1597                self.build(context, token)1598                return 241599        state_comment = "State: 23 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>#RuleLine:0"1600        token.detach1601        expected_tokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]1602        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1603        if (self.stop_at_first_error):1604            raise error1605        self.add_error(context, error)1606        return 231607    # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:1>Description:0>#Other:01608    def match_token_at_24(self, token, context):1609        if self.match_EOF(context, token):1610                self.end_rule(context, 'Description')1611                self.end_rule(context, 'RuleHeader')1612                self.end_rule(context, 'Rule')1613                self.end_rule(context, 'Feature')1614                self.build(context, token)1615                return 421616        if self.match_Comment(context, token):1617                self.end_rule(context, 'Description')1618                self.build(context, token)1619                return 251620        if self.match_BackgroundLine(context, token):1621                self.end_rule(context, 'Description')1622                self.end_rule(context, 'RuleHeader')1623                self.start_rule(context, 'Background')1624                self.build(context, token)1625                return 261626        if self.match_TagLine(context, token):1627            if self.lookahead_0(context, token):1628                self.end_rule(context, 'Description')1629                self.end_rule(context, 'RuleHeader')1630                self.start_rule(context, 'ScenarioDefinition')1631                self.start_rule(context, 'Tags')1632                self.build(context, token)1633                return 311634        if self.match_TagLine(context, token):1635                self.end_rule(context, 'Description')1636                self.end_rule(context, 'RuleHeader')1637                self.end_rule(context, 'Rule')1638                self.start_rule(context, 'Rule')1639                self.start_rule(context, 'RuleHeader')1640                self.start_rule(context, 'Tags')1641                self.build(context, token)1642                return 221643        if self.match_ScenarioLine(context, token):1644                self.end_rule(context, 'Description')1645                self.end_rule(context, 'RuleHeader')1646                self.start_rule(context, 'ScenarioDefinition')1647                self.start_rule(context, 'Scenario')1648                self.build(context, token)1649                return 321650        if self.match_RuleLine(context, token):1651                self.end_rule(context, 'Description')1652                self.end_rule(context, 'RuleHeader')1653                self.end_rule(context, 'Rule')1654                self.start_rule(context, 'Rule')1655                self.start_rule(context, 'RuleHeader')1656                self.build(context, token)1657                return 231658        if self.match_Other(context, token):1659                self.build(context, token)1660                return 241661        state_comment = "State: 24 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:1>Description:0>#Other:0"1662        token.detach1663        expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]1664        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1665        if (self.stop_at_first_error):1666            raise error1667        self.add_error(context, error)1668        return 241669    # GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:2>#Comment:01670    def match_token_at_25(self, token, context):1671        if self.match_EOF(context, token):1672                self.end_rule(context, 'RuleHeader')1673                self.end_rule(context, 'Rule')1674                self.end_rule(context, 'Feature')1675                self.build(context, token)1676                return 421677        if self.match_Comment(context, token):1678                self.build(context, token)1679                return 251680        if self.match_BackgroundLine(context, token):1681                self.end_rule(context, 'RuleHeader')1682                self.start_rule(context, 'Background')1683                self.build(context, token)1684                return 261685        if self.match_TagLine(context, token):1686            if self.lookahead_0(context, token):1687                self.end_rule(context, 'RuleHeader')1688                self.start_rule(context, 'ScenarioDefinition')1689                self.start_rule(context, 'Tags')1690                self.build(context, token)1691                return 311692        if self.match_TagLine(context, token):1693                self.end_rule(context, 'RuleHeader')1694                self.end_rule(context, 'Rule')1695                self.start_rule(context, 'Rule')1696                self.start_rule(context, 'RuleHeader')1697                self.start_rule(context, 'Tags')1698                self.build(context, token)1699                return 221700        if self.match_ScenarioLine(context, token):1701                self.end_rule(context, 'RuleHeader')1702                self.start_rule(context, 'ScenarioDefinition')1703                self.start_rule(context, 'Scenario')1704                self.build(context, token)1705                return 321706        if self.match_RuleLine(context, token):1707                self.end_rule(context, 'RuleHeader')1708                self.end_rule(context, 'Rule')1709                self.start_rule(context, 'Rule')1710                self.start_rule(context, 'RuleHeader')1711                self.build(context, token)1712                return 231713        if self.match_Empty(context, token):1714                self.build(context, token)1715                return 251716        state_comment = "State: 25 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:2>DescriptionHelper:2>#Comment:0"1717        token.detach1718        expected_tokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]1719        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1720        if (self.stop_at_first_error):1721            raise error1722        self.add_error(context, error)1723        return 251724    # GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:01725    def match_token_at_26(self, token, context):1726        if self.match_EOF(context, token):1727                self.end_rule(context, 'Background')1728                self.end_rule(context, 'Rule')1729                self.end_rule(context, 'Feature')1730                self.build(context, token)1731                return 421732        if self.match_Empty(context, token):1733                self.build(context, token)1734                return 261735        if self.match_Comment(context, token):1736                self.build(context, token)1737                return 281738        if self.match_StepLine(context, token):1739                self.start_rule(context, 'Step')1740                self.build(context, token)1741                return 291742        if self.match_TagLine(context, token):1743            if self.lookahead_0(context, token):1744                self.end_rule(context, 'Background')1745                self.start_rule(context, 'ScenarioDefinition')1746                self.start_rule(context, 'Tags')1747                self.build(context, token)1748                return 311749        if self.match_TagLine(context, token):1750                self.end_rule(context, 'Background')1751                self.end_rule(context, 'Rule')1752                self.start_rule(context, 'Rule')1753                self.start_rule(context, 'RuleHeader')1754                self.start_rule(context, 'Tags')1755                self.build(context, token)1756                return 221757        if self.match_ScenarioLine(context, token):1758                self.end_rule(context, 'Background')1759                self.start_rule(context, 'ScenarioDefinition')1760                self.start_rule(context, 'Scenario')1761                self.build(context, token)1762                return 321763        if self.match_RuleLine(context, token):1764                self.end_rule(context, 'Background')1765                self.end_rule(context, 'Rule')1766                self.start_rule(context, 'Rule')1767                self.start_rule(context, 'RuleHeader')1768                self.build(context, token)1769                return 231770        if self.match_Other(context, token):1771                self.start_rule(context, 'Description')1772                self.build(context, token)1773                return 271774        state_comment = "State: 26 - GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:0"1775        token.detach1776        expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]1777        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1778        if (self.stop_at_first_error):1779            raise error1780        self.add_error(context, error)1781        return 261782    # GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:01783    def match_token_at_27(self, token, context):1784        if self.match_EOF(context, token):1785                self.end_rule(context, 'Description')1786                self.end_rule(context, 'Background')1787                self.end_rule(context, 'Rule')1788                self.end_rule(context, 'Feature')1789                self.build(context, token)1790                return 421791        if self.match_Comment(context, token):1792                self.end_rule(context, 'Description')1793                self.build(context, token)1794                return 281795        if self.match_StepLine(context, token):1796                self.end_rule(context, 'Description')1797                self.start_rule(context, 'Step')1798                self.build(context, token)1799                return 291800        if self.match_TagLine(context, token):1801            if self.lookahead_0(context, token):1802                self.end_rule(context, 'Description')1803                self.end_rule(context, 'Background')1804                self.start_rule(context, 'ScenarioDefinition')1805                self.start_rule(context, 'Tags')1806                self.build(context, token)1807                return 311808        if self.match_TagLine(context, token):1809                self.end_rule(context, 'Description')1810                self.end_rule(context, 'Background')1811                self.end_rule(context, 'Rule')1812                self.start_rule(context, 'Rule')1813                self.start_rule(context, 'RuleHeader')1814                self.start_rule(context, 'Tags')1815                self.build(context, token)1816                return 221817        if self.match_ScenarioLine(context, token):1818                self.end_rule(context, 'Description')1819                self.end_rule(context, 'Background')1820                self.start_rule(context, 'ScenarioDefinition')1821                self.start_rule(context, 'Scenario')1822                self.build(context, token)1823                return 321824        if self.match_RuleLine(context, token):1825                self.end_rule(context, 'Description')1826                self.end_rule(context, 'Background')1827                self.end_rule(context, 'Rule')1828                self.start_rule(context, 'Rule')1829                self.start_rule(context, 'RuleHeader')1830                self.build(context, token)1831                return 231832        if self.match_Other(context, token):1833                self.build(context, token)1834                return 271835        state_comment = "State: 27 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:0"1836        token.detach1837        expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"]1838        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1839        if (self.stop_at_first_error):1840            raise error1841        self.add_error(context, error)1842        return 271843    # GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:2>#Comment:01844    def match_token_at_28(self, token, context):1845        if self.match_EOF(context, token):1846                self.end_rule(context, 'Background')1847                self.end_rule(context, 'Rule')1848                self.end_rule(context, 'Feature')1849                self.build(context, token)1850                return 421851        if self.match_Comment(context, token):1852                self.build(context, token)1853                return 281854        if self.match_StepLine(context, token):1855                self.start_rule(context, 'Step')1856                self.build(context, token)1857                return 291858        if self.match_TagLine(context, token):1859            if self.lookahead_0(context, token):1860                self.end_rule(context, 'Background')1861                self.start_rule(context, 'ScenarioDefinition')1862                self.start_rule(context, 'Tags')1863                self.build(context, token)1864                return 311865        if self.match_TagLine(context, token):1866                self.end_rule(context, 'Background')1867                self.end_rule(context, 'Rule')1868                self.start_rule(context, 'Rule')1869                self.start_rule(context, 'RuleHeader')1870                self.start_rule(context, 'Tags')1871                self.build(context, token)1872                return 221873        if self.match_ScenarioLine(context, token):1874                self.end_rule(context, 'Background')1875                self.start_rule(context, 'ScenarioDefinition')1876                self.start_rule(context, 'Scenario')1877                self.build(context, token)1878                return 321879        if self.match_RuleLine(context, token):1880                self.end_rule(context, 'Background')1881                self.end_rule(context, 'Rule')1882                self.start_rule(context, 'Rule')1883                self.start_rule(context, 'RuleHeader')1884                self.build(context, token)1885                return 231886        if self.match_Empty(context, token):1887                self.build(context, token)1888                return 281889        state_comment = "State: 28 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:2>#Comment:0"1890        token.detach1891        expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"]1892        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1893        if (self.stop_at_first_error):1894            raise error1895        self.add_error(context, error)1896        return 281897    # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:01898    def match_token_at_29(self, token, context):1899        if self.match_EOF(context, token):1900                self.end_rule(context, 'Step')1901                self.end_rule(context, 'Background')1902                self.end_rule(context, 'Rule')1903                self.end_rule(context, 'Feature')1904                self.build(context, token)1905                return 421906        if self.match_TableRow(context, token):1907                self.start_rule(context, 'DataTable')1908                self.build(context, token)1909                return 301910        if self.match_DocStringSeparator(context, token):1911                self.start_rule(context, 'DocString')1912                self.build(context, token)1913                return 451914        if self.match_StepLine(context, token):1915                self.end_rule(context, 'Step')1916                self.start_rule(context, 'Step')1917                self.build(context, token)1918                return 291919        if self.match_TagLine(context, token):1920            if self.lookahead_0(context, token):1921                self.end_rule(context, 'Step')1922                self.end_rule(context, 'Background')1923                self.start_rule(context, 'ScenarioDefinition')1924                self.start_rule(context, 'Tags')1925                self.build(context, token)1926                return 311927        if self.match_TagLine(context, token):1928                self.end_rule(context, 'Step')1929                self.end_rule(context, 'Background')1930                self.end_rule(context, 'Rule')1931                self.start_rule(context, 'Rule')1932                self.start_rule(context, 'RuleHeader')1933                self.start_rule(context, 'Tags')1934                self.build(context, token)1935                return 221936        if self.match_ScenarioLine(context, token):1937                self.end_rule(context, 'Step')1938                self.end_rule(context, 'Background')1939                self.start_rule(context, 'ScenarioDefinition')1940                self.start_rule(context, 'Scenario')1941                self.build(context, token)1942                return 321943        if self.match_RuleLine(context, token):1944                self.end_rule(context, 'Step')1945                self.end_rule(context, 'Background')1946                self.end_rule(context, 'Rule')1947                self.start_rule(context, 'Rule')1948                self.start_rule(context, 'RuleHeader')1949                self.build(context, token)1950                return 231951        if self.match_Comment(context, token):1952                self.build(context, token)1953                return 291954        if self.match_Empty(context, token):1955                self.build(context, token)1956                return 291957        state_comment = "State: 29 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:0"1958        token.detach1959        expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]1960        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)1961        if (self.stop_at_first_error):1962            raise error1963        self.add_error(context, error)1964        return 291965    # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:01966    def match_token_at_30(self, token, context):1967        if self.match_EOF(context, token):1968                self.end_rule(context, 'DataTable')1969                self.end_rule(context, 'Step')1970                self.end_rule(context, 'Background')1971                self.end_rule(context, 'Rule')1972                self.end_rule(context, 'Feature')1973                self.build(context, token)1974                return 421975        if self.match_TableRow(context, token):1976                self.build(context, token)1977                return 301978        if self.match_StepLine(context, token):1979                self.end_rule(context, 'DataTable')1980                self.end_rule(context, 'Step')1981                self.start_rule(context, 'Step')1982                self.build(context, token)1983                return 291984        if self.match_TagLine(context, token):1985            if self.lookahead_0(context, token):1986                self.end_rule(context, 'DataTable')1987                self.end_rule(context, 'Step')1988                self.end_rule(context, 'Background')1989                self.start_rule(context, 'ScenarioDefinition')1990                self.start_rule(context, 'Tags')1991                self.build(context, token)1992                return 311993        if self.match_TagLine(context, token):1994                self.end_rule(context, 'DataTable')1995                self.end_rule(context, 'Step')1996                self.end_rule(context, 'Background')1997                self.end_rule(context, 'Rule')1998                self.start_rule(context, 'Rule')1999                self.start_rule(context, 'RuleHeader')2000                self.start_rule(context, 'Tags')2001                self.build(context, token)2002                return 222003        if self.match_ScenarioLine(context, token):2004                self.end_rule(context, 'DataTable')2005                self.end_rule(context, 'Step')2006                self.end_rule(context, 'Background')2007                self.start_rule(context, 'ScenarioDefinition')2008                self.start_rule(context, 'Scenario')2009                self.build(context, token)2010                return 322011        if self.match_RuleLine(context, token):2012                self.end_rule(context, 'DataTable')2013                self.end_rule(context, 'Step')2014                self.end_rule(context, 'Background')2015                self.end_rule(context, 'Rule')2016                self.start_rule(context, 'Rule')2017                self.start_rule(context, 'RuleHeader')2018                self.build(context, token)2019                return 232020        if self.match_Comment(context, token):2021                self.build(context, token)2022                return 302023        if self.match_Empty(context, token):2024                self.build(context, token)2025                return 302026        state_comment = "State: 30 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"2027        token.detach2028        expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2029        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2030        if (self.stop_at_first_error):2031            raise error2032        self.add_error(context, error)2033        return 302034    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:02035    def match_token_at_31(self, token, context):2036        if self.match_TagLine(context, token):2037                self.build(context, token)2038                return 312039        if self.match_ScenarioLine(context, token):2040                self.end_rule(context, 'Tags')2041                self.start_rule(context, 'Scenario')2042                self.build(context, token)2043                return 322044        if self.match_Comment(context, token):2045                self.build(context, token)2046                return 312047        if self.match_Empty(context, token):2048                self.build(context, token)2049                return 312050        state_comment = "State: 31 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:0"2051        token.detach2052        expected_tokens = ["#TagLine", "#ScenarioLine", "#Comment", "#Empty"]2053        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2054        if (self.stop_at_first_error):2055            raise error2056        self.add_error(context, error)2057        return 312058    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:02059    def match_token_at_32(self, token, context):2060        if self.match_EOF(context, token):2061                self.end_rule(context, 'Scenario')2062                self.end_rule(context, 'ScenarioDefinition')2063                self.end_rule(context, 'Rule')2064                self.end_rule(context, 'Feature')2065                self.build(context, token)2066                return 422067        if self.match_Empty(context, token):2068                self.build(context, token)2069                return 322070        if self.match_Comment(context, token):2071                self.build(context, token)2072                return 342073        if self.match_StepLine(context, token):2074                self.start_rule(context, 'Step')2075                self.build(context, token)2076                return 352077        if self.match_TagLine(context, token):2078            if self.lookahead_1(context, token):2079                self.start_rule(context, 'ExamplesDefinition')2080                self.start_rule(context, 'Tags')2081                self.build(context, token)2082                return 372083        if self.match_TagLine(context, token):2084            if self.lookahead_0(context, token):2085                self.end_rule(context, 'Scenario')2086                self.end_rule(context, 'ScenarioDefinition')2087                self.start_rule(context, 'ScenarioDefinition')2088                self.start_rule(context, 'Tags')2089                self.build(context, token)2090                return 312091        if self.match_TagLine(context, token):2092                self.end_rule(context, 'Scenario')2093                self.end_rule(context, 'ScenarioDefinition')2094                self.end_rule(context, 'Rule')2095                self.start_rule(context, 'Rule')2096                self.start_rule(context, 'RuleHeader')2097                self.start_rule(context, 'Tags')2098                self.build(context, token)2099                return 222100        if self.match_ExamplesLine(context, token):2101                self.start_rule(context, 'ExamplesDefinition')2102                self.start_rule(context, 'Examples')2103                self.build(context, token)2104                return 382105        if self.match_ScenarioLine(context, token):2106                self.end_rule(context, 'Scenario')2107                self.end_rule(context, 'ScenarioDefinition')2108                self.start_rule(context, 'ScenarioDefinition')2109                self.start_rule(context, 'Scenario')2110                self.build(context, token)2111                return 322112        if self.match_RuleLine(context, token):2113                self.end_rule(context, 'Scenario')2114                self.end_rule(context, 'ScenarioDefinition')2115                self.end_rule(context, 'Rule')2116                self.start_rule(context, 'Rule')2117                self.start_rule(context, 'RuleHeader')2118                self.build(context, token)2119                return 232120        if self.match_Other(context, token):2121                self.start_rule(context, 'Description')2122                self.build(context, token)2123                return 332124        state_comment = "State: 32 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0"2125        token.detach2126        expected_tokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]2127        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2128        if (self.stop_at_first_error):2129            raise error2130        self.add_error(context, error)2131        return 322132    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:02133    def match_token_at_33(self, token, context):2134        if self.match_EOF(context, token):2135                self.end_rule(context, 'Description')2136                self.end_rule(context, 'Scenario')2137                self.end_rule(context, 'ScenarioDefinition')2138                self.end_rule(context, 'Rule')2139                self.end_rule(context, 'Feature')2140                self.build(context, token)2141                return 422142        if self.match_Comment(context, token):2143                self.end_rule(context, 'Description')2144                self.build(context, token)2145                return 342146        if self.match_StepLine(context, token):2147                self.end_rule(context, 'Description')2148                self.start_rule(context, 'Step')2149                self.build(context, token)2150                return 352151        if self.match_TagLine(context, token):2152            if self.lookahead_1(context, token):2153                self.end_rule(context, 'Description')2154                self.start_rule(context, 'ExamplesDefinition')2155                self.start_rule(context, 'Tags')2156                self.build(context, token)2157                return 372158        if self.match_TagLine(context, token):2159            if self.lookahead_0(context, token):2160                self.end_rule(context, 'Description')2161                self.end_rule(context, 'Scenario')2162                self.end_rule(context, 'ScenarioDefinition')2163                self.start_rule(context, 'ScenarioDefinition')2164                self.start_rule(context, 'Tags')2165                self.build(context, token)2166                return 312167        if self.match_TagLine(context, token):2168                self.end_rule(context, 'Description')2169                self.end_rule(context, 'Scenario')2170                self.end_rule(context, 'ScenarioDefinition')2171                self.end_rule(context, 'Rule')2172                self.start_rule(context, 'Rule')2173                self.start_rule(context, 'RuleHeader')2174                self.start_rule(context, 'Tags')2175                self.build(context, token)2176                return 222177        if self.match_ExamplesLine(context, token):2178                self.end_rule(context, 'Description')2179                self.start_rule(context, 'ExamplesDefinition')2180                self.start_rule(context, 'Examples')2181                self.build(context, token)2182                return 382183        if self.match_ScenarioLine(context, token):2184                self.end_rule(context, 'Description')2185                self.end_rule(context, 'Scenario')2186                self.end_rule(context, 'ScenarioDefinition')2187                self.start_rule(context, 'ScenarioDefinition')2188                self.start_rule(context, 'Scenario')2189                self.build(context, token)2190                return 322191        if self.match_RuleLine(context, token):2192                self.end_rule(context, 'Description')2193                self.end_rule(context, 'Scenario')2194                self.end_rule(context, 'ScenarioDefinition')2195                self.end_rule(context, 'Rule')2196                self.start_rule(context, 'Rule')2197                self.start_rule(context, 'RuleHeader')2198                self.build(context, token)2199                return 232200        if self.match_Other(context, token):2201                self.build(context, token)2202                return 332203        state_comment = "State: 33 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0"2204        token.detach2205        expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]2206        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2207        if (self.stop_at_first_error):2208            raise error2209        self.add_error(context, error)2210        return 332211    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:02212    def match_token_at_34(self, token, context):2213        if self.match_EOF(context, token):2214                self.end_rule(context, 'Scenario')2215                self.end_rule(context, 'ScenarioDefinition')2216                self.end_rule(context, 'Rule')2217                self.end_rule(context, 'Feature')2218                self.build(context, token)2219                return 422220        if self.match_Comment(context, token):2221                self.build(context, token)2222                return 342223        if self.match_StepLine(context, token):2224                self.start_rule(context, 'Step')2225                self.build(context, token)2226                return 352227        if self.match_TagLine(context, token):2228            if self.lookahead_1(context, token):2229                self.start_rule(context, 'ExamplesDefinition')2230                self.start_rule(context, 'Tags')2231                self.build(context, token)2232                return 372233        if self.match_TagLine(context, token):2234            if self.lookahead_0(context, token):2235                self.end_rule(context, 'Scenario')2236                self.end_rule(context, 'ScenarioDefinition')2237                self.start_rule(context, 'ScenarioDefinition')2238                self.start_rule(context, 'Tags')2239                self.build(context, token)2240                return 312241        if self.match_TagLine(context, token):2242                self.end_rule(context, 'Scenario')2243                self.end_rule(context, 'ScenarioDefinition')2244                self.end_rule(context, 'Rule')2245                self.start_rule(context, 'Rule')2246                self.start_rule(context, 'RuleHeader')2247                self.start_rule(context, 'Tags')2248                self.build(context, token)2249                return 222250        if self.match_ExamplesLine(context, token):2251                self.start_rule(context, 'ExamplesDefinition')2252                self.start_rule(context, 'Examples')2253                self.build(context, token)2254                return 382255        if self.match_ScenarioLine(context, token):2256                self.end_rule(context, 'Scenario')2257                self.end_rule(context, 'ScenarioDefinition')2258                self.start_rule(context, 'ScenarioDefinition')2259                self.start_rule(context, 'Scenario')2260                self.build(context, token)2261                return 322262        if self.match_RuleLine(context, token):2263                self.end_rule(context, 'Scenario')2264                self.end_rule(context, 'ScenarioDefinition')2265                self.end_rule(context, 'Rule')2266                self.start_rule(context, 'Rule')2267                self.start_rule(context, 'RuleHeader')2268                self.build(context, token)2269                return 232270        if self.match_Empty(context, token):2271                self.build(context, token)2272                return 342273        state_comment = "State: 34 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0"2274        token.detach2275        expected_tokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]2276        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2277        if (self.stop_at_first_error):2278            raise error2279        self.add_error(context, error)2280        return 342281    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:02282    def match_token_at_35(self, token, context):2283        if self.match_EOF(context, token):2284                self.end_rule(context, 'Step')2285                self.end_rule(context, 'Scenario')2286                self.end_rule(context, 'ScenarioDefinition')2287                self.end_rule(context, 'Rule')2288                self.end_rule(context, 'Feature')2289                self.build(context, token)2290                return 422291        if self.match_TableRow(context, token):2292                self.start_rule(context, 'DataTable')2293                self.build(context, token)2294                return 362295        if self.match_DocStringSeparator(context, token):2296                self.start_rule(context, 'DocString')2297                self.build(context, token)2298                return 432299        if self.match_StepLine(context, token):2300                self.end_rule(context, 'Step')2301                self.start_rule(context, 'Step')2302                self.build(context, token)2303                return 352304        if self.match_TagLine(context, token):2305            if self.lookahead_1(context, token):2306                self.end_rule(context, 'Step')2307                self.start_rule(context, 'ExamplesDefinition')2308                self.start_rule(context, 'Tags')2309                self.build(context, token)2310                return 372311        if self.match_TagLine(context, token):2312            if self.lookahead_0(context, token):2313                self.end_rule(context, 'Step')2314                self.end_rule(context, 'Scenario')2315                self.end_rule(context, 'ScenarioDefinition')2316                self.start_rule(context, 'ScenarioDefinition')2317                self.start_rule(context, 'Tags')2318                self.build(context, token)2319                return 312320        if self.match_TagLine(context, token):2321                self.end_rule(context, 'Step')2322                self.end_rule(context, 'Scenario')2323                self.end_rule(context, 'ScenarioDefinition')2324                self.end_rule(context, 'Rule')2325                self.start_rule(context, 'Rule')2326                self.start_rule(context, 'RuleHeader')2327                self.start_rule(context, 'Tags')2328                self.build(context, token)2329                return 222330        if self.match_ExamplesLine(context, token):2331                self.end_rule(context, 'Step')2332                self.start_rule(context, 'ExamplesDefinition')2333                self.start_rule(context, 'Examples')2334                self.build(context, token)2335                return 382336        if self.match_ScenarioLine(context, token):2337                self.end_rule(context, 'Step')2338                self.end_rule(context, 'Scenario')2339                self.end_rule(context, 'ScenarioDefinition')2340                self.start_rule(context, 'ScenarioDefinition')2341                self.start_rule(context, 'Scenario')2342                self.build(context, token)2343                return 322344        if self.match_RuleLine(context, token):2345                self.end_rule(context, 'Step')2346                self.end_rule(context, 'Scenario')2347                self.end_rule(context, 'ScenarioDefinition')2348                self.end_rule(context, 'Rule')2349                self.start_rule(context, 'Rule')2350                self.start_rule(context, 'RuleHeader')2351                self.build(context, token)2352                return 232353        if self.match_Comment(context, token):2354                self.build(context, token)2355                return 352356        if self.match_Empty(context, token):2357                self.build(context, token)2358                return 352359        state_comment = "State: 35 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0"2360        token.detach2361        expected_tokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2362        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2363        if (self.stop_at_first_error):2364            raise error2365        self.add_error(context, error)2366        return 352367    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:02368    def match_token_at_36(self, token, context):2369        if self.match_EOF(context, token):2370                self.end_rule(context, 'DataTable')2371                self.end_rule(context, 'Step')2372                self.end_rule(context, 'Scenario')2373                self.end_rule(context, 'ScenarioDefinition')2374                self.end_rule(context, 'Rule')2375                self.end_rule(context, 'Feature')2376                self.build(context, token)2377                return 422378        if self.match_TableRow(context, token):2379                self.build(context, token)2380                return 362381        if self.match_StepLine(context, token):2382                self.end_rule(context, 'DataTable')2383                self.end_rule(context, 'Step')2384                self.start_rule(context, 'Step')2385                self.build(context, token)2386                return 352387        if self.match_TagLine(context, token):2388            if self.lookahead_1(context, token):2389                self.end_rule(context, 'DataTable')2390                self.end_rule(context, 'Step')2391                self.start_rule(context, 'ExamplesDefinition')2392                self.start_rule(context, 'Tags')2393                self.build(context, token)2394                return 372395        if self.match_TagLine(context, token):2396            if self.lookahead_0(context, token):2397                self.end_rule(context, 'DataTable')2398                self.end_rule(context, 'Step')2399                self.end_rule(context, 'Scenario')2400                self.end_rule(context, 'ScenarioDefinition')2401                self.start_rule(context, 'ScenarioDefinition')2402                self.start_rule(context, 'Tags')2403                self.build(context, token)2404                return 312405        if self.match_TagLine(context, token):2406                self.end_rule(context, 'DataTable')2407                self.end_rule(context, 'Step')2408                self.end_rule(context, 'Scenario')2409                self.end_rule(context, 'ScenarioDefinition')2410                self.end_rule(context, 'Rule')2411                self.start_rule(context, 'Rule')2412                self.start_rule(context, 'RuleHeader')2413                self.start_rule(context, 'Tags')2414                self.build(context, token)2415                return 222416        if self.match_ExamplesLine(context, token):2417                self.end_rule(context, 'DataTable')2418                self.end_rule(context, 'Step')2419                self.start_rule(context, 'ExamplesDefinition')2420                self.start_rule(context, 'Examples')2421                self.build(context, token)2422                return 382423        if self.match_ScenarioLine(context, token):2424                self.end_rule(context, 'DataTable')2425                self.end_rule(context, 'Step')2426                self.end_rule(context, 'Scenario')2427                self.end_rule(context, 'ScenarioDefinition')2428                self.start_rule(context, 'ScenarioDefinition')2429                self.start_rule(context, 'Scenario')2430                self.build(context, token)2431                return 322432        if self.match_RuleLine(context, token):2433                self.end_rule(context, 'DataTable')2434                self.end_rule(context, 'Step')2435                self.end_rule(context, 'Scenario')2436                self.end_rule(context, 'ScenarioDefinition')2437                self.end_rule(context, 'Rule')2438                self.start_rule(context, 'Rule')2439                self.start_rule(context, 'RuleHeader')2440                self.build(context, token)2441                return 232442        if self.match_Comment(context, token):2443                self.build(context, token)2444                return 362445        if self.match_Empty(context, token):2446                self.build(context, token)2447                return 362448        state_comment = "State: 36 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0"2449        token.detach2450        expected_tokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2451        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2452        if (self.stop_at_first_error):2453            raise error2454        self.add_error(context, error)2455        return 362456    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:02457    def match_token_at_37(self, token, context):2458        if self.match_TagLine(context, token):2459                self.build(context, token)2460                return 372461        if self.match_ExamplesLine(context, token):2462                self.end_rule(context, 'Tags')2463                self.start_rule(context, 'Examples')2464                self.build(context, token)2465                return 382466        if self.match_Comment(context, token):2467                self.build(context, token)2468                return 372469        if self.match_Empty(context, token):2470                self.build(context, token)2471                return 372472        state_comment = "State: 37 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0"2473        token.detach2474        expected_tokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"]2475        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2476        if (self.stop_at_first_error):2477            raise error2478        self.add_error(context, error)2479        return 372480    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:02481    def match_token_at_38(self, token, context):2482        if self.match_EOF(context, token):2483                self.end_rule(context, 'Examples')2484                self.end_rule(context, 'ExamplesDefinition')2485                self.end_rule(context, 'Scenario')2486                self.end_rule(context, 'ScenarioDefinition')2487                self.end_rule(context, 'Rule')2488                self.end_rule(context, 'Feature')2489                self.build(context, token)2490                return 422491        if self.match_Empty(context, token):2492                self.build(context, token)2493                return 382494        if self.match_Comment(context, token):2495                self.build(context, token)2496                return 402497        if self.match_TableRow(context, token):2498                self.start_rule(context, 'ExamplesTable')2499                self.build(context, token)2500                return 412501        if self.match_TagLine(context, token):2502            if self.lookahead_1(context, token):2503                self.end_rule(context, 'Examples')2504                self.end_rule(context, 'ExamplesDefinition')2505                self.start_rule(context, 'ExamplesDefinition')2506                self.start_rule(context, 'Tags')2507                self.build(context, token)2508                return 372509        if self.match_TagLine(context, token):2510            if self.lookahead_0(context, token):2511                self.end_rule(context, 'Examples')2512                self.end_rule(context, 'ExamplesDefinition')2513                self.end_rule(context, 'Scenario')2514                self.end_rule(context, 'ScenarioDefinition')2515                self.start_rule(context, 'ScenarioDefinition')2516                self.start_rule(context, 'Tags')2517                self.build(context, token)2518                return 312519        if self.match_TagLine(context, token):2520                self.end_rule(context, 'Examples')2521                self.end_rule(context, 'ExamplesDefinition')2522                self.end_rule(context, 'Scenario')2523                self.end_rule(context, 'ScenarioDefinition')2524                self.end_rule(context, 'Rule')2525                self.start_rule(context, 'Rule')2526                self.start_rule(context, 'RuleHeader')2527                self.start_rule(context, 'Tags')2528                self.build(context, token)2529                return 222530        if self.match_ExamplesLine(context, token):2531                self.end_rule(context, 'Examples')2532                self.end_rule(context, 'ExamplesDefinition')2533                self.start_rule(context, 'ExamplesDefinition')2534                self.start_rule(context, 'Examples')2535                self.build(context, token)2536                return 382537        if self.match_ScenarioLine(context, token):2538                self.end_rule(context, 'Examples')2539                self.end_rule(context, 'ExamplesDefinition')2540                self.end_rule(context, 'Scenario')2541                self.end_rule(context, 'ScenarioDefinition')2542                self.start_rule(context, 'ScenarioDefinition')2543                self.start_rule(context, 'Scenario')2544                self.build(context, token)2545                return 322546        if self.match_RuleLine(context, token):2547                self.end_rule(context, 'Examples')2548                self.end_rule(context, 'ExamplesDefinition')2549                self.end_rule(context, 'Scenario')2550                self.end_rule(context, 'ScenarioDefinition')2551                self.end_rule(context, 'Rule')2552                self.start_rule(context, 'Rule')2553                self.start_rule(context, 'RuleHeader')2554                self.build(context, token)2555                return 232556        if self.match_Other(context, token):2557                self.start_rule(context, 'Description')2558                self.build(context, token)2559                return 392560        state_comment = "State: 38 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0"2561        token.detach2562        expected_tokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]2563        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2564        if (self.stop_at_first_error):2565            raise error2566        self.add_error(context, error)2567        return 382568    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:02569    def match_token_at_39(self, token, context):2570        if self.match_EOF(context, token):2571                self.end_rule(context, 'Description')2572                self.end_rule(context, 'Examples')2573                self.end_rule(context, 'ExamplesDefinition')2574                self.end_rule(context, 'Scenario')2575                self.end_rule(context, 'ScenarioDefinition')2576                self.end_rule(context, 'Rule')2577                self.end_rule(context, 'Feature')2578                self.build(context, token)2579                return 422580        if self.match_Comment(context, token):2581                self.end_rule(context, 'Description')2582                self.build(context, token)2583                return 402584        if self.match_TableRow(context, token):2585                self.end_rule(context, 'Description')2586                self.start_rule(context, 'ExamplesTable')2587                self.build(context, token)2588                return 412589        if self.match_TagLine(context, token):2590            if self.lookahead_1(context, token):2591                self.end_rule(context, 'Description')2592                self.end_rule(context, 'Examples')2593                self.end_rule(context, 'ExamplesDefinition')2594                self.start_rule(context, 'ExamplesDefinition')2595                self.start_rule(context, 'Tags')2596                self.build(context, token)2597                return 372598        if self.match_TagLine(context, token):2599            if self.lookahead_0(context, token):2600                self.end_rule(context, 'Description')2601                self.end_rule(context, 'Examples')2602                self.end_rule(context, 'ExamplesDefinition')2603                self.end_rule(context, 'Scenario')2604                self.end_rule(context, 'ScenarioDefinition')2605                self.start_rule(context, 'ScenarioDefinition')2606                self.start_rule(context, 'Tags')2607                self.build(context, token)2608                return 312609        if self.match_TagLine(context, token):2610                self.end_rule(context, 'Description')2611                self.end_rule(context, 'Examples')2612                self.end_rule(context, 'ExamplesDefinition')2613                self.end_rule(context, 'Scenario')2614                self.end_rule(context, 'ScenarioDefinition')2615                self.end_rule(context, 'Rule')2616                self.start_rule(context, 'Rule')2617                self.start_rule(context, 'RuleHeader')2618                self.start_rule(context, 'Tags')2619                self.build(context, token)2620                return 222621        if self.match_ExamplesLine(context, token):2622                self.end_rule(context, 'Description')2623                self.end_rule(context, 'Examples')2624                self.end_rule(context, 'ExamplesDefinition')2625                self.start_rule(context, 'ExamplesDefinition')2626                self.start_rule(context, 'Examples')2627                self.build(context, token)2628                return 382629        if self.match_ScenarioLine(context, token):2630                self.end_rule(context, 'Description')2631                self.end_rule(context, 'Examples')2632                self.end_rule(context, 'ExamplesDefinition')2633                self.end_rule(context, 'Scenario')2634                self.end_rule(context, 'ScenarioDefinition')2635                self.start_rule(context, 'ScenarioDefinition')2636                self.start_rule(context, 'Scenario')2637                self.build(context, token)2638                return 322639        if self.match_RuleLine(context, token):2640                self.end_rule(context, 'Description')2641                self.end_rule(context, 'Examples')2642                self.end_rule(context, 'ExamplesDefinition')2643                self.end_rule(context, 'Scenario')2644                self.end_rule(context, 'ScenarioDefinition')2645                self.end_rule(context, 'Rule')2646                self.start_rule(context, 'Rule')2647                self.start_rule(context, 'RuleHeader')2648                self.build(context, token)2649                return 232650        if self.match_Other(context, token):2651                self.build(context, token)2652                return 392653        state_comment = "State: 39 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0"2654        token.detach2655        expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"]2656        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2657        if (self.stop_at_first_error):2658            raise error2659        self.add_error(context, error)2660        return 392661    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:02662    def match_token_at_40(self, token, context):2663        if self.match_EOF(context, token):2664                self.end_rule(context, 'Examples')2665                self.end_rule(context, 'ExamplesDefinition')2666                self.end_rule(context, 'Scenario')2667                self.end_rule(context, 'ScenarioDefinition')2668                self.end_rule(context, 'Rule')2669                self.end_rule(context, 'Feature')2670                self.build(context, token)2671                return 422672        if self.match_Comment(context, token):2673                self.build(context, token)2674                return 402675        if self.match_TableRow(context, token):2676                self.start_rule(context, 'ExamplesTable')2677                self.build(context, token)2678                return 412679        if self.match_TagLine(context, token):2680            if self.lookahead_1(context, token):2681                self.end_rule(context, 'Examples')2682                self.end_rule(context, 'ExamplesDefinition')2683                self.start_rule(context, 'ExamplesDefinition')2684                self.start_rule(context, 'Tags')2685                self.build(context, token)2686                return 372687        if self.match_TagLine(context, token):2688            if self.lookahead_0(context, token):2689                self.end_rule(context, 'Examples')2690                self.end_rule(context, 'ExamplesDefinition')2691                self.end_rule(context, 'Scenario')2692                self.end_rule(context, 'ScenarioDefinition')2693                self.start_rule(context, 'ScenarioDefinition')2694                self.start_rule(context, 'Tags')2695                self.build(context, token)2696                return 312697        if self.match_TagLine(context, token):2698                self.end_rule(context, 'Examples')2699                self.end_rule(context, 'ExamplesDefinition')2700                self.end_rule(context, 'Scenario')2701                self.end_rule(context, 'ScenarioDefinition')2702                self.end_rule(context, 'Rule')2703                self.start_rule(context, 'Rule')2704                self.start_rule(context, 'RuleHeader')2705                self.start_rule(context, 'Tags')2706                self.build(context, token)2707                return 222708        if self.match_ExamplesLine(context, token):2709                self.end_rule(context, 'Examples')2710                self.end_rule(context, 'ExamplesDefinition')2711                self.start_rule(context, 'ExamplesDefinition')2712                self.start_rule(context, 'Examples')2713                self.build(context, token)2714                return 382715        if self.match_ScenarioLine(context, token):2716                self.end_rule(context, 'Examples')2717                self.end_rule(context, 'ExamplesDefinition')2718                self.end_rule(context, 'Scenario')2719                self.end_rule(context, 'ScenarioDefinition')2720                self.start_rule(context, 'ScenarioDefinition')2721                self.start_rule(context, 'Scenario')2722                self.build(context, token)2723                return 322724        if self.match_RuleLine(context, token):2725                self.end_rule(context, 'Examples')2726                self.end_rule(context, 'ExamplesDefinition')2727                self.end_rule(context, 'Scenario')2728                self.end_rule(context, 'ScenarioDefinition')2729                self.end_rule(context, 'Rule')2730                self.start_rule(context, 'Rule')2731                self.start_rule(context, 'RuleHeader')2732                self.build(context, token)2733                return 232734        if self.match_Empty(context, token):2735                self.build(context, token)2736                return 402737        state_comment = "State: 40 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0"2738        token.detach2739        expected_tokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"]2740        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2741        if (self.stop_at_first_error):2742            raise error2743        self.add_error(context, error)2744        return 402745    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:02746    def match_token_at_41(self, token, context):2747        if self.match_EOF(context, token):2748                self.end_rule(context, 'ExamplesTable')2749                self.end_rule(context, 'Examples')2750                self.end_rule(context, 'ExamplesDefinition')2751                self.end_rule(context, 'Scenario')2752                self.end_rule(context, 'ScenarioDefinition')2753                self.end_rule(context, 'Rule')2754                self.end_rule(context, 'Feature')2755                self.build(context, token)2756                return 422757        if self.match_TableRow(context, token):2758                self.build(context, token)2759                return 412760        if self.match_TagLine(context, token):2761            if self.lookahead_1(context, token):2762                self.end_rule(context, 'ExamplesTable')2763                self.end_rule(context, 'Examples')2764                self.end_rule(context, 'ExamplesDefinition')2765                self.start_rule(context, 'ExamplesDefinition')2766                self.start_rule(context, 'Tags')2767                self.build(context, token)2768                return 372769        if self.match_TagLine(context, token):2770            if self.lookahead_0(context, token):2771                self.end_rule(context, 'ExamplesTable')2772                self.end_rule(context, 'Examples')2773                self.end_rule(context, 'ExamplesDefinition')2774                self.end_rule(context, 'Scenario')2775                self.end_rule(context, 'ScenarioDefinition')2776                self.start_rule(context, 'ScenarioDefinition')2777                self.start_rule(context, 'Tags')2778                self.build(context, token)2779                return 312780        if self.match_TagLine(context, token):2781                self.end_rule(context, 'ExamplesTable')2782                self.end_rule(context, 'Examples')2783                self.end_rule(context, 'ExamplesDefinition')2784                self.end_rule(context, 'Scenario')2785                self.end_rule(context, 'ScenarioDefinition')2786                self.end_rule(context, 'Rule')2787                self.start_rule(context, 'Rule')2788                self.start_rule(context, 'RuleHeader')2789                self.start_rule(context, 'Tags')2790                self.build(context, token)2791                return 222792        if self.match_ExamplesLine(context, token):2793                self.end_rule(context, 'ExamplesTable')2794                self.end_rule(context, 'Examples')2795                self.end_rule(context, 'ExamplesDefinition')2796                self.start_rule(context, 'ExamplesDefinition')2797                self.start_rule(context, 'Examples')2798                self.build(context, token)2799                return 382800        if self.match_ScenarioLine(context, token):2801                self.end_rule(context, 'ExamplesTable')2802                self.end_rule(context, 'Examples')2803                self.end_rule(context, 'ExamplesDefinition')2804                self.end_rule(context, 'Scenario')2805                self.end_rule(context, 'ScenarioDefinition')2806                self.start_rule(context, 'ScenarioDefinition')2807                self.start_rule(context, 'Scenario')2808                self.build(context, token)2809                return 322810        if self.match_RuleLine(context, token):2811                self.end_rule(context, 'ExamplesTable')2812                self.end_rule(context, 'Examples')2813                self.end_rule(context, 'ExamplesDefinition')2814                self.end_rule(context, 'Scenario')2815                self.end_rule(context, 'ScenarioDefinition')2816                self.end_rule(context, 'Rule')2817                self.start_rule(context, 'Rule')2818                self.start_rule(context, 'RuleHeader')2819                self.build(context, token)2820                return 232821        if self.match_Comment(context, token):2822                self.build(context, token)2823                return 412824        if self.match_Empty(context, token):2825                self.build(context, token)2826                return 412827        state_comment = "State: 41 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0"2828        token.detach2829        expected_tokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2830        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2831        if (self.stop_at_first_error):2832            raise error2833        self.add_error(context, error)2834        return 412835    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:02836    def match_token_at_43(self, token, context):2837        if self.match_DocStringSeparator(context, token):2838                self.build(context, token)2839                return 442840        if self.match_Other(context, token):2841                self.build(context, token)2842                return 432843        state_comment = "State: 43 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"2844        token.detach2845        expected_tokens = ["#DocStringSeparator", "#Other"]2846        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2847        if (self.stop_at_first_error):2848            raise error2849        self.add_error(context, error)2850        return 432851    # GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:02852    def match_token_at_44(self, token, context):2853        if self.match_EOF(context, token):2854                self.end_rule(context, 'DocString')2855                self.end_rule(context, 'Step')2856                self.end_rule(context, 'Scenario')2857                self.end_rule(context, 'ScenarioDefinition')2858                self.end_rule(context, 'Rule')2859                self.end_rule(context, 'Feature')2860                self.build(context, token)2861                return 422862        if self.match_StepLine(context, token):2863                self.end_rule(context, 'DocString')2864                self.end_rule(context, 'Step')2865                self.start_rule(context, 'Step')2866                self.build(context, token)2867                return 352868        if self.match_TagLine(context, token):2869            if self.lookahead_1(context, token):2870                self.end_rule(context, 'DocString')2871                self.end_rule(context, 'Step')2872                self.start_rule(context, 'ExamplesDefinition')2873                self.start_rule(context, 'Tags')2874                self.build(context, token)2875                return 372876        if self.match_TagLine(context, token):2877            if self.lookahead_0(context, token):2878                self.end_rule(context, 'DocString')2879                self.end_rule(context, 'Step')2880                self.end_rule(context, 'Scenario')2881                self.end_rule(context, 'ScenarioDefinition')2882                self.start_rule(context, 'ScenarioDefinition')2883                self.start_rule(context, 'Tags')2884                self.build(context, token)2885                return 312886        if self.match_TagLine(context, token):2887                self.end_rule(context, 'DocString')2888                self.end_rule(context, 'Step')2889                self.end_rule(context, 'Scenario')2890                self.end_rule(context, 'ScenarioDefinition')2891                self.end_rule(context, 'Rule')2892                self.start_rule(context, 'Rule')2893                self.start_rule(context, 'RuleHeader')2894                self.start_rule(context, 'Tags')2895                self.build(context, token)2896                return 222897        if self.match_ExamplesLine(context, token):2898                self.end_rule(context, 'DocString')2899                self.end_rule(context, 'Step')2900                self.start_rule(context, 'ExamplesDefinition')2901                self.start_rule(context, 'Examples')2902                self.build(context, token)2903                return 382904        if self.match_ScenarioLine(context, token):2905                self.end_rule(context, 'DocString')2906                self.end_rule(context, 'Step')2907                self.end_rule(context, 'Scenario')2908                self.end_rule(context, 'ScenarioDefinition')2909                self.start_rule(context, 'ScenarioDefinition')2910                self.start_rule(context, 'Scenario')2911                self.build(context, token)2912                return 322913        if self.match_RuleLine(context, token):2914                self.end_rule(context, 'DocString')2915                self.end_rule(context, 'Step')2916                self.end_rule(context, 'Scenario')2917                self.end_rule(context, 'ScenarioDefinition')2918                self.end_rule(context, 'Rule')2919                self.start_rule(context, 'Rule')2920                self.start_rule(context, 'RuleHeader')2921                self.build(context, token)2922                return 232923        if self.match_Comment(context, token):2924                self.build(context, token)2925                return 442926        if self.match_Empty(context, token):2927                self.build(context, token)2928                return 442929        state_comment = "State: 44 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"2930        token.detach2931        expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]2932        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2933        if (self.stop_at_first_error):2934            raise error2935        self.add_error(context, error)2936        return 442937    # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:02938    def match_token_at_45(self, token, context):2939        if self.match_DocStringSeparator(context, token):2940                self.build(context, token)2941                return 462942        if self.match_Other(context, token):2943                self.build(context, token)2944                return 452945        state_comment = "State: 45 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"2946        token.detach2947        expected_tokens = ["#DocStringSeparator", "#Other"]2948        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)2949        if (self.stop_at_first_error):2950            raise error2951        self.add_error(context, error)2952        return 452953    # GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:02954    def match_token_at_46(self, token, context):2955        if self.match_EOF(context, token):2956                self.end_rule(context, 'DocString')2957                self.end_rule(context, 'Step')2958                self.end_rule(context, 'Background')2959                self.end_rule(context, 'Rule')2960                self.end_rule(context, 'Feature')2961                self.build(context, token)2962                return 422963        if self.match_StepLine(context, token):2964                self.end_rule(context, 'DocString')2965                self.end_rule(context, 'Step')2966                self.start_rule(context, 'Step')2967                self.build(context, token)2968                return 292969        if self.match_TagLine(context, token):2970            if self.lookahead_0(context, token):2971                self.end_rule(context, 'DocString')2972                self.end_rule(context, 'Step')2973                self.end_rule(context, 'Background')2974                self.start_rule(context, 'ScenarioDefinition')2975                self.start_rule(context, 'Tags')2976                self.build(context, token)2977                return 312978        if self.match_TagLine(context, token):2979                self.end_rule(context, 'DocString')2980                self.end_rule(context, 'Step')2981                self.end_rule(context, 'Background')2982                self.end_rule(context, 'Rule')2983                self.start_rule(context, 'Rule')2984                self.start_rule(context, 'RuleHeader')2985                self.start_rule(context, 'Tags')2986                self.build(context, token)2987                return 222988        if self.match_ScenarioLine(context, token):2989                self.end_rule(context, 'DocString')2990                self.end_rule(context, 'Step')2991                self.end_rule(context, 'Background')2992                self.start_rule(context, 'ScenarioDefinition')2993                self.start_rule(context, 'Scenario')2994                self.build(context, token)2995                return 322996        if self.match_RuleLine(context, token):2997                self.end_rule(context, 'DocString')2998                self.end_rule(context, 'Step')2999                self.end_rule(context, 'Background')3000                self.end_rule(context, 'Rule')3001                self.start_rule(context, 'Rule')3002                self.start_rule(context, 'RuleHeader')3003                self.build(context, token)3004                return 233005        if self.match_Comment(context, token):3006                self.build(context, token)3007                return 463008        if self.match_Empty(context, token):3009                self.build(context, token)3010                return 463011        state_comment = "State: 46 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"3012        token.detach3013        expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]3014        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)3015        if (self.stop_at_first_error):3016            raise error3017        self.add_error(context, error)3018        return 463019    # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:03020    def match_token_at_47(self, token, context):3021        if self.match_DocStringSeparator(context, token):3022                self.build(context, token)3023                return 483024        if self.match_Other(context, token):3025                self.build(context, token)3026                return 473027        state_comment = "State: 47 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"3028        token.detach3029        expected_tokens = ["#DocStringSeparator", "#Other"]3030        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)3031        if (self.stop_at_first_error):3032            raise error3033        self.add_error(context, error)3034        return 473035    # GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:03036    def match_token_at_48(self, token, context):3037        if self.match_EOF(context, token):3038                self.end_rule(context, 'DocString')3039                self.end_rule(context, 'Step')3040                self.end_rule(context, 'Scenario')3041                self.end_rule(context, 'ScenarioDefinition')3042                self.end_rule(context, 'Feature')3043                self.build(context, token)3044                return 423045        if self.match_StepLine(context, token):3046                self.end_rule(context, 'DocString')3047                self.end_rule(context, 'Step')3048                self.start_rule(context, 'Step')3049                self.build(context, token)3050                return 153051        if self.match_TagLine(context, token):3052            if self.lookahead_1(context, token):3053                self.end_rule(context, 'DocString')3054                self.end_rule(context, 'Step')3055                self.start_rule(context, 'ExamplesDefinition')3056                self.start_rule(context, 'Tags')3057                self.build(context, token)3058                return 173059        if self.match_TagLine(context, token):3060            if self.lookahead_0(context, token):3061                self.end_rule(context, 'DocString')3062                self.end_rule(context, 'Step')3063                self.end_rule(context, 'Scenario')3064                self.end_rule(context, 'ScenarioDefinition')3065                self.start_rule(context, 'ScenarioDefinition')3066                self.start_rule(context, 'Tags')3067                self.build(context, token)3068                return 113069        if self.match_TagLine(context, token):3070                self.end_rule(context, 'DocString')3071                self.end_rule(context, 'Step')3072                self.end_rule(context, 'Scenario')3073                self.end_rule(context, 'ScenarioDefinition')3074                self.start_rule(context, 'Rule')3075                self.start_rule(context, 'RuleHeader')3076                self.start_rule(context, 'Tags')3077                self.build(context, token)3078                return 223079        if self.match_ExamplesLine(context, token):3080                self.end_rule(context, 'DocString')3081                self.end_rule(context, 'Step')3082                self.start_rule(context, 'ExamplesDefinition')3083                self.start_rule(context, 'Examples')3084                self.build(context, token)3085                return 183086        if self.match_ScenarioLine(context, token):3087                self.end_rule(context, 'DocString')3088                self.end_rule(context, 'Step')3089                self.end_rule(context, 'Scenario')3090                self.end_rule(context, 'ScenarioDefinition')3091                self.start_rule(context, 'ScenarioDefinition')3092                self.start_rule(context, 'Scenario')3093                self.build(context, token)3094                return 123095        if self.match_RuleLine(context, token):3096                self.end_rule(context, 'DocString')3097                self.end_rule(context, 'Step')3098                self.end_rule(context, 'Scenario')3099                self.end_rule(context, 'ScenarioDefinition')3100                self.start_rule(context, 'Rule')3101                self.start_rule(context, 'RuleHeader')3102                self.build(context, token)3103                return 233104        if self.match_Comment(context, token):3105                self.build(context, token)3106                return 483107        if self.match_Empty(context, token):3108                self.build(context, token)3109                return 483110        state_comment = "State: 48 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"3111        token.detach3112        expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]3113        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)3114        if (self.stop_at_first_error):3115            raise error3116        self.add_error(context, error)3117        return 483118    # GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:03119    def match_token_at_49(self, token, context):3120        if self.match_DocStringSeparator(context, token):3121                self.build(context, token)3122                return 503123        if self.match_Other(context, token):3124                self.build(context, token)3125                return 493126        state_comment = "State: 49 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:0>#DocStringSeparator:0"3127        token.detach3128        expected_tokens = ["#DocStringSeparator", "#Other"]3129        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)3130        if (self.stop_at_first_error):3131            raise error3132        self.add_error(context, error)3133        return 493134    # GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:03135    def match_token_at_50(self, token, context):3136        if self.match_EOF(context, token):3137                self.end_rule(context, 'DocString')3138                self.end_rule(context, 'Step')3139                self.end_rule(context, 'Background')3140                self.end_rule(context, 'Feature')3141                self.build(context, token)3142                return 423143        if self.match_StepLine(context, token):3144                self.end_rule(context, 'DocString')3145                self.end_rule(context, 'Step')3146                self.start_rule(context, 'Step')3147                self.build(context, token)3148                return 93149        if self.match_TagLine(context, token):3150            if self.lookahead_0(context, token):3151                self.end_rule(context, 'DocString')3152                self.end_rule(context, 'Step')3153                self.end_rule(context, 'Background')3154                self.start_rule(context, 'ScenarioDefinition')3155                self.start_rule(context, 'Tags')3156                self.build(context, token)3157                return 113158        if self.match_TagLine(context, token):3159                self.end_rule(context, 'DocString')3160                self.end_rule(context, 'Step')3161                self.end_rule(context, 'Background')3162                self.start_rule(context, 'Rule')3163                self.start_rule(context, 'RuleHeader')3164                self.start_rule(context, 'Tags')3165                self.build(context, token)3166                return 223167        if self.match_ScenarioLine(context, token):3168                self.end_rule(context, 'DocString')3169                self.end_rule(context, 'Step')3170                self.end_rule(context, 'Background')3171                self.start_rule(context, 'ScenarioDefinition')3172                self.start_rule(context, 'Scenario')3173                self.build(context, token)3174                return 123175        if self.match_RuleLine(context, token):3176                self.end_rule(context, 'DocString')3177                self.end_rule(context, 'Step')3178                self.end_rule(context, 'Background')3179                self.start_rule(context, 'Rule')3180                self.start_rule(context, 'RuleHeader')3181                self.build(context, token)3182                return 233183        if self.match_Comment(context, token):3184                self.build(context, token)3185                return 503186        if self.match_Empty(context, token):3187                self.build(context, token)3188                return 503189        state_comment = "State: 50 - GherkinDocument:0>Feature:1>Background:2>Step:1>StepArg:0>__alt0:1>DocString:2>#DocStringSeparator:0"3190        token.detach3191        expected_tokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"]3192        error = UnexpectedEOFException(token, expected_tokens, state_comment) if token.eof() else UnexpectedTokenException(token, expected_tokens, state_comment)3193        if (self.stop_at_first_error):3194            raise error3195        self.add_error(context, error)3196        return 503197    def lookahead_0(self, context, currentToken):3198        currentToken.detach3199        token = None3200        queue = []3201        match = False3202        while True:3203            token = self.read_token(context)3204            token.detach3205            queue.append(token)3206            if (self.match_ScenarioLine(context, token) or False):3207                match = True3208                break3209            if not (self.match_Empty(context, token) or self.match_Comment(context, token) or self.match_TagLine(context, token) or False):3210                break3211        context.token_queue.extend(queue)...

Full Screen

Full Screen

parser.js

Source:parser.js Github

copy

Full Screen

...864      build(context, token);865      return 15;866    }867    if(match_TagLine(context, token)) {868      if(lookahead_0(context, token)) {869      startRule(context, 'ExamplesDefinition');870      startRule(context, 'Tags');871      build(context, token);872      return 17;873      }874    }875    if(match_TagLine(context, token)) {876      endRule(context, 'Scenario');877      endRule(context, 'ScenarioDefinition');878      startRule(context, 'ScenarioDefinition');879      startRule(context, 'Tags');880      build(context, token);881      return 11;882    }883    if(match_ExamplesLine(context, token)) {884      startRule(context, 'ExamplesDefinition');885      startRule(context, 'Examples');886      build(context, token);887      return 18;888    }889    if(match_ScenarioLine(context, token)) {890      endRule(context, 'Scenario');891      endRule(context, 'ScenarioDefinition');892      startRule(context, 'ScenarioDefinition');893      startRule(context, 'Scenario');894      build(context, token);895      return 12;896    }897    if(match_RuleLine(context, token)) {898      endRule(context, 'Scenario');899      endRule(context, 'ScenarioDefinition');900      startRule(context, 'Rule');901      startRule(context, 'RuleHeader');902      build(context, token);903      return 22;904    }905    if(match_Other(context, token)) {906      startRule(context, 'Description');907      build(context, token);908      return 13;909    }910    911    var stateComment = "State: 12 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0";912    token.detach();913    var expectedTokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"];914    var error = token.isEof ?915      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :916      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);917    if (self.stopAtFirstError) throw error;918    addError(context, error);919    return 12;920  }921  // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0922  function matchTokenAt_13(token, context) {923    if(match_EOF(context, token)) {924      endRule(context, 'Description');925      endRule(context, 'Scenario');926      endRule(context, 'ScenarioDefinition');927      endRule(context, 'Feature');928      build(context, token);929      return 41;930    }931    if(match_Comment(context, token)) {932      endRule(context, 'Description');933      build(context, token);934      return 14;935    }936    if(match_StepLine(context, token)) {937      endRule(context, 'Description');938      startRule(context, 'Step');939      build(context, token);940      return 15;941    }942    if(match_TagLine(context, token)) {943      if(lookahead_0(context, token)) {944      endRule(context, 'Description');945      startRule(context, 'ExamplesDefinition');946      startRule(context, 'Tags');947      build(context, token);948      return 17;949      }950    }951    if(match_TagLine(context, token)) {952      endRule(context, 'Description');953      endRule(context, 'Scenario');954      endRule(context, 'ScenarioDefinition');955      startRule(context, 'ScenarioDefinition');956      startRule(context, 'Tags');957      build(context, token);958      return 11;959    }960    if(match_ExamplesLine(context, token)) {961      endRule(context, 'Description');962      startRule(context, 'ExamplesDefinition');963      startRule(context, 'Examples');964      build(context, token);965      return 18;966    }967    if(match_ScenarioLine(context, token)) {968      endRule(context, 'Description');969      endRule(context, 'Scenario');970      endRule(context, 'ScenarioDefinition');971      startRule(context, 'ScenarioDefinition');972      startRule(context, 'Scenario');973      build(context, token);974      return 12;975    }976    if(match_RuleLine(context, token)) {977      endRule(context, 'Description');978      endRule(context, 'Scenario');979      endRule(context, 'ScenarioDefinition');980      startRule(context, 'Rule');981      startRule(context, 'RuleHeader');982      build(context, token);983      return 22;984    }985    if(match_Other(context, token)) {986      build(context, token);987      return 13;988    }989    990    var stateComment = "State: 13 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0";991    token.detach();992    var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"];993    var error = token.isEof ?994      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :995      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);996    if (self.stopAtFirstError) throw error;997    addError(context, error);998    return 13;999  }1000  // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:01001  function matchTokenAt_14(token, context) {1002    if(match_EOF(context, token)) {1003      endRule(context, 'Scenario');1004      endRule(context, 'ScenarioDefinition');1005      endRule(context, 'Feature');1006      build(context, token);1007      return 41;1008    }1009    if(match_Comment(context, token)) {1010      build(context, token);1011      return 14;1012    }1013    if(match_StepLine(context, token)) {1014      startRule(context, 'Step');1015      build(context, token);1016      return 15;1017    }1018    if(match_TagLine(context, token)) {1019      if(lookahead_0(context, token)) {1020      startRule(context, 'ExamplesDefinition');1021      startRule(context, 'Tags');1022      build(context, token);1023      return 17;1024      }1025    }1026    if(match_TagLine(context, token)) {1027      endRule(context, 'Scenario');1028      endRule(context, 'ScenarioDefinition');1029      startRule(context, 'ScenarioDefinition');1030      startRule(context, 'Tags');1031      build(context, token);1032      return 11;1033    }1034    if(match_ExamplesLine(context, token)) {1035      startRule(context, 'ExamplesDefinition');1036      startRule(context, 'Examples');1037      build(context, token);1038      return 18;1039    }1040    if(match_ScenarioLine(context, token)) {1041      endRule(context, 'Scenario');1042      endRule(context, 'ScenarioDefinition');1043      startRule(context, 'ScenarioDefinition');1044      startRule(context, 'Scenario');1045      build(context, token);1046      return 12;1047    }1048    if(match_RuleLine(context, token)) {1049      endRule(context, 'Scenario');1050      endRule(context, 'ScenarioDefinition');1051      startRule(context, 'Rule');1052      startRule(context, 'RuleHeader');1053      build(context, token);1054      return 22;1055    }1056    if(match_Empty(context, token)) {1057      build(context, token);1058      return 14;1059    }1060    1061    var stateComment = "State: 14 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0";1062    token.detach();1063    var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"];1064    var error = token.isEof ?1065      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1066      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1067    if (self.stopAtFirstError) throw error;1068    addError(context, error);1069    return 14;1070  }1071  // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:01072  function matchTokenAt_15(token, context) {1073    if(match_EOF(context, token)) {1074      endRule(context, 'Step');1075      endRule(context, 'Scenario');1076      endRule(context, 'ScenarioDefinition');1077      endRule(context, 'Feature');1078      build(context, token);1079      return 41;1080    }1081    if(match_TableRow(context, token)) {1082      startRule(context, 'DataTable');1083      build(context, token);1084      return 16;1085    }1086    if(match_DocStringSeparator(context, token)) {1087      startRule(context, 'DocString');1088      build(context, token);1089      return 46;1090    }1091    if(match_StepLine(context, token)) {1092      endRule(context, 'Step');1093      startRule(context, 'Step');1094      build(context, token);1095      return 15;1096    }1097    if(match_TagLine(context, token)) {1098      if(lookahead_0(context, token)) {1099      endRule(context, 'Step');1100      startRule(context, 'ExamplesDefinition');1101      startRule(context, 'Tags');1102      build(context, token);1103      return 17;1104      }1105    }1106    if(match_TagLine(context, token)) {1107      endRule(context, 'Step');1108      endRule(context, 'Scenario');1109      endRule(context, 'ScenarioDefinition');1110      startRule(context, 'ScenarioDefinition');1111      startRule(context, 'Tags');1112      build(context, token);1113      return 11;1114    }1115    if(match_ExamplesLine(context, token)) {1116      endRule(context, 'Step');1117      startRule(context, 'ExamplesDefinition');1118      startRule(context, 'Examples');1119      build(context, token);1120      return 18;1121    }1122    if(match_ScenarioLine(context, token)) {1123      endRule(context, 'Step');1124      endRule(context, 'Scenario');1125      endRule(context, 'ScenarioDefinition');1126      startRule(context, 'ScenarioDefinition');1127      startRule(context, 'Scenario');1128      build(context, token);1129      return 12;1130    }1131    if(match_RuleLine(context, token)) {1132      endRule(context, 'Step');1133      endRule(context, 'Scenario');1134      endRule(context, 'ScenarioDefinition');1135      startRule(context, 'Rule');1136      startRule(context, 'RuleHeader');1137      build(context, token);1138      return 22;1139    }1140    if(match_Comment(context, token)) {1141      build(context, token);1142      return 15;1143    }1144    if(match_Empty(context, token)) {1145      build(context, token);1146      return 15;1147    }1148    1149    var stateComment = "State: 15 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0";1150    token.detach();1151    var expectedTokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"];1152    var error = token.isEof ?1153      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1154      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1155    if (self.stopAtFirstError) throw error;1156    addError(context, error);1157    return 15;1158  }1159  // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:01160  function matchTokenAt_16(token, context) {1161    if(match_EOF(context, token)) {1162      endRule(context, 'DataTable');1163      endRule(context, 'Step');1164      endRule(context, 'Scenario');1165      endRule(context, 'ScenarioDefinition');1166      endRule(context, 'Feature');1167      build(context, token);1168      return 41;1169    }1170    if(match_TableRow(context, token)) {1171      build(context, token);1172      return 16;1173    }1174    if(match_StepLine(context, token)) {1175      endRule(context, 'DataTable');1176      endRule(context, 'Step');1177      startRule(context, 'Step');1178      build(context, token);1179      return 15;1180    }1181    if(match_TagLine(context, token)) {1182      if(lookahead_0(context, token)) {1183      endRule(context, 'DataTable');1184      endRule(context, 'Step');1185      startRule(context, 'ExamplesDefinition');1186      startRule(context, 'Tags');1187      build(context, token);1188      return 17;1189      }1190    }1191    if(match_TagLine(context, token)) {1192      endRule(context, 'DataTable');1193      endRule(context, 'Step');1194      endRule(context, 'Scenario');1195      endRule(context, 'ScenarioDefinition');1196      startRule(context, 'ScenarioDefinition');1197      startRule(context, 'Tags');1198      build(context, token);1199      return 11;1200    }1201    if(match_ExamplesLine(context, token)) {1202      endRule(context, 'DataTable');1203      endRule(context, 'Step');1204      startRule(context, 'ExamplesDefinition');1205      startRule(context, 'Examples');1206      build(context, token);1207      return 18;1208    }1209    if(match_ScenarioLine(context, token)) {1210      endRule(context, 'DataTable');1211      endRule(context, 'Step');1212      endRule(context, 'Scenario');1213      endRule(context, 'ScenarioDefinition');1214      startRule(context, 'ScenarioDefinition');1215      startRule(context, 'Scenario');1216      build(context, token);1217      return 12;1218    }1219    if(match_RuleLine(context, token)) {1220      endRule(context, 'DataTable');1221      endRule(context, 'Step');1222      endRule(context, 'Scenario');1223      endRule(context, 'ScenarioDefinition');1224      startRule(context, 'Rule');1225      startRule(context, 'RuleHeader');1226      build(context, token);1227      return 22;1228    }1229    if(match_Comment(context, token)) {1230      build(context, token);1231      return 16;1232    }1233    if(match_Empty(context, token)) {1234      build(context, token);1235      return 16;1236    }1237    1238    var stateComment = "State: 16 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0";1239    token.detach();1240    var expectedTokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"];1241    var error = token.isEof ?1242      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1243      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1244    if (self.stopAtFirstError) throw error;1245    addError(context, error);1246    return 16;1247  }1248  // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:01249  function matchTokenAt_17(token, context) {1250    if(match_TagLine(context, token)) {1251      build(context, token);1252      return 17;1253    }1254    if(match_ExamplesLine(context, token)) {1255      endRule(context, 'Tags');1256      startRule(context, 'Examples');1257      build(context, token);1258      return 18;1259    }1260    if(match_Comment(context, token)) {1261      build(context, token);1262      return 17;1263    }1264    if(match_Empty(context, token)) {1265      build(context, token);1266      return 17;1267    }1268    1269    var stateComment = "State: 17 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:0>Tags:0>#TagLine:0";1270    token.detach();1271    var expectedTokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"];1272    var error = token.isEof ?1273      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1274      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1275    if (self.stopAtFirstError) throw error;1276    addError(context, error);1277    return 17;1278  }1279  // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:01280  function matchTokenAt_18(token, context) {1281    if(match_EOF(context, token)) {1282      endRule(context, 'Examples');1283      endRule(context, 'ExamplesDefinition');1284      endRule(context, 'Scenario');1285      endRule(context, 'ScenarioDefinition');1286      endRule(context, 'Feature');1287      build(context, token);1288      return 41;1289    }1290    if(match_Empty(context, token)) {1291      build(context, token);1292      return 18;1293    }1294    if(match_Comment(context, token)) {1295      build(context, token);1296      return 20;1297    }1298    if(match_TableRow(context, token)) {1299      startRule(context, 'ExamplesTable');1300      build(context, token);1301      return 21;1302    }1303    if(match_TagLine(context, token)) {1304      if(lookahead_0(context, token)) {1305      endRule(context, 'Examples');1306      endRule(context, 'ExamplesDefinition');1307      startRule(context, 'ExamplesDefinition');1308      startRule(context, 'Tags');1309      build(context, token);1310      return 17;1311      }1312    }1313    if(match_TagLine(context, token)) {1314      endRule(context, 'Examples');1315      endRule(context, 'ExamplesDefinition');1316      endRule(context, 'Scenario');1317      endRule(context, 'ScenarioDefinition');1318      startRule(context, 'ScenarioDefinition');1319      startRule(context, 'Tags');1320      build(context, token);1321      return 11;1322    }1323    if(match_ExamplesLine(context, token)) {1324      endRule(context, 'Examples');1325      endRule(context, 'ExamplesDefinition');1326      startRule(context, 'ExamplesDefinition');1327      startRule(context, 'Examples');1328      build(context, token);1329      return 18;1330    }1331    if(match_ScenarioLine(context, token)) {1332      endRule(context, 'Examples');1333      endRule(context, 'ExamplesDefinition');1334      endRule(context, 'Scenario');1335      endRule(context, 'ScenarioDefinition');1336      startRule(context, 'ScenarioDefinition');1337      startRule(context, 'Scenario');1338      build(context, token);1339      return 12;1340    }1341    if(match_RuleLine(context, token)) {1342      endRule(context, 'Examples');1343      endRule(context, 'ExamplesDefinition');1344      endRule(context, 'Scenario');1345      endRule(context, 'ScenarioDefinition');1346      startRule(context, 'Rule');1347      startRule(context, 'RuleHeader');1348      build(context, token);1349      return 22;1350    }1351    if(match_Other(context, token)) {1352      startRule(context, 'Description');1353      build(context, token);1354      return 19;1355    }1356    1357    var stateComment = "State: 18 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:0>#ExamplesLine:0";1358    token.detach();1359    var expectedTokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"];1360    var error = token.isEof ?1361      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1362      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1363    if (self.stopAtFirstError) throw error;1364    addError(context, error);1365    return 18;1366  }1367  // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:01368  function matchTokenAt_19(token, context) {1369    if(match_EOF(context, token)) {1370      endRule(context, 'Description');1371      endRule(context, 'Examples');1372      endRule(context, 'ExamplesDefinition');1373      endRule(context, 'Scenario');1374      endRule(context, 'ScenarioDefinition');1375      endRule(context, 'Feature');1376      build(context, token);1377      return 41;1378    }1379    if(match_Comment(context, token)) {1380      endRule(context, 'Description');1381      build(context, token);1382      return 20;1383    }1384    if(match_TableRow(context, token)) {1385      endRule(context, 'Description');1386      startRule(context, 'ExamplesTable');1387      build(context, token);1388      return 21;1389    }1390    if(match_TagLine(context, token)) {1391      if(lookahead_0(context, token)) {1392      endRule(context, 'Description');1393      endRule(context, 'Examples');1394      endRule(context, 'ExamplesDefinition');1395      startRule(context, 'ExamplesDefinition');1396      startRule(context, 'Tags');1397      build(context, token);1398      return 17;1399      }1400    }1401    if(match_TagLine(context, token)) {1402      endRule(context, 'Description');1403      endRule(context, 'Examples');1404      endRule(context, 'ExamplesDefinition');1405      endRule(context, 'Scenario');1406      endRule(context, 'ScenarioDefinition');1407      startRule(context, 'ScenarioDefinition');1408      startRule(context, 'Tags');1409      build(context, token);1410      return 11;1411    }1412    if(match_ExamplesLine(context, token)) {1413      endRule(context, 'Description');1414      endRule(context, 'Examples');1415      endRule(context, 'ExamplesDefinition');1416      startRule(context, 'ExamplesDefinition');1417      startRule(context, 'Examples');1418      build(context, token);1419      return 18;1420    }1421    if(match_ScenarioLine(context, token)) {1422      endRule(context, 'Description');1423      endRule(context, 'Examples');1424      endRule(context, 'ExamplesDefinition');1425      endRule(context, 'Scenario');1426      endRule(context, 'ScenarioDefinition');1427      startRule(context, 'ScenarioDefinition');1428      startRule(context, 'Scenario');1429      build(context, token);1430      return 12;1431    }1432    if(match_RuleLine(context, token)) {1433      endRule(context, 'Description');1434      endRule(context, 'Examples');1435      endRule(context, 'ExamplesDefinition');1436      endRule(context, 'Scenario');1437      endRule(context, 'ScenarioDefinition');1438      startRule(context, 'Rule');1439      startRule(context, 'RuleHeader');1440      build(context, token);1441      return 22;1442    }1443    if(match_Other(context, token)) {1444      build(context, token);1445      return 19;1446    }1447    1448    var stateComment = "State: 19 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:1>Description:0>#Other:0";1449    token.detach();1450    var expectedTokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"];1451    var error = token.isEof ?1452      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1453      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1454    if (self.stopAtFirstError) throw error;1455    addError(context, error);1456    return 19;1457  }1458  // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:01459  function matchTokenAt_20(token, context) {1460    if(match_EOF(context, token)) {1461      endRule(context, 'Examples');1462      endRule(context, 'ExamplesDefinition');1463      endRule(context, 'Scenario');1464      endRule(context, 'ScenarioDefinition');1465      endRule(context, 'Feature');1466      build(context, token);1467      return 41;1468    }1469    if(match_Comment(context, token)) {1470      build(context, token);1471      return 20;1472    }1473    if(match_TableRow(context, token)) {1474      startRule(context, 'ExamplesTable');1475      build(context, token);1476      return 21;1477    }1478    if(match_TagLine(context, token)) {1479      if(lookahead_0(context, token)) {1480      endRule(context, 'Examples');1481      endRule(context, 'ExamplesDefinition');1482      startRule(context, 'ExamplesDefinition');1483      startRule(context, 'Tags');1484      build(context, token);1485      return 17;1486      }1487    }1488    if(match_TagLine(context, token)) {1489      endRule(context, 'Examples');1490      endRule(context, 'ExamplesDefinition');1491      endRule(context, 'Scenario');1492      endRule(context, 'ScenarioDefinition');1493      startRule(context, 'ScenarioDefinition');1494      startRule(context, 'Tags');1495      build(context, token);1496      return 11;1497    }1498    if(match_ExamplesLine(context, token)) {1499      endRule(context, 'Examples');1500      endRule(context, 'ExamplesDefinition');1501      startRule(context, 'ExamplesDefinition');1502      startRule(context, 'Examples');1503      build(context, token);1504      return 18;1505    }1506    if(match_ScenarioLine(context, token)) {1507      endRule(context, 'Examples');1508      endRule(context, 'ExamplesDefinition');1509      endRule(context, 'Scenario');1510      endRule(context, 'ScenarioDefinition');1511      startRule(context, 'ScenarioDefinition');1512      startRule(context, 'Scenario');1513      build(context, token);1514      return 12;1515    }1516    if(match_RuleLine(context, token)) {1517      endRule(context, 'Examples');1518      endRule(context, 'ExamplesDefinition');1519      endRule(context, 'Scenario');1520      endRule(context, 'ScenarioDefinition');1521      startRule(context, 'Rule');1522      startRule(context, 'RuleHeader');1523      build(context, token);1524      return 22;1525    }1526    if(match_Empty(context, token)) {1527      build(context, token);1528      return 20;1529    }1530    1531    var stateComment = "State: 20 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:1>DescriptionHelper:2>#Comment:0";1532    token.detach();1533    var expectedTokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"];1534    var error = token.isEof ?1535      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1536      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1537    if (self.stopAtFirstError) throw error;1538    addError(context, error);1539    return 20;1540  }1541  // GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:01542  function matchTokenAt_21(token, context) {1543    if(match_EOF(context, token)) {1544      endRule(context, 'ExamplesTable');1545      endRule(context, 'Examples');1546      endRule(context, 'ExamplesDefinition');1547      endRule(context, 'Scenario');1548      endRule(context, 'ScenarioDefinition');1549      endRule(context, 'Feature');1550      build(context, token);1551      return 41;1552    }1553    if(match_TableRow(context, token)) {1554      build(context, token);1555      return 21;1556    }1557    if(match_TagLine(context, token)) {1558      if(lookahead_0(context, token)) {1559      endRule(context, 'ExamplesTable');1560      endRule(context, 'Examples');1561      endRule(context, 'ExamplesDefinition');1562      startRule(context, 'ExamplesDefinition');1563      startRule(context, 'Tags');1564      build(context, token);1565      return 17;1566      }1567    }1568    if(match_TagLine(context, token)) {1569      endRule(context, 'ExamplesTable');1570      endRule(context, 'Examples');1571      endRule(context, 'ExamplesDefinition');1572      endRule(context, 'Scenario');1573      endRule(context, 'ScenarioDefinition');1574      startRule(context, 'ScenarioDefinition');1575      startRule(context, 'Tags');1576      build(context, token);1577      return 11;1578    }1579    if(match_ExamplesLine(context, token)) {1580      endRule(context, 'ExamplesTable');1581      endRule(context, 'Examples');1582      endRule(context, 'ExamplesDefinition');1583      startRule(context, 'ExamplesDefinition');1584      startRule(context, 'Examples');1585      build(context, token);1586      return 18;1587    }1588    if(match_ScenarioLine(context, token)) {1589      endRule(context, 'ExamplesTable');1590      endRule(context, 'Examples');1591      endRule(context, 'ExamplesDefinition');1592      endRule(context, 'Scenario');1593      endRule(context, 'ScenarioDefinition');1594      startRule(context, 'ScenarioDefinition');1595      startRule(context, 'Scenario');1596      build(context, token);1597      return 12;1598    }1599    if(match_RuleLine(context, token)) {1600      endRule(context, 'ExamplesTable');1601      endRule(context, 'Examples');1602      endRule(context, 'ExamplesDefinition');1603      endRule(context, 'Scenario');1604      endRule(context, 'ScenarioDefinition');1605      startRule(context, 'Rule');1606      startRule(context, 'RuleHeader');1607      build(context, token);1608      return 22;1609    }1610    if(match_Comment(context, token)) {1611      build(context, token);1612      return 21;1613    }1614    if(match_Empty(context, token)) {1615      build(context, token);1616      return 21;1617    }1618    1619    var stateComment = "State: 21 - GherkinDocument:0>Feature:2>ScenarioDefinition:1>Scenario:3>ExamplesDefinition:1>Examples:2>ExamplesTable:0>#TableRow:0";1620    token.detach();1621    var expectedTokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"];1622    var error = token.isEof ?1623      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1624      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1625    if (self.stopAtFirstError) throw error;1626    addError(context, error);1627    return 21;1628  }1629  // GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>#RuleLine:01630  function matchTokenAt_22(token, context) {1631    if(match_EOF(context, token)) {1632      endRule(context, 'RuleHeader');1633      endRule(context, 'Rule');1634      endRule(context, 'Feature');1635      build(context, token);1636      return 41;1637    }1638    if(match_Empty(context, token)) {1639      build(context, token);1640      return 22;1641    }1642    if(match_Comment(context, token)) {1643      build(context, token);1644      return 24;1645    }1646    if(match_BackgroundLine(context, token)) {1647      endRule(context, 'RuleHeader');1648      startRule(context, 'Background');1649      build(context, token);1650      return 25;1651    }1652    if(match_TagLine(context, token)) {1653      endRule(context, 'RuleHeader');1654      startRule(context, 'ScenarioDefinition');1655      startRule(context, 'Tags');1656      build(context, token);1657      return 30;1658    }1659    if(match_ScenarioLine(context, token)) {1660      endRule(context, 'RuleHeader');1661      startRule(context, 'ScenarioDefinition');1662      startRule(context, 'Scenario');1663      build(context, token);1664      return 31;1665    }1666    if(match_RuleLine(context, token)) {1667      endRule(context, 'RuleHeader');1668      endRule(context, 'Rule');1669      startRule(context, 'Rule');1670      startRule(context, 'RuleHeader');1671      build(context, token);1672      return 22;1673    }1674    if(match_Other(context, token)) {1675      startRule(context, 'Description');1676      build(context, token);1677      return 23;1678    }1679    1680    var stateComment = "State: 22 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:0>#RuleLine:0";1681    token.detach();1682    var expectedTokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"];1683    var error = token.isEof ?1684      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1685      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1686    if (self.stopAtFirstError) throw error;1687    addError(context, error);1688    return 22;1689  }1690  // GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>DescriptionHelper:1>Description:0>#Other:01691  function matchTokenAt_23(token, context) {1692    if(match_EOF(context, token)) {1693      endRule(context, 'Description');1694      endRule(context, 'RuleHeader');1695      endRule(context, 'Rule');1696      endRule(context, 'Feature');1697      build(context, token);1698      return 41;1699    }1700    if(match_Comment(context, token)) {1701      endRule(context, 'Description');1702      build(context, token);1703      return 24;1704    }1705    if(match_BackgroundLine(context, token)) {1706      endRule(context, 'Description');1707      endRule(context, 'RuleHeader');1708      startRule(context, 'Background');1709      build(context, token);1710      return 25;1711    }1712    if(match_TagLine(context, token)) {1713      endRule(context, 'Description');1714      endRule(context, 'RuleHeader');1715      startRule(context, 'ScenarioDefinition');1716      startRule(context, 'Tags');1717      build(context, token);1718      return 30;1719    }1720    if(match_ScenarioLine(context, token)) {1721      endRule(context, 'Description');1722      endRule(context, 'RuleHeader');1723      startRule(context, 'ScenarioDefinition');1724      startRule(context, 'Scenario');1725      build(context, token);1726      return 31;1727    }1728    if(match_RuleLine(context, token)) {1729      endRule(context, 'Description');1730      endRule(context, 'RuleHeader');1731      endRule(context, 'Rule');1732      startRule(context, 'Rule');1733      startRule(context, 'RuleHeader');1734      build(context, token);1735      return 22;1736    }1737    if(match_Other(context, token)) {1738      build(context, token);1739      return 23;1740    }1741    1742    var stateComment = "State: 23 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>DescriptionHelper:1>Description:0>#Other:0";1743    token.detach();1744    var expectedTokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"];1745    var error = token.isEof ?1746      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1747      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1748    if (self.stopAtFirstError) throw error;1749    addError(context, error);1750    return 23;1751  }1752  // GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>DescriptionHelper:2>#Comment:01753  function matchTokenAt_24(token, context) {1754    if(match_EOF(context, token)) {1755      endRule(context, 'RuleHeader');1756      endRule(context, 'Rule');1757      endRule(context, 'Feature');1758      build(context, token);1759      return 41;1760    }1761    if(match_Comment(context, token)) {1762      build(context, token);1763      return 24;1764    }1765    if(match_BackgroundLine(context, token)) {1766      endRule(context, 'RuleHeader');1767      startRule(context, 'Background');1768      build(context, token);1769      return 25;1770    }1771    if(match_TagLine(context, token)) {1772      endRule(context, 'RuleHeader');1773      startRule(context, 'ScenarioDefinition');1774      startRule(context, 'Tags');1775      build(context, token);1776      return 30;1777    }1778    if(match_ScenarioLine(context, token)) {1779      endRule(context, 'RuleHeader');1780      startRule(context, 'ScenarioDefinition');1781      startRule(context, 'Scenario');1782      build(context, token);1783      return 31;1784    }1785    if(match_RuleLine(context, token)) {1786      endRule(context, 'RuleHeader');1787      endRule(context, 'Rule');1788      startRule(context, 'Rule');1789      startRule(context, 'RuleHeader');1790      build(context, token);1791      return 22;1792    }1793    if(match_Empty(context, token)) {1794      build(context, token);1795      return 24;1796    }1797    1798    var stateComment = "State: 24 - GherkinDocument:0>Feature:3>Rule:0>RuleHeader:1>DescriptionHelper:2>#Comment:0";1799    token.detach();1800    var expectedTokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"];1801    var error = token.isEof ?1802      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1803      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1804    if (self.stopAtFirstError) throw error;1805    addError(context, error);1806    return 24;1807  }1808  // GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:01809  function matchTokenAt_25(token, context) {1810    if(match_EOF(context, token)) {1811      endRule(context, 'Background');1812      endRule(context, 'Rule');1813      endRule(context, 'Feature');1814      build(context, token);1815      return 41;1816    }1817    if(match_Empty(context, token)) {1818      build(context, token);1819      return 25;1820    }1821    if(match_Comment(context, token)) {1822      build(context, token);1823      return 27;1824    }1825    if(match_StepLine(context, token)) {1826      startRule(context, 'Step');1827      build(context, token);1828      return 28;1829    }1830    if(match_TagLine(context, token)) {1831      endRule(context, 'Background');1832      startRule(context, 'ScenarioDefinition');1833      startRule(context, 'Tags');1834      build(context, token);1835      return 30;1836    }1837    if(match_ScenarioLine(context, token)) {1838      endRule(context, 'Background');1839      startRule(context, 'ScenarioDefinition');1840      startRule(context, 'Scenario');1841      build(context, token);1842      return 31;1843    }1844    if(match_RuleLine(context, token)) {1845      endRule(context, 'Background');1846      endRule(context, 'Rule');1847      startRule(context, 'Rule');1848      startRule(context, 'RuleHeader');1849      build(context, token);1850      return 22;1851    }1852    if(match_Other(context, token)) {1853      startRule(context, 'Description');1854      build(context, token);1855      return 26;1856    }1857    1858    var stateComment = "State: 25 - GherkinDocument:0>Feature:3>Rule:1>Background:0>#BackgroundLine:0";1859    token.detach();1860    var expectedTokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"];1861    var error = token.isEof ?1862      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1863      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1864    if (self.stopAtFirstError) throw error;1865    addError(context, error);1866    return 25;1867  }1868  // GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:01869  function matchTokenAt_26(token, context) {1870    if(match_EOF(context, token)) {1871      endRule(context, 'Description');1872      endRule(context, 'Background');1873      endRule(context, 'Rule');1874      endRule(context, 'Feature');1875      build(context, token);1876      return 41;1877    }1878    if(match_Comment(context, token)) {1879      endRule(context, 'Description');1880      build(context, token);1881      return 27;1882    }1883    if(match_StepLine(context, token)) {1884      endRule(context, 'Description');1885      startRule(context, 'Step');1886      build(context, token);1887      return 28;1888    }1889    if(match_TagLine(context, token)) {1890      endRule(context, 'Description');1891      endRule(context, 'Background');1892      startRule(context, 'ScenarioDefinition');1893      startRule(context, 'Tags');1894      build(context, token);1895      return 30;1896    }1897    if(match_ScenarioLine(context, token)) {1898      endRule(context, 'Description');1899      endRule(context, 'Background');1900      startRule(context, 'ScenarioDefinition');1901      startRule(context, 'Scenario');1902      build(context, token);1903      return 31;1904    }1905    if(match_RuleLine(context, token)) {1906      endRule(context, 'Description');1907      endRule(context, 'Background');1908      endRule(context, 'Rule');1909      startRule(context, 'Rule');1910      startRule(context, 'RuleHeader');1911      build(context, token);1912      return 22;1913    }1914    if(match_Other(context, token)) {1915      build(context, token);1916      return 26;1917    }1918    1919    var stateComment = "State: 26 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:1>Description:0>#Other:0";1920    token.detach();1921    var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Other"];1922    var error = token.isEof ?1923      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1924      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1925    if (self.stopAtFirstError) throw error;1926    addError(context, error);1927    return 26;1928  }1929  // GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:2>#Comment:01930  function matchTokenAt_27(token, context) {1931    if(match_EOF(context, token)) {1932      endRule(context, 'Background');1933      endRule(context, 'Rule');1934      endRule(context, 'Feature');1935      build(context, token);1936      return 41;1937    }1938    if(match_Comment(context, token)) {1939      build(context, token);1940      return 27;1941    }1942    if(match_StepLine(context, token)) {1943      startRule(context, 'Step');1944      build(context, token);1945      return 28;1946    }1947    if(match_TagLine(context, token)) {1948      endRule(context, 'Background');1949      startRule(context, 'ScenarioDefinition');1950      startRule(context, 'Tags');1951      build(context, token);1952      return 30;1953    }1954    if(match_ScenarioLine(context, token)) {1955      endRule(context, 'Background');1956      startRule(context, 'ScenarioDefinition');1957      startRule(context, 'Scenario');1958      build(context, token);1959      return 31;1960    }1961    if(match_RuleLine(context, token)) {1962      endRule(context, 'Background');1963      endRule(context, 'Rule');1964      startRule(context, 'Rule');1965      startRule(context, 'RuleHeader');1966      build(context, token);1967      return 22;1968    }1969    if(match_Empty(context, token)) {1970      build(context, token);1971      return 27;1972    }1973    1974    var stateComment = "State: 27 - GherkinDocument:0>Feature:3>Rule:1>Background:1>DescriptionHelper:2>#Comment:0";1975    token.detach();1976    var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Empty"];1977    var error = token.isEof ?1978      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :1979      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);1980    if (self.stopAtFirstError) throw error;1981    addError(context, error);1982    return 27;1983  }1984  // GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:01985  function matchTokenAt_28(token, context) {1986    if(match_EOF(context, token)) {1987      endRule(context, 'Step');1988      endRule(context, 'Background');1989      endRule(context, 'Rule');1990      endRule(context, 'Feature');1991      build(context, token);1992      return 41;1993    }1994    if(match_TableRow(context, token)) {1995      startRule(context, 'DataTable');1996      build(context, token);1997      return 29;1998    }1999    if(match_DocStringSeparator(context, token)) {2000      startRule(context, 'DocString');2001      build(context, token);2002      return 44;2003    }2004    if(match_StepLine(context, token)) {2005      endRule(context, 'Step');2006      startRule(context, 'Step');2007      build(context, token);2008      return 28;2009    }2010    if(match_TagLine(context, token)) {2011      endRule(context, 'Step');2012      endRule(context, 'Background');2013      startRule(context, 'ScenarioDefinition');2014      startRule(context, 'Tags');2015      build(context, token);2016      return 30;2017    }2018    if(match_ScenarioLine(context, token)) {2019      endRule(context, 'Step');2020      endRule(context, 'Background');2021      startRule(context, 'ScenarioDefinition');2022      startRule(context, 'Scenario');2023      build(context, token);2024      return 31;2025    }2026    if(match_RuleLine(context, token)) {2027      endRule(context, 'Step');2028      endRule(context, 'Background');2029      endRule(context, 'Rule');2030      startRule(context, 'Rule');2031      startRule(context, 'RuleHeader');2032      build(context, token);2033      return 22;2034    }2035    if(match_Comment(context, token)) {2036      build(context, token);2037      return 28;2038    }2039    if(match_Empty(context, token)) {2040      build(context, token);2041      return 28;2042    }2043    2044    var stateComment = "State: 28 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:0>#StepLine:0";2045    token.detach();2046    var expectedTokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"];2047    var error = token.isEof ?2048      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :2049      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);2050    if (self.stopAtFirstError) throw error;2051    addError(context, error);2052    return 28;2053  }2054  // GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:02055  function matchTokenAt_29(token, context) {2056    if(match_EOF(context, token)) {2057      endRule(context, 'DataTable');2058      endRule(context, 'Step');2059      endRule(context, 'Background');2060      endRule(context, 'Rule');2061      endRule(context, 'Feature');2062      build(context, token);2063      return 41;2064    }2065    if(match_TableRow(context, token)) {2066      build(context, token);2067      return 29;2068    }2069    if(match_StepLine(context, token)) {2070      endRule(context, 'DataTable');2071      endRule(context, 'Step');2072      startRule(context, 'Step');2073      build(context, token);2074      return 28;2075    }2076    if(match_TagLine(context, token)) {2077      endRule(context, 'DataTable');2078      endRule(context, 'Step');2079      endRule(context, 'Background');2080      startRule(context, 'ScenarioDefinition');2081      startRule(context, 'Tags');2082      build(context, token);2083      return 30;2084    }2085    if(match_ScenarioLine(context, token)) {2086      endRule(context, 'DataTable');2087      endRule(context, 'Step');2088      endRule(context, 'Background');2089      startRule(context, 'ScenarioDefinition');2090      startRule(context, 'Scenario');2091      build(context, token);2092      return 31;2093    }2094    if(match_RuleLine(context, token)) {2095      endRule(context, 'DataTable');2096      endRule(context, 'Step');2097      endRule(context, 'Background');2098      endRule(context, 'Rule');2099      startRule(context, 'Rule');2100      startRule(context, 'RuleHeader');2101      build(context, token);2102      return 22;2103    }2104    if(match_Comment(context, token)) {2105      build(context, token);2106      return 29;2107    }2108    if(match_Empty(context, token)) {2109      build(context, token);2110      return 29;2111    }2112    2113    var stateComment = "State: 29 - GherkinDocument:0>Feature:3>Rule:1>Background:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0";2114    token.detach();2115    var expectedTokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"];2116    var error = token.isEof ?2117      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :2118      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);2119    if (self.stopAtFirstError) throw error;2120    addError(context, error);2121    return 29;2122  }2123  // GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:02124  function matchTokenAt_30(token, context) {2125    if(match_TagLine(context, token)) {2126      build(context, token);2127      return 30;2128    }2129    if(match_ScenarioLine(context, token)) {2130      endRule(context, 'Tags');2131      startRule(context, 'Scenario');2132      build(context, token);2133      return 31;2134    }2135    if(match_Comment(context, token)) {2136      build(context, token);2137      return 30;2138    }2139    if(match_Empty(context, token)) {2140      build(context, token);2141      return 30;2142    }2143    2144    var stateComment = "State: 30 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:0>Tags:0>#TagLine:0";2145    token.detach();2146    var expectedTokens = ["#TagLine", "#ScenarioLine", "#Comment", "#Empty"];2147    var error = token.isEof ?2148      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :2149      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);2150    if (self.stopAtFirstError) throw error;2151    addError(context, error);2152    return 30;2153  }2154  // GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:02155  function matchTokenAt_31(token, context) {2156    if(match_EOF(context, token)) {2157      endRule(context, 'Scenario');2158      endRule(context, 'ScenarioDefinition');2159      endRule(context, 'Rule');2160      endRule(context, 'Feature');2161      build(context, token);2162      return 41;2163    }2164    if(match_Empty(context, token)) {2165      build(context, token);2166      return 31;2167    }2168    if(match_Comment(context, token)) {2169      build(context, token);2170      return 33;2171    }2172    if(match_StepLine(context, token)) {2173      startRule(context, 'Step');2174      build(context, token);2175      return 34;2176    }2177    if(match_TagLine(context, token)) {2178      if(lookahead_0(context, token)) {2179      startRule(context, 'ExamplesDefinition');2180      startRule(context, 'Tags');2181      build(context, token);2182      return 36;2183      }2184    }2185    if(match_TagLine(context, token)) {2186      endRule(context, 'Scenario');2187      endRule(context, 'ScenarioDefinition');2188      startRule(context, 'ScenarioDefinition');2189      startRule(context, 'Tags');2190      build(context, token);2191      return 30;2192    }2193    if(match_ExamplesLine(context, token)) {2194      startRule(context, 'ExamplesDefinition');2195      startRule(context, 'Examples');2196      build(context, token);2197      return 37;2198    }2199    if(match_ScenarioLine(context, token)) {2200      endRule(context, 'Scenario');2201      endRule(context, 'ScenarioDefinition');2202      startRule(context, 'ScenarioDefinition');2203      startRule(context, 'Scenario');2204      build(context, token);2205      return 31;2206    }2207    if(match_RuleLine(context, token)) {2208      endRule(context, 'Scenario');2209      endRule(context, 'ScenarioDefinition');2210      endRule(context, 'Rule');2211      startRule(context, 'Rule');2212      startRule(context, 'RuleHeader');2213      build(context, token);2214      return 22;2215    }2216    if(match_Other(context, token)) {2217      startRule(context, 'Description');2218      build(context, token);2219      return 32;2220    }2221    2222    var stateComment = "State: 31 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:0>#ScenarioLine:0";2223    token.detach();2224    var expectedTokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"];2225    var error = token.isEof ?2226      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :2227      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);2228    if (self.stopAtFirstError) throw error;2229    addError(context, error);2230    return 31;2231  }2232  // GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:02233  function matchTokenAt_32(token, context) {2234    if(match_EOF(context, token)) {2235      endRule(context, 'Description');2236      endRule(context, 'Scenario');2237      endRule(context, 'ScenarioDefinition');2238      endRule(context, 'Rule');2239      endRule(context, 'Feature');2240      build(context, token);2241      return 41;2242    }2243    if(match_Comment(context, token)) {2244      endRule(context, 'Description');2245      build(context, token);2246      return 33;2247    }2248    if(match_StepLine(context, token)) {2249      endRule(context, 'Description');2250      startRule(context, 'Step');2251      build(context, token);2252      return 34;2253    }2254    if(match_TagLine(context, token)) {2255      if(lookahead_0(context, token)) {2256      endRule(context, 'Description');2257      startRule(context, 'ExamplesDefinition');2258      startRule(context, 'Tags');2259      build(context, token);2260      return 36;2261      }2262    }2263    if(match_TagLine(context, token)) {2264      endRule(context, 'Description');2265      endRule(context, 'Scenario');2266      endRule(context, 'ScenarioDefinition');2267      startRule(context, 'ScenarioDefinition');2268      startRule(context, 'Tags');2269      build(context, token);2270      return 30;2271    }2272    if(match_ExamplesLine(context, token)) {2273      endRule(context, 'Description');2274      startRule(context, 'ExamplesDefinition');2275      startRule(context, 'Examples');2276      build(context, token);2277      return 37;2278    }2279    if(match_ScenarioLine(context, token)) {2280      endRule(context, 'Description');2281      endRule(context, 'Scenario');2282      endRule(context, 'ScenarioDefinition');2283      startRule(context, 'ScenarioDefinition');2284      startRule(context, 'Scenario');2285      build(context, token);2286      return 31;2287    }2288    if(match_RuleLine(context, token)) {2289      endRule(context, 'Description');2290      endRule(context, 'Scenario');2291      endRule(context, 'ScenarioDefinition');2292      endRule(context, 'Rule');2293      startRule(context, 'Rule');2294      startRule(context, 'RuleHeader');2295      build(context, token);2296      return 22;2297    }2298    if(match_Other(context, token)) {2299      build(context, token);2300      return 32;2301    }2302    2303    var stateComment = "State: 32 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:1>Description:0>#Other:0";2304    token.detach();2305    var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Other"];2306    var error = token.isEof ?2307      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :2308      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);2309    if (self.stopAtFirstError) throw error;2310    addError(context, error);2311    return 32;2312  }2313  // GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:02314  function matchTokenAt_33(token, context) {2315    if(match_EOF(context, token)) {2316      endRule(context, 'Scenario');2317      endRule(context, 'ScenarioDefinition');2318      endRule(context, 'Rule');2319      endRule(context, 'Feature');2320      build(context, token);2321      return 41;2322    }2323    if(match_Comment(context, token)) {2324      build(context, token);2325      return 33;2326    }2327    if(match_StepLine(context, token)) {2328      startRule(context, 'Step');2329      build(context, token);2330      return 34;2331    }2332    if(match_TagLine(context, token)) {2333      if(lookahead_0(context, token)) {2334      startRule(context, 'ExamplesDefinition');2335      startRule(context, 'Tags');2336      build(context, token);2337      return 36;2338      }2339    }2340    if(match_TagLine(context, token)) {2341      endRule(context, 'Scenario');2342      endRule(context, 'ScenarioDefinition');2343      startRule(context, 'ScenarioDefinition');2344      startRule(context, 'Tags');2345      build(context, token);2346      return 30;2347    }2348    if(match_ExamplesLine(context, token)) {2349      startRule(context, 'ExamplesDefinition');2350      startRule(context, 'Examples');2351      build(context, token);2352      return 37;2353    }2354    if(match_ScenarioLine(context, token)) {2355      endRule(context, 'Scenario');2356      endRule(context, 'ScenarioDefinition');2357      startRule(context, 'ScenarioDefinition');2358      startRule(context, 'Scenario');2359      build(context, token);2360      return 31;2361    }2362    if(match_RuleLine(context, token)) {2363      endRule(context, 'Scenario');2364      endRule(context, 'ScenarioDefinition');2365      endRule(context, 'Rule');2366      startRule(context, 'Rule');2367      startRule(context, 'RuleHeader');2368      build(context, token);2369      return 22;2370    }2371    if(match_Empty(context, token)) {2372      build(context, token);2373      return 33;2374    }2375    2376    var stateComment = "State: 33 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:1>DescriptionHelper:2>#Comment:0";2377    token.detach();2378    var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Empty"];2379    var error = token.isEof ?2380      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :2381      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);2382    if (self.stopAtFirstError) throw error;2383    addError(context, error);2384    return 33;2385  }2386  // GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:02387  function matchTokenAt_34(token, context) {2388    if(match_EOF(context, token)) {2389      endRule(context, 'Step');2390      endRule(context, 'Scenario');2391      endRule(context, 'ScenarioDefinition');2392      endRule(context, 'Rule');2393      endRule(context, 'Feature');2394      build(context, token);2395      return 41;2396    }2397    if(match_TableRow(context, token)) {2398      startRule(context, 'DataTable');2399      build(context, token);2400      return 35;2401    }2402    if(match_DocStringSeparator(context, token)) {2403      startRule(context, 'DocString');2404      build(context, token);2405      return 42;2406    }2407    if(match_StepLine(context, token)) {2408      endRule(context, 'Step');2409      startRule(context, 'Step');2410      build(context, token);2411      return 34;2412    }2413    if(match_TagLine(context, token)) {2414      if(lookahead_0(context, token)) {2415      endRule(context, 'Step');2416      startRule(context, 'ExamplesDefinition');2417      startRule(context, 'Tags');2418      build(context, token);2419      return 36;2420      }2421    }2422    if(match_TagLine(context, token)) {2423      endRule(context, 'Step');2424      endRule(context, 'Scenario');2425      endRule(context, 'ScenarioDefinition');2426      startRule(context, 'ScenarioDefinition');2427      startRule(context, 'Tags');2428      build(context, token);2429      return 30;2430    }2431    if(match_ExamplesLine(context, token)) {2432      endRule(context, 'Step');2433      startRule(context, 'ExamplesDefinition');2434      startRule(context, 'Examples');2435      build(context, token);2436      return 37;2437    }2438    if(match_ScenarioLine(context, token)) {2439      endRule(context, 'Step');2440      endRule(context, 'Scenario');2441      endRule(context, 'ScenarioDefinition');2442      startRule(context, 'ScenarioDefinition');2443      startRule(context, 'Scenario');2444      build(context, token);2445      return 31;2446    }2447    if(match_RuleLine(context, token)) {2448      endRule(context, 'Step');2449      endRule(context, 'Scenario');2450      endRule(context, 'ScenarioDefinition');2451      endRule(context, 'Rule');2452      startRule(context, 'Rule');2453      startRule(context, 'RuleHeader');2454      build(context, token);2455      return 22;2456    }2457    if(match_Comment(context, token)) {2458      build(context, token);2459      return 34;2460    }2461    if(match_Empty(context, token)) {2462      build(context, token);2463      return 34;2464    }2465    2466    var stateComment = "State: 34 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:0>#StepLine:0";2467    token.detach();2468    var expectedTokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#RuleLine", "#Comment", "#Empty"];2469    var error = token.isEof ?2470      Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :2471      Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);2472    if (self.stopAtFirstError) throw error;2473    addError(context, error);2474    return 34;2475  }2476  // GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:02477  function matchTokenAt_35(token, context) {2478    if(match_EOF(context, token)) {2479      endRule(context, 'DataTable');2480      endRule(context, 'Step');2481      endRule(context, 'Scenario');2482      endRule(context, 'ScenarioDefinition');2483      endRule(context, 'Rule');2484      endRule(context, 'Feature');2485      build(context, token);2486      return 41;2487    }2488    if(match_TableRow(context, token)) {2489      build(context, token);2490      return 35;2491    }2492    if(match_StepLine(context, token)) {2493      endRule(context, 'DataTable');2494      endRule(context, 'Step');2495      startRule(context, 'Step');2496      build(context, token);2497      return 34;2498    }2499    if(match_TagLine(context, token)) {2500      if(lookahead_0(context, token)) {2501      endRule(context, 'DataTable');2502      endRule(context, 'Step');2503      startRule(context, 'ExamplesDefinition');2504      startRule(context, 'Tags');2505      build(context, token);2506      return 36;2507      }2508    }2509    if(match_TagLine(context, token)) {2510      endRule(context, 'DataTable');2511      endRule(context, 'Step');2512      endRule(context, 'Scenario');2513      endRule(context, 'ScenarioDefinition');2514      startRule(context, 'ScenarioDefinition');2515      startRule(context, 'Tags');2516      build(context, token);2517      return 30;2518    }2519    if(match_ExamplesLine(context, token)) {2520      endRule(context, 'DataTable');2521      endRule(context, 'Step');2522      startRule(context, 'ExamplesDefinition');2523      startRule(context, 'Examples');2524      build(context, token);2525      return 37;2526    }2527    if(match_ScenarioLine(context, token)) {2528      endRule(context, 'DataTable');2529      endRule(context, 'Step');2530      endRule(context, 'Scenario');2531      endRule(context, 'ScenarioDefinition');2532      startRule(context, 'ScenarioDefinition');2533      startRule(context, 'Scenario');2534      build(context, token);2535      return 31;2536    }2537    if(match_RuleLine(context, token)) {2538      endRule(context, 'DataTable');2539      endRule(context, 'Step');2540      endRule(context, 'Scenario');2541      endRule(context, 'ScenarioDefinition');2542      endRule(context, 'Rule');2543      startRule(context, 'Rule');2544      startRule(context, 'RuleHeader');2545      build(context, token);2546      return 22;2547    }2548    if(match_Comment(context, token)) {2549      build(context, token);2550      return 35;2551    }2552    if(match_Empty(context, token)) {2553      build(context, token);2554      return 35;2555    }2556    2557    var stateComment = "State: 35 - GherkinDocument:0>Feature:3>Rule:2>ScenarioDefinition:1>Scenario:2>Step:1>StepArg:0>__alt0:0>DataTable:0>#TableRow:0";