lib/antelope/grammar/token/error.rb in antelope-0.3.2 vs lib/antelope/grammar/token/error.rb in antelope-0.4.0
- old
+ new
@@ -1,24 +1,24 @@
-# encoding: utf-8
-
-module Antelope
- class Grammar
- class Token
- # 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.
- class Error < Terminal
- # Initialize the error token. Technically takes no arguments.
- # Sets the name to be `:$error`.
- def initialize(*)
- super :$error
- end
-
- # (see Token#error?)
- def error?
- true
- end
- end
- end
- end
-end
+# encoding: utf-8
+
+module Antelope
+ class Grammar
+ class Token
+ # 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.
+ class Error < Terminal
+ # Initialize the error token. Technically takes no arguments.
+ # Sets the name to be `:$error`.
+ def initialize(*)
+ super :$error
+ end
+
+ # (see Token#error?)
+ def error?
+ true
+ end
+ end
+ end
+ end
+end