lib/dendroid/lexical/token.rb in dendroid-0.0.9 vs lib/dendroid/lexical/token.rb in dendroid-0.0.10
- old
+ new
@@ -22,10 +22,10 @@
# @return [TokenPosition] The position -in "editor" coordinates- of the text in the source file.
attr_reader :position
# @return [String] The name of terminal symbol matching the text.
- attr :terminal
+ attr_reader :terminal
# Constructor.
# @param original [String] the piece of text from input
# @param pos [Dendroid::Lexical::TokenPosition] position of the token in source file
# @param symbol [Dendroid::Syntax::Terminal, String]