           if c >= aa[0] and c <= aa[1]
             true
           else
-            if aa[1] < c
+            if c > aa[1]
               @withinSet set, index + 1, c
             else
               false


waxeye = (->

  class Edge
    constructor: (@trans, @state, @voided) ->


  class State
    constructor: (@edges, @match) ->


  class FA
    constructor: (@type, @states, @mode) ->
  FA.VOID = 0

      type = automaton.type
      mode = automaton.mode

      # push the current FA to top of the stack
      @faStack = [automaton].concat @faStack
      res = @matchState 0
      # pop from the stack
      @faStack = @faStack.slice 1

      value = switch mode
        when FA.POS
