Class: Lox::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/lox/cli.rb

Instance Method Summary collapse

Instance Method Details

#lexObject



27
28
29
# File 'lib/lox/cli.rb', line 27

def lex
  Write.new(tokens, STDOUT).call
end

#readObject



15
16
17
# File 'lib/lox/cli.rb', line 15

def read
  Write.new(lines, STDOUT).call
end

#scanObject



21
22
23
# File 'lib/lox/cli.rb', line 21

def scan
  Write.new(characters, STDOUT).call
end