Sha256: 7d22173814f896cc4d5d1ef315bbd832de3febeb15f6f8d7a8372c8f46d01595

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

module Lrama
  class Grammar
    class ParameterizingRule
      class Resolver
        attr_accessor created_lhs_list: Array[Lexer::Token]

        @rules: Array[Grammar::ParameterizingRule::Rule]

        def initialize: () -> void
        def add_parameterizing_rule: (Grammar::ParameterizingRule::Rule rule) -> void
        def find_rule: (Lexer::Token::InstantiateRule token) -> Grammar::ParameterizingRule::Rule?
        def find_inline: (Lexer::Token token) -> Grammar::ParameterizingRule::Rule?
        def created_lhs: (String lhs_s_value) -> Lexer::Token?

        private

        def select_rules: (Array[Grammar::ParameterizingRule::Rule] rules, Lexer::Token::InstantiateRule token) -> Array[Grammar::ParameterizingRule::Rule]
        def select_not_inline_rules: (Array[Grammar::ParameterizingRule::Rule] rules) -> Array[Grammar::ParameterizingRule::Rule]
        def select_rules_by_name: (Array[Grammar::ParameterizingRule::Rule] rules, String rule_name) -> Array[Grammar::ParameterizingRule::Rule]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lrama-0.6.9 sig/lrama/grammar/parameterizing_rule/resolver.rbs
lrama-0.6.8 sig/lrama/grammar/parameterizing_rule/resolver.rbs
lrama-0.6.7 sig/lrama/grammar/parameterizing_rule/resolver.rbs
lrama-0.6.6 sig/lrama/grammar/parameterizing_rule/resolver.rbs