Method: EBNF::LL1::Lexer::Terminal#initialize
- Defined in:
- lib/ebnf/ll1/lexer.rb
#initialize(type, regexp, **options) ⇒ Terminal
Returns a new instance of Terminal.
284 285 286 287 288 |
# File 'lib/ebnf/ll1/lexer.rb', line 284 def initialize(type, regexp, **) @type, @regexp, @options = type, regexp, @partial_regexp = [:partial_regexp] @map = .fetch(:map, {}) end |