Class: LexerKit::DFA::RegexAST::Quantifier

Inherits:
Data
  • Object
show all
Defined in:
lib/lexer_kit/dfa/regex_ast.rb

Overview

Quantifier (*, +, ?, n,m) max = nil means unlimited

Instance Attribute Summary collapse

Instance Attribute Details

#childObject (readonly)

Returns the value of attribute child

Returns:

  • (Object)

    the current value of child



34
35
36
# File 'lib/lexer_kit/dfa/regex_ast.rb', line 34

def child
  @child
end

#greedyObject (readonly)

Returns the value of attribute greedy

Returns:

  • (Object)

    the current value of greedy



34
35
36
# File 'lib/lexer_kit/dfa/regex_ast.rb', line 34

def greedy
  @greedy
end

#maxObject (readonly)

Returns the value of attribute max

Returns:

  • (Object)

    the current value of max



34
35
36
# File 'lib/lexer_kit/dfa/regex_ast.rb', line 34

def max
  @max
end

#metaObject (readonly)

Returns the value of attribute meta

Returns:

  • (Object)

    the current value of meta



34
35
36
# File 'lib/lexer_kit/dfa/regex_ast.rb', line 34

def meta
  @meta
end

#minObject (readonly)

Returns the value of attribute min

Returns:

  • (Object)

    the current value of min



34
35
36
# File 'lib/lexer_kit/dfa/regex_ast.rb', line 34

def min
  @min
end