class TPPlus::Nodes::SkipNode
Public Class Methods
new(target, lpos_pr)
click to toggle source
# File lib/tp_plus/nodes/skip_node.rb, line 4 def initialize(target, lpos_pr) @target = target @lpos_pr = lpos_pr end
Public Instance Methods
eval(context)
click to toggle source
# File lib/tp_plus/nodes/skip_node.rb, line 15 def eval(context) raise "Label (#{@target}) not found" if context.labels[@target.to_sym].nil? "Skip,LBL[#{context.labels[@target.to_sym]}]#{lpos_pr(context)}" end
lpos_pr(context)
click to toggle source
# File lib/tp_plus/nodes/skip_node.rb, line 9 def lpos_pr(context) return "" if @lpos_pr.nil? ",#{@lpos_pr.eval(context)}=LPOS" end