Class: Ibex::Frontend::AST::LexerRule

Inherits:
Struct
  • Object
show all
Includes:
Node
Defined in:
lib/ibex/frontend/ast.rb,
sig/ibex/frontend/ast.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Node

#serialize, #to_h

Instance Attribute Details

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



153
154
155
# File 'lib/ibex/frontend/ast.rb', line 153

def action
  @action
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



153
154
155
# File 'lib/ibex/frontend/ast.rb', line 153

def kind
  @kind
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



153
154
155
# File 'lib/ibex/frontend/ast.rb', line 153

def loc
  @loc
end

#patternObject

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



153
154
155
# File 'lib/ibex/frontend/ast.rb', line 153

def pattern
  @pattern
end

#pattern_kindObject

Returns the value of attribute pattern_kind

Returns:

  • (Object)

    the current value of pattern_kind



153
154
155
# File 'lib/ibex/frontend/ast.rb', line 153

def pattern_kind
  @pattern_kind
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



153
154
155
# File 'lib/ibex/frontend/ast.rb', line 153

def token
  @token
end

Class Method Details

.new(kind:, token:, pattern:, pattern_kind:, action:, loc:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(kind:, token:, pattern:, pattern_kind:, action:, loc:) ⇒ instance

    Parameters:

    • kind: (Symbol)
    • token: (String, nil)
    • pattern: (String)
    • pattern_kind: (Symbol)
    • action: (String, nil)
    • loc: (Location)

    Returns:

    • (instance)
  • .new(arg0) ⇒ instance

    Parameters:

    • arg0 ({ ?kind: Symbol, ?token: String?, ?pattern: String, ?pattern_kind: Symbol, ?action: String?, ?loc: Location })

    Returns:

    • (instance)


206
207
# File 'sig/ibex/frontend/ast.rbs', line 206

def self.new: (?kind: Symbol, ?token: String?, ?pattern: String, ?pattern_kind: Symbol, ?action: String?, ?loc: Location) -> instance
| ({ ?kind: Symbol, ?token: String?, ?pattern: String, ?pattern_kind: Symbol, ?action: String?, ?loc: Location }) -> instance