Class: CFG::ASTNode

Inherits:
Object
  • Object
show all
Defined in:
lib/CFG/config.rb

Overview

Kinds of token :EOF :WORD :INTEGER :FLOAT :STRING :NEWLINE :LEFT_CURLY :RIGHT_CURLY :LEFT_BRACKET :RIGHT_BRACKET :LEFT_PARENTHESIS :RIGHT_PARENTHESIS :LESS_THAN :GREATER_THAN :LESS_THAN_OR_EQUAL :GREATER_THAN_OR_EQUAL :ASSIGN :EQUAL :UNEQUAL :ALT_UNEQUAL :LEFT_SHIFT :RIGHT_SHIFT :DOT :COMMA :COLON :AT :PLUS :MINUS :STAR :POWER :SLASH :SLASH_SLASH :MODULO :BACKTICK :DOLLAR :TRUE :FALSE :NONE :IS :IN :NOT :AND :OR :BITWISE_AND :BITWISE_OR :BITWISE_XOR :BITWISE_COMPLEMENT :COMPLEX :IS_NOT :NOT_IN

Direct Known Subclasses

BinaryNode, ListNode, MappingNode, SliceNode, Token, UnaryNode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind) ⇒ ASTNode

Returns a new instance of ASTNode.



230
231
232
# File 'lib/CFG/config.rb', line 230

def initialize(kind)
  @kind = kind
end

Instance Attribute Details

#endObject

Returns the value of attribute end.



228
229
230
# File 'lib/CFG/config.rb', line 228

def end
  @end
end

#kindObject

Returns the value of attribute kind.



226
227
228
# File 'lib/CFG/config.rb', line 226

def kind
  @kind
end

#startObject

Returns the value of attribute start.



227
228
229
# File 'lib/CFG/config.rb', line 227

def start
  @start
end