Class: Rattler::Compiler::Optimizer::InlineRegularRules

Inherits:
Optimization
  • Object
show all
Includes:
Parsers
Defined in:
lib/rattler/compiler/optimizer/inline_regular_rules.rb

Overview

References to regular parse rules can be inlined without affecting how they parse, assuming the referenced rule does not change. This optimization is only applied if the referenced rule is regular and marked for inlining.

Method Summary

Methods inherited from Optimization

#>>, >>, #applies_to?, applies_to?, apply, #apply, #initialize, instance

Constructor Details

This class inherits a constructor from Rattler::Compiler::Optimizer::Optimization