# Display a message for the colored location of the node
fun debug(message: String)
do
- print "{hot_location} {self.class_name}: {message}\n{hot_location.colored_line("0;32")}"
+ sys.stderr.write "{hot_location} {self.class_name}: {message}\n{hot_location.colored_line("0;32")}\n"
end
# Parent of the node in the AST
# May have disapeared in the AST
var next_token: nullable Token = null
+ # The verbatim blank text between `prev_token` and `self`
+ fun blank_before: String
+ do
+ if prev_token == null then return ""
+ var from = prev_token.location.pend+1
+ var to = location.pstart
+ return location.file.string.substring(from,to-from)
+ end
+
redef fun to_s: String do
return "'{text}'"
end
super TokenOperator
end
class TDotdotdot
- super TokenOperator
+ super Token
end
class TDotdot
- super TokenOperator
+ super Token
end
class TDot
- super TokenOperator
+ super Token
end
class TPlus
super TokenOperator