Sha256: 09087fafe68fe873ad40c7720971a4ee828a5d60496d5e54ef30e861a02842c3

Contents?: true

Size: 698 Bytes

Versions: 1

Compression:

Stored size: 698 Bytes

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 defined?: (Lexer::Token::InstantiateRule token) -> bool
        def find: (Lexer::Token::InstantiateRule token) -> Grammar::ParameterizingRule::Rule?
        def created_lhs: (String lhs_s_value) -> Lexer::Token?

        private

        def select_rules: (Lexer::Token::InstantiateRule token) -> Array[Grammar::ParameterizingRule::Rule]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lrama-0.6.1 sig/lrama/grammar/parameterizing_rule/resolver.rbs