public T match ( OfInt text ) { if ( root == null ) { throw new IllegalStateException ( "not compiled" ) ; } while ( text . hasNext ( ) ) { switch ( match ( text . nextInt ( ) ) ) { case Error : return null ; case Match : return getMatched ( ) ; } } return null ; }
Matches given text as int - iterator . Returns associated token if match otherwise null .