summaryrefslogtreecommitdiff
path: root/tool/lrama/lib/lrama/lexer/token/tag.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/lrama/lib/lrama/lexer/token/tag.rb')
-rw-r--r--tool/lrama/lib/lrama/lexer/token/tag.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/tool/lrama/lib/lrama/lexer/token/tag.rb b/tool/lrama/lib/lrama/lexer/token/tag.rb
new file mode 100644
index 0000000000..e54d773915
--- /dev/null
+++ b/tool/lrama/lib/lrama/lexer/token/tag.rb
@@ -0,0 +1,12 @@
+module Lrama
+ class Lexer
+ class Token
+ class Tag < Token
+ # Omit "<>"
+ def member
+ s_value[1..-2] or raise "Unexpected Tag format (#{s_value})"
+ end
+ end
+ end
+ end
+end