Method: CiscoAclIntp::Scanner#scan_match_arg_tokens

Defined in:
lib/cisco_acl_intp/scanner.rb

#scan_match_arg_tokensBoolean (private)

Scanner of special tokens

Returns:

  • (Boolean)

    if line matched tokens



145
146
147
148
149
150
151
152
153
154
# File 'lib/cisco_acl_intp/scanner.rb', line 145

def scan_match_arg_tokens
  @arg_tokens.each do |(str, length)|
    next unless @ss.scan(/#{str}/)
    (1...length).each do |idx|
      @line_queue.push token_list(@ss[idx])
    end
    @line_queue.push [:STRING, @ss[length]] # last element
  end
  @ss.matched?
end