class Farts::SyntaxNode

Attributes

lineno[R]

Public Class Methods

new( lineno ) click to toggle source
# File lib/farts/farts_parser.rb, line 579
def initialize( lineno )
  @lineno = lineno
end

Public Instance Methods

exec_list(intp, nodes) click to toggle source
# File lib/farts/farts_parser.rb, line 583
def exec_list(intp, nodes)
  v = nil
  nodes.each do |i|
    v = i.execute(intp)
    break if intp.hitbreak == true
  end
  v
end
fart_err(msg) click to toggle source
# File lib/farts/farts_parser.rb, line 592
def fart_err(msg)
  raise "Error at #{lineno}: #{msg}"
end