class Antelope::Grammar::Token::Error
Defines an error token. This may be used internally by the parser when it enters panic mode; any tokens following this are the synchronisation tokens. This is considered a terminal for the purposes of rule definitions.
Public Class Methods
new(*)
click to toggle source
Initialize the error token. Technically takes no arguments. Sets the name to be ‘:$error`.
Calls superclass method
# File lib/antelope/grammar/token/error.rb, line 13 def initialize(*) super :$error end
Public Instance Methods
error?()
click to toggle source
(see Token#error?
)
# File lib/antelope/grammar/token/error.rb, line 18 def error? true end