Class: RubyLex

Inherits:
Object show all
Defined in:
lib/openc3/utilities/ruby_lex_utils.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#code_block_openObject

Returns the value of attribute code_block_open.



34
35
36
# File 'lib/openc3/utilities/ruby_lex_utils.rb', line 34

def code_block_open
  @code_block_open
end

#continueObject

Returns the value of attribute continue.



37
38
39
# File 'lib/openc3/utilities/ruby_lex_utils.rb', line 37

def continue
  @continue
end

#exp_line_noObject

Returns the value of attribute exp_line_no.



32
33
34
# File 'lib/openc3/utilities/ruby_lex_utils.rb', line 32

def exp_line_no
  @exp_line_no
end

#indentObject

Returns the value of attribute indent.



30
31
32
# File 'lib/openc3/utilities/ruby_lex_utils.rb', line 30

def indent
  @indent
end

#lineObject

Returns the value of attribute line.



36
37
38
# File 'lib/openc3/utilities/ruby_lex_utils.rb', line 36

def line
  @line
end

#line_noObject

Returns the value of attribute line_no.



31
32
33
# File 'lib/openc3/utilities/ruby_lex_utils.rb', line 31

def line_no
  @line_no
end

#ltypeObject

Returns the value of attribute ltype.



35
36
37
# File 'lib/openc3/utilities/ruby_lex_utils.rb', line 35

def ltype
  @ltype
end

#tokensObject

Returns the value of attribute tokens.



33
34
35
# File 'lib/openc3/utilities/ruby_lex_utils.rb', line 33

def tokens
  @tokens
end

Instance Method Details

#reinitializeObject



39
40
41
42
43
# File 'lib/openc3/utilities/ruby_lex_utils.rb', line 39

def reinitialize
  @line_no = 1
  @prompt = nil
  initialize_input()
end