Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cleanup

  • Loading branch information...
commit f3fd5c88dbc7560f2c62f51e33fc6f6898da64eb 1 parent f40ae41
@cadrian authored
Showing with 3 additions and 14 deletions.
  1. +3 −14 src/lib/parse/grammar/packrat/packrat_grammar.e
View
17 src/lib/parse/grammar/packrat/packrat_grammar.e
@@ -577,22 +577,11 @@ feature {} -- build the grammar
end
reduce_suffix is
- local
- sequence: PACKRAT_SEQUENCE; done: BOOLEAN
- do
- if last_quantifier = one then
- done := True
- elseif sequence ?:= last_primary then
- sequence ::= last_primary
- if sequence.how_many = one then
- sequence.set_how_many(last_quantifier)
- done := True
- end
- end
- if not done then
+ do
+ if last_quantifier /= one then
last_primary := seq(<< last_primary >>, last_quantifier, Void, agent reducer.reduce_loop(last_nonterminal_def.intern, last_quantifier))
+ reset_quantifier
end
- reset_quantifier
end
reduce_primary_as_nested_pattern is
Please sign in to comment.
Something went wrong with that request. Please try again.