Module: TRuby::ParserCombinator::TokenDSL

Included in:
ExpressionParser, StatementParser, TokenDeclarationParser
Defined in:
lib/t_ruby/parser_combinator/token/token_dsl.rb

Overview

Token DSL Module - Convenience methods for token parsing

Instance Method Summary collapse

Instance Method Details

#keyword(kw) ⇒ Object



11
12
13
# File 'lib/t_ruby/parser_combinator/token/token_dsl.rb', line 11

def keyword(kw)
  TokenMatcher.new(kw)
end

#token(type) ⇒ Object



7
8
9
# File 'lib/t_ruby/parser_combinator/token/token_dsl.rb', line 7

def token(type)
  TokenMatcher.new(type)
end