Class: Ibex::Frontend::AST::Rule

Inherits:
Struct
  • Object
show all
Includes:
Node, Ibex::Frontend::ASTRuleDefaults
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

Methods included from Ibex::Frontend::ASTRuleDefaults

#initialize

Instance Attribute Details

#alternativesObject

Returns the value of attribute alternatives

Returns:

  • (Object)

    the current value of alternatives



204
205
206
# File 'lib/ibex/frontend/ast.rb', line 204

def alternatives
  @alternatives
end

#documentationObject

Returns the value of attribute documentation

Returns:

  • (Object)

    the current value of documentation



204
205
206
# File 'lib/ibex/frontend/ast.rb', line 204

def documentation
  @documentation
end

#inlineObject

Returns the value of attribute inline

Returns:

  • (Object)

    the current value of inline



204
205
206
# File 'lib/ibex/frontend/ast.rb', line 204

def inline
  @inline
end

#lhsObject

Returns the value of attribute lhs

Returns:

  • (Object)

    the current value of lhs



204
205
206
# File 'lib/ibex/frontend/ast.rb', line 204

def lhs
  @lhs
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



204
205
206
# File 'lib/ibex/frontend/ast.rb', line 204

def loc
  @loc
end

#parametersObject

Returns the value of attribute parameters

Returns:

  • (Object)

    the current value of parameters



204
205
206
# File 'lib/ibex/frontend/ast.rb', line 204

def parameters
  @parameters
end

Class Method Details

.new(lhs:, parameters:, alternatives:, loc:, documentation:, inline:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(lhs:, parameters:, alternatives:, loc:, documentation:, inline:) ⇒ instance

    Parameters:

    • lhs: (String)
    • parameters: (Array[String], nil)
    • alternatives: (Array[Alternative])
    • loc: (Location)
    • documentation: (String, nil)
    • inline: (Boolean, nil)

    Returns:

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

    Parameters:

    • arg0 ({ ?lhs: String, ?parameters: Array[String]?, ?alternatives: Array[Alternative], ?loc: Location, ?documentation: String?, ?inline: bool? })

    Returns:

    • (instance)


31
32
# File 'sig/ibex/frontend/ast.rbs', line 31

def self.new: (?lhs: String, ?parameters: Array[String]?, ?alternatives: Array[Alternative], ?loc: Location, ?documentation: String?, ?inline: bool?) -> instance
| ({ ?lhs: String, ?parameters: Array[String]?, ?alternatives: Array[Alternative], ?loc: Location, ?documentation: String?, ?inline: bool? }) -> instance