remove lines and columns

This commit is contained in:
Torsten Ruger 2014-04-18 15:58:42 +03:00
parent b420bb4993
commit 4fa00371e5

View File

@ -2,17 +2,8 @@ module Asm
class Node
def initialize(s = nil)
if (s)
@line = s.prev_line
@column = s.prev_column
else
@line = 0
@column = 0
end
yield self if block_given?
end
attr_reader :line, :column
end
class ToplevelNode < Node
@ -71,10 +62,6 @@ module Asm
class ParseError < StandardError
def initialize(message, s)
super(message)
@line = s.line
@column = s.column
end
attr_reader :line, :column
end
end
end