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.



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

def code_block_open
  @code_block_open
end

#continueObject

Returns the value of attribute continue.



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

def continue
  @continue
end

#exp_line_noObject

Returns the value of attribute exp_line_no.



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

def exp_line_no
  @exp_line_no
end

#indentObject

Returns the value of attribute indent.



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

def indent
  @indent
end

#lineObject

Returns the value of attribute line.



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

def line
  @line
end

#line_noObject

Returns the value of attribute line_no.



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

def line_no
  @line_no
end

#ltypeObject

Returns the value of attribute ltype.



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

def ltype
  @ltype
end

#tokensObject

Returns the value of attribute tokens.



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

def tokens
  @tokens
end

Instance Method Details

#reinitializeObject



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

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