Skip to content

Commit

Permalink
Updated razor and generation debug with gaspar
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-hill committed Sep 11, 2024
1 parent 9fe56c2 commit e7adc10
Show file tree
Hide file tree
Showing 2 changed files with 672 additions and 669 deletions.
20 changes: 12 additions & 8 deletions ruby/gherkin-ruby.razor
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ require_relative 'token_scanner'
require_relative 'errors'

module Gherkin

RULE_TYPE = [
:None,
@foreach(var rule in Model.RuleSet.Where(r => !r.TempRule))
Expand Down Expand Up @@ -152,15 +151,20 @@ module Gherkin
if (transition.LookAheadHint != null)
{
@:@("if lookahead_")@(transition.LookAheadHint.Id)(context, token)
foreach(var production in transition.Productions)
{
@CallProduction(production)
}
@:return @transition.TargetState
@:end
}
foreach(var production in transition.Productions)
{
@CallProduction(production)
}
@:return @transition.TargetState
if (transition.LookAheadHint != null)
else
{
@:end
foreach(var production in transition.Productions)
{
@CallProduction(production)
}
@:return @transition.TargetState
}
@:end
}
Expand Down
Loading

0 comments on commit e7adc10

Please sign in to comment.