Class: LLIP::RegexpScanner

Inherits:
RegexpAbstractScanner show all
Defined in:
lib/llip/regexp_scanner.rb

Overview

It’s a scanner for the parser RegexpParser. It has two kind of token: :char and :symbol.

  • char: every character.

  • symbol: . * + ( ) \ |

Constant Summary collapse

CHAR =

It represents the regular expression ‘.’

LLIP::RegexpSpecification.new(:char)
SYMBOL =

It represents the regular expression ‘(.|*|+|(|)|\||[|]-)’ so it matches the chars: . * + ( ) \ | [ ] -

LLIP::RegexpSpecification.new(:symbol)

Method Summary

Methods inherited from RegexpAbstractScanner

inherited, #initialize, #next

Constructor Details

This class inherits a constructor from LLIP::RegexpAbstractScanner